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
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* The contents of this file are subject to the Netscape Public
|
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.mozilla.org/NPL/
|
1999-01-23 05:48:58 +03:00
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
1999-01-23 05:48:58 +03:00
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1999-01-23 05:48:58 +03:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-11-06 06:43:54 +03:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1999-01-23 05:48:58 +03:00
|
|
|
*/
|
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-06-25 07:56:02 +04:00
|
|
|
#include "nsIFileSpec.idl"
|
1999-06-29 23:45:19 +04:00
|
|
|
#include "nsISupportsArray.idl"
|
1999-07-14 00:03:57 +04:00
|
|
|
#include "nsIMsgCopyServiceListener.idl"
|
1999-02-26 04:56:15 +03:00
|
|
|
|
|
|
|
%{ C++
|
1999-06-22 02:56:18 +04:00
|
|
|
#include "nsIMsgDatabase.h"
|
1999-06-26 22:20:30 +04:00
|
|
|
#include "nsMsgKeyArray.h"
|
1999-02-26 04:56:15 +03:00
|
|
|
%}
|
1999-06-23 03:42:29 +04:00
|
|
|
|
1999-05-05 06:30:46 +04:00
|
|
|
interface nsIMessage;
|
1999-10-29 08:39:06 +04:00
|
|
|
interface nsIMsgWindow;
|
1999-06-22 02:56:18 +04:00
|
|
|
interface nsIMsgDatabase;
|
1999-06-26 22:20:30 +04:00
|
|
|
interface nsMsgKeyArray;
|
1999-05-12 08:40:44 +04:00
|
|
|
|
1999-07-17 07:26:24 +04:00
|
|
|
interface nsIMsgFolderCacheElement;
|
1999-11-19 17:35:31 +03:00
|
|
|
interface nsAutoString;
|
1999-07-17 07:26:24 +04:00
|
|
|
|
1999-05-27 09:19:55 +04:00
|
|
|
[scriptable, 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-06-23 03:42:29 +04:00
|
|
|
/* XXX should these 2 go on nsIFolder or nsICollection? */
|
|
|
|
void AddUnique(in nsISupports element);
|
|
|
|
void ReplaceElement(in nsISupports element, in nsISupports newElement);
|
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
nsISimpleEnumerator getMessages();
|
|
|
|
nsISimpleEnumerator getThreads();
|
|
|
|
|
|
|
|
void startFolderLoading();
|
|
|
|
void endFolderLoading();
|
|
|
|
|
1999-09-14 08:02:34 +04:00
|
|
|
/* get new headers for db */
|
1999-11-03 00:36:59 +03:00
|
|
|
void updateFolder(in nsIMsgWindow aWindow);
|
1999-10-21 01:58:21 +04:00
|
|
|
|
|
|
|
nsIMsgThread getThreadForMessage(in nsIMessage message);
|
|
|
|
boolean hasMessage(in nsIMessage message);
|
|
|
|
|
|
|
|
nsIEnumerator getVisibleSubFolders();
|
1999-06-29 01:56:33 +04:00
|
|
|
readonly attribute wstring prettiestName;
|
1999-10-21 01:58:21 +04:00
|
|
|
|
|
|
|
readonly attribute string folderURL;
|
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-08-21 02:41:38 +04:00
|
|
|
readonly attribute boolean isServer;
|
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-10-21 01:58:21 +04:00
|
|
|
void deleteSubFolders(in nsISupportsArray folders);
|
|
|
|
void propagateDelete(in nsIMsgFolder folder, in boolean deleteStorage);
|
|
|
|
void recursiveDelete(in boolean deleteStorage);
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
void createSubfolder(in string folderName);
|
1999-11-19 17:35:31 +03:00
|
|
|
nsIMsgFolder addSubfolder(in nsAutoString folderName);
|
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
void compact();
|
|
|
|
void emptyTrash();
|
1999-08-06 17:32:50 +04:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
void rename(in string name);
|
|
|
|
void adopt(in nsIMsgFolder srcFolder, out unsigned long outPos);
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
boolean containsChildNamed(in string name);
|
|
|
|
boolean isAncestorOf(in nsIMsgFolder folder);
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
string generateUniqueSubfolderName(in string prefix,
|
|
|
|
in nsIMsgFolder otherFolder);
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
void updateSummaryTotals(in boolean force);
|
|
|
|
void summaryChanged();
|
|
|
|
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-10-21 01:58:21 +04:00
|
|
|
void clearRequiresCleanup();
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
boolean manyHeadersToDownload();
|
1999-09-14 01:36:02 +04: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-10-21 01:58:21 +04:00
|
|
|
readonly attribute 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-10-21 01:58:21 +04:00
|
|
|
void rememberPassword(in string password);
|
|
|
|
readonly attribute string rememberedPassword;
|
|
|
|
boolean userNeedsToAuthenticateForFolder(in boolean displayOnly);
|
|
|
|
readonly attribute string username;
|
|
|
|
readonly attribute string hostname;
|
1999-01-26 02:38:09 +03:00
|
|
|
|
1999-10-21 01:58:21 +04: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-10-21 01:58:21 +04:00
|
|
|
void toggleFlag (in unsigned long flag);
|
|
|
|
void onFlagChange (in unsigned long flag);
|
|
|
|
|
|
|
|
readonly attribute unsigned long flags;
|
1999-01-28 04:23:40 +03:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
void getFoldersWithFlag(in unsigned long flags, out nsIMsgFolder result,
|
1999-02-05 06:08:00 +03:00
|
|
|
in unsigned long resultsize, out unsigned long numFolders);
|
1999-01-28 04:23:40 +03:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
void getExpansionArray(in nsISupportsArray expansionArray);
|
1999-01-28 04:23:40 +03:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
void deleteMessages(in nsISupportsArray message,
|
1999-10-29 08:39:06 +04:00
|
|
|
in nsIMsgWindow msgWindow,
|
1999-10-21 01:58:21 +04:00
|
|
|
in boolean deleteStorage);
|
1999-03-12 11:02:35 +03:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
void copyMessages(in nsIMsgFolder srcFolder, in nsISupportsArray messages,
|
1999-10-29 08:39:06 +04:00
|
|
|
in boolean isMove, in nsIMsgWindow msgWindow,
|
1999-07-14 00:03:57 +04:00
|
|
|
in nsIMsgCopyServiceListener listener);
|
1999-06-26 22:20:30 +04:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
void copyFileMessage(in nsIFileSpec fileSpec, in nsIMessage msgToReplace,
|
1999-10-29 08:39:06 +04:00
|
|
|
in boolean isDraft, in nsIMsgWindow msgWindow,
|
1999-07-14 00:03:57 +04:00
|
|
|
in nsIMsgCopyServiceListener listener);
|
1999-06-26 22:20:30 +04:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
void acquireSemaphore (in nsISupports semHolder);
|
|
|
|
void releaseSemaphore (in nsISupports semHolder);
|
|
|
|
boolean testSemaphore (in nsISupports semHolder);
|
|
|
|
readonly attribute boolean locked;
|
1999-03-24 02:19:58 +03:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
nsIMessage createMessageFromMsgDBHdr(in nsIMsgDBHdr msgDBHdr);
|
1999-11-03 00:36:59 +03:00
|
|
|
void getNewMessages(in nsIMsgWindow aWindow);
|
1999-07-17 07:26:24 +04:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
void writeToFolderCache(in nsIMsgFolderCache folderCache);
|
1999-06-04 02:53:37 +04:00
|
|
|
attribute wstring charset;
|
1999-10-21 01:58:21 +04:00
|
|
|
attribute unsigned long biffState;
|
|
|
|
attribute long numNewMessages;
|
1999-06-12 02:07:08 +04:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
readonly attribute wstring newMessagesNotificationDescription;
|
|
|
|
readonly attribute nsIMsgFolder rootFolder;
|
1999-06-22 02:56:18 +04:00
|
|
|
readonly attribute nsIMsgDatabase msgDatabase;
|
1999-06-25 07:56:02 +04:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
readonly attribute nsIFileSpec path;
|
1999-07-23 08:32:54 +04:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
void markMessagesRead(in nsISupportsArray messages, in boolean markRead);
|
|
|
|
void markAllMessagesRead();
|
|
|
|
void markMessagesFlagged(in nsISupportsArray messages, in boolean markFlagged);
|
1999-07-23 08:32:54 +04:00
|
|
|
|
1999-10-21 01:58:21 +04:00
|
|
|
nsIMsgFolder getChildWithURI(in string uri, in boolean deep);
|
1999-01-23 05:48:58 +03:00
|
|
|
};
|
|
|
|
|
1999-02-26 04:56:15 +03:00
|
|
|
|
1999-05-27 09:19:55 +04:00
|
|
|
[scriptable, 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-05-27 09:19:55 +04:00
|
|
|
[scriptable, uuid(3716abe4-f6d4-11d2-86d5-004005263078)]
|
1999-04-20 23:08:10 +04:00
|
|
|
interface nsIMsgNewsFolder : nsISupports {
|
1999-07-01 10:13:06 +04:00
|
|
|
attribute string unreadSetStr;
|
1999-04-20 23:08:10 +04:00
|
|
|
};
|
1999-02-09 07:20:46 +03:00
|
|
|
|
1999-05-27 09:19:55 +04:00
|
|
|
[scriptable, uuid(FBFEBE79-C1DD-11d2-8A40-0060B0FC04D2)]
|
1999-02-09 07:20:46 +03:00
|
|
|
interface nsIMsgImapMailFolder : nsISupports {
|
1999-08-19 23:52:51 +04:00
|
|
|
|
|
|
|
void RemoveSubFolder(in nsIMsgFolder folder);
|
1999-08-25 05:17:52 +04:00
|
|
|
void CreateClientSubfolderInfo(in string folderName);
|
|
|
|
attribute boolean verifiedAsOnlineFolder;
|
|
|
|
attribute boolean explicitlyVerify;
|
1999-02-09 07:20:46 +03:00
|
|
|
};
|
|
|
|
|
1999-02-17 08:32:08 +03:00
|
|
|
|