gecko-dev/mailnews/base/public/nsIMsgFolder.idl

185 строки
5.8 KiB
Plaintext
Исходник Обычный вид История

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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.
*/
#include "nsISupports.idl"
#include "nsIFolder.idl"
1999-04-07 06:50:25 +04:00
#include "nsIMsgThread.idl"
#include "nsIMsgIncomingServer.idl"
1999-06-25 07:56:02 +04:00
#include "nsIFileSpec.idl"
#include "nsISupportsArray.idl"
#include "nsIMsgCopyServiceListener.idl"
%{ C++
1999-06-10 18:55:36 +04:00
#include "nsITransactionManager.h"
#include "nsIMsgDatabase.h"
#include "nsMsgKeyArray.h"
%}
1999-05-05 06:30:46 +04:00
interface nsIMessage;
1999-06-10 18:55:36 +04:00
interface nsITransactionManager;
interface nsIMsgDatabase;
interface nsMsgKeyArray;
1999-07-17 07:26:24 +04:00
interface nsIMsgFolderCacheElement;
[scriptable, uuid(85e39ff0-b248-11d2-b7ef-00805f05ffa5)]
interface nsIMsgFolder : nsIFolder {
/* already exists in nsIFolder */
/* readonly attribute string name; */
/* void SetName(in string name); */
/* XXX should these 2 go on nsIFolder or nsICollection? */
void AddUnique(in nsISupports element);
void ReplaceElement(in nsISupports element, in nsISupports newElement);
nsISimpleEnumerator GetMessages();
nsISimpleEnumerator 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);
nsIEnumerator GetVisibleSubFolders();
1999-06-29 01:56:33 +04:00
readonly attribute wstring prettiestName;
string BuildFolderURL();
readonly attribute boolean deleteIsMoveToTrash;
readonly attribute boolean showDeletedMessages;
readonly attribute nsIMsgIncomingServer server;
1999-08-21 02:41:38 +04:00
readonly attribute boolean isServer;
void OnCloseFolder ();
void Delete ();
1999-05-27 03:45:03 +04:00
void DeleteSubFolders(in nsISupportsArray folders);
void PropagateDelete(in nsIMsgFolder folder, in boolean deleteStorage);
void RecursiveDelete(in boolean deleteStorage);
1999-04-16 01:12:10 +04:00
void CreateSubfolder(in string folderName);
1999-08-06 17:32:50 +04:00
void Compact();
1999-08-06 22:21:13 +04:00
void EmptyTrash();
1999-08-06 17:32:50 +04:00
void Rename(in string name);
void Adopt(in nsIMsgFolder srcFolder, out unsigned long outPos);
boolean ContainsChildNamed(in string name);
1999-05-08 00:21:09 +04:00
boolean IsAncestorOf(in nsIMsgFolder folder);
string GenerateUniqueSubfolderName(in string prefix, in nsIMsgFolder otherFolder);
1999-07-18 00:33:15 +04:00
void UpdateSummaryTotals(in boolean force);
void SummaryChanged();
1999-05-05 06:30:46 +04:00
long GetNumUnread(in boolean deep);
long GetTotalMessages(in boolean deep);
readonly attribute unsigned long expungedBytesCount;
readonly attribute boolean deletable;
readonly attribute boolean canCreateChildren;
readonly attribute boolean canBeRenamed;
readonly attribute boolean requiresCleanup;
void ClearRequiresCleanup();
readonly attribute boolean knowsSearchNntpExtension;
readonly attribute boolean allowsPosting;
boolean DisplayRecipients();
readonly attribute string relativePathName;
readonly attribute unsigned long sizeOnDisk;
void RememberPassword(in string password);
string GetRememberedPassword();
boolean UserNeedsToAuthenticateForFolder(in boolean displayOnly);
string GetUsername();
string GetHostname();
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
void ToggleFlag (in unsigned long flag);
void OnFlagChange (in unsigned long flag);
unsigned long GetFlags();
1999-01-28 04:23:40 +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);
void DeleteMessages(in nsISupportsArray message, in nsITransactionManager
txnMgr,in boolean deleteStorage);
1999-03-12 11:02:35 +03:00
void CopyMessages(in nsIMsgFolder srcFolder, in nsISupportsArray messages,
in boolean isMove, in nsITransactionManager txnMgr,
in nsIMsgCopyServiceListener listener);
void CopyFileMessage(in nsIFileSpec fileSpec, in nsIMessage msgToReplace,
in boolean isDraft, in nsITransactionManager txnMgr,
in nsIMsgCopyServiceListener listener);
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-07-17 07:26:24 +04:00
1999-07-18 00:33:15 +04:00
void WriteToFolderCache(in nsIMsgFolderCache folderCache);
attribute wstring charset;
1999-06-12 02:07:08 +04:00
attribute unsigned long BiffState;
attribute long NumNewMessages;
readonly attribute wstring NewMessagesNotificationDescription;
readonly attribute nsIMsgFolder RootFolder;
readonly attribute nsIMsgDatabase msgDatabase;
1999-06-25 07:56:02 +04:00
readonly attribute nsIFileSpec Path;
void MarkMessagesRead(in nsISupportsArray messages, in boolean markRead);
void MarkAllMessagesRead();
1999-08-25 01:45:21 +04:00
void MarkMessagesFlagged(in nsISupportsArray messages, in boolean markFlagged);
nsIMsgFolder GetChildWithURI(in string uri, in boolean deep);
};
[scriptable, uuid(27D2DE40-BAF1-11d2-9578-00805F8AC615)]
interface nsIMsgLocalMailFolder : nsISupports {
};
[scriptable, uuid(3716abe4-f6d4-11d2-86d5-004005263078)]
1999-04-20 23:08:10 +04:00
interface nsIMsgNewsFolder : nsISupports {
attribute string unreadSetStr;
1999-04-20 23:08:10 +04:00
};
[scriptable, uuid(FBFEBE79-C1DD-11d2-8A40-0060B0FC04D2)]
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;
};