1999-01-27 05:59:12 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
1999-01-23 05:48:58 +03:00
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* NPL.
|
|
|
|
*
|
|
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
* Reserved.
|
|
|
|
*/
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-02-17 08:32:08 +03:00
|
|
|
#include "nsISupports.idl"
|
1999-02-26 04:56:15 +03:00
|
|
|
#include "nsIFolder.idl"
|
1999-04-07 06:50:25 +04:00
|
|
|
#include "nsIMsgThread.idl"
|
1999-05-16 01:04:42 +04:00
|
|
|
#include "nsIMsgIncomingServer.idl"
|
1999-02-26 04:56:15 +03:00
|
|
|
|
|
|
|
%{ C++
|
|
|
|
#include "nsFileSpec.h"
|
1999-05-12 08:40:44 +04:00
|
|
|
#include "nsISupportsArray.h"
|
1999-05-13 03:57:26 +04:00
|
|
|
#include "nsIMessage.h"
|
1999-02-26 04:56:15 +03:00
|
|
|
%}
|
1999-05-12 08:40:44 +04:00
|
|
|
interface nsISupportsArray;
|
1999-05-05 06:30:46 +04:00
|
|
|
interface nsIMessage;
|
1999-05-12 08:40:44 +04:00
|
|
|
|
1999-01-23 05:48:58 +03:00
|
|
|
[uuid(85e39ff0-b248-11d2-b7ef-00805f05ffa5)]
|
1999-02-26 04:56:15 +03:00
|
|
|
interface nsIMsgFolder : nsIFolder {
|
1999-02-04 20:54:04 +03:00
|
|
|
|
1999-02-26 04:56:15 +03:00
|
|
|
/* already exists in nsIFolder */
|
|
|
|
/* readonly attribute string name; */
|
|
|
|
/* void SetName(in string name); */
|
1999-02-04 20:54:04 +03:00
|
|
|
|
|
|
|
|
1999-02-26 04:56:15 +03:00
|
|
|
/* XXX should these 2 go on nsIFolder or nsICollection? */
|
1999-02-24 13:39:06 +03:00
|
|
|
void AddUnique(in nsISupports element);
|
|
|
|
void ReplaceElement(in nsISupports element, in nsISupports newElement);
|
1999-02-05 06:08:00 +03:00
|
|
|
|
1999-02-26 04:56:15 +03:00
|
|
|
nsIEnumerator GetMessages();
|
1999-04-07 04:03:26 +04:00
|
|
|
nsIEnumerator GetThreads();
|
1999-04-07 06:50:25 +04:00
|
|
|
nsIMsgThread GetThreadForMessage(in nsIMessage message);
|
1999-05-07 04:29:56 +04:00
|
|
|
boolean HasMessage(in nsIMessage message);
|
1999-02-26 04:56:15 +03:00
|
|
|
nsIEnumerator GetVisibleSubFolders();
|
|
|
|
attribute string prettyName;
|
|
|
|
readonly attribute string prettiestName;
|
|
|
|
string BuildFolderURL();
|
1999-02-04 20:54:04 +03:00
|
|
|
|
|
|
|
readonly attribute boolean deleteIsMoveToTrash;
|
|
|
|
readonly attribute boolean showDeletedMessages;
|
1999-05-16 01:04:42 +04:00
|
|
|
|
|
|
|
readonly attribute nsIMsgIncomingServer server;
|
1999-01-26 02:38:09 +03:00
|
|
|
|
1999-02-04 20:54:04 +03:00
|
|
|
void OnCloseFolder ();
|
|
|
|
void Delete ();
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-02-04 20:54:04 +03:00
|
|
|
void PropagateDelete(inout nsIMsgFolder folder, in boolean deleteStorage);
|
|
|
|
void RecursiveDelete(in boolean deleteStorage);
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-04-16 01:12:10 +04:00
|
|
|
void CreateSubfolder(in string folderName);
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-02-04 20:54:04 +03:00
|
|
|
void Rename(in string name);
|
1999-02-05 06:08:00 +03:00
|
|
|
void Adopt(in nsIMsgFolder srcFolder, out unsigned long outPos);
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-02-04 20:54:04 +03:00
|
|
|
boolean ContainsChildNamed(in string name);
|
1999-05-08 00:21:09 +04:00
|
|
|
boolean IsAncestorOf(in nsIMsgFolder folder);
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-02-04 20:54:04 +03:00
|
|
|
string GenerateUniqueSubfolderName(in string prefix, in nsIMsgFolder otherFolder);
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-02-05 06:08:00 +03:00
|
|
|
attribute unsigned long depth;
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-02-04 20:54:04 +03:00
|
|
|
void UpdateSummaryTotals();
|
|
|
|
void SummaryChanged();
|
1999-05-05 06:30:46 +04:00
|
|
|
long GetNumUnread(in boolean deep);
|
|
|
|
long GetTotalMessages(in boolean deep);
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-02-05 06:08:00 +03:00
|
|
|
readonly attribute unsigned long expungedBytesCount;
|
1999-02-04 20:54:04 +03:00
|
|
|
readonly attribute boolean deletable;
|
|
|
|
readonly attribute boolean canCreateChildren;
|
|
|
|
readonly attribute boolean canBeRenamed;
|
|
|
|
readonly attribute boolean requiresCleanup;
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-02-04 20:54:04 +03:00
|
|
|
void ClearRequiresCleanup();
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-02-04 20:54:04 +03:00
|
|
|
readonly attribute boolean knowsSearchNntpExtension;
|
|
|
|
readonly attribute boolean allowsPosting;
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-02-04 20:54:04 +03:00
|
|
|
boolean DisplayRecipients();
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-02-04 20:54:04 +03:00
|
|
|
readonly attribute string relativePathName;
|
1999-02-05 06:08:00 +03:00
|
|
|
readonly attribute unsigned long sizeOnDisk;
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-02-04 20:54:04 +03:00
|
|
|
void RememberPassword(in string password);
|
|
|
|
string GetRememberedPassword();
|
|
|
|
boolean UserNeedsToAuthenticateForFolder(in boolean displayOnly);
|
1999-02-25 05:56:13 +03:00
|
|
|
string GetUsersName();
|
1999-02-04 20:54:04 +03:00
|
|
|
string GetHostName();
|
|
|
|
|
1999-01-26 02:38:09 +03:00
|
|
|
|
1999-02-05 06:08:00 +03:00
|
|
|
void SetFlag(in unsigned long flag);
|
|
|
|
void ClearFlag(in unsigned long flag);
|
|
|
|
boolean GetFlag(in unsigned long flag);
|
1999-01-28 04:23:40 +03:00
|
|
|
|
1999-02-05 06:08:00 +03:00
|
|
|
void ToggleFlag (in unsigned long flag);
|
|
|
|
void OnFlagChange (in unsigned long flag);
|
|
|
|
unsigned long GetFlags();
|
1999-01-28 04:23:40 +03:00
|
|
|
|
1999-02-05 06:08:00 +03:00
|
|
|
void GetFoldersWithFlag(in unsigned long flags, out nsIMsgFolder result,
|
|
|
|
in unsigned long resultsize, out unsigned long numFolders);
|
1999-01-28 04:23:40 +03:00
|
|
|
|
|
|
|
void GetExpansionArray(in nsISupportsArray expansionArray);
|
|
|
|
|
1999-05-11 03:55:41 +04:00
|
|
|
void DeleteMessages(in nsISupportsArray message);
|
1999-03-12 11:02:35 +03:00
|
|
|
|
1999-03-24 02:19:58 +03:00
|
|
|
void AcquireSemaphore (in nsISupports semHolder);
|
|
|
|
void ReleaseSemaphore (in nsISupports semHolder);
|
|
|
|
boolean TestSemaphore (in nsISupports semHolder);
|
|
|
|
boolean IsLocked();
|
|
|
|
|
1999-04-25 00:33:20 +04:00
|
|
|
nsIMessage CreateMessageFromMsgDBHdr(in nsIMsgDBHdr msgDBHdr);
|
1999-05-07 04:29:56 +04:00
|
|
|
void GetNewMessages();
|
1999-01-23 05:48:58 +03:00
|
|
|
};
|
|
|
|
|
1999-02-26 04:56:15 +03:00
|
|
|
|
1999-02-04 20:54:04 +03:00
|
|
|
[uuid(27D2DE40-BAF1-11d2-9578-00805F8AC615)]
|
1999-02-09 07:20:46 +03:00
|
|
|
interface nsIMsgLocalMailFolder : nsISupports {
|
1999-02-04 20:54:04 +03:00
|
|
|
|
1999-02-05 06:08:00 +03:00
|
|
|
};
|
1999-02-09 07:20:46 +03:00
|
|
|
|
1999-04-20 23:08:10 +04:00
|
|
|
[uuid(3716abe4-f6d4-11d2-86d5-004005263078)]
|
|
|
|
interface nsIMsgNewsFolder : nsISupports {
|
|
|
|
|
|
|
|
};
|
1999-02-09 07:20:46 +03:00
|
|
|
|
1999-02-17 08:32:08 +03:00
|
|
|
[uuid(FBFEBE79-C1DD-11d2-8A40-0060B0FC04D2)]
|
1999-02-09 07:20:46 +03:00
|
|
|
interface nsIMsgImapMailFolder : nsISupports {
|
|
|
|
};
|
|
|
|
|
1999-02-17 08:32:08 +03:00
|
|
|
|