1999-02-24 13:39:06 +03:00
|
|
|
XXX fix this to match the .h file
|
|
|
|
|
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-01-23 05:48:58 +03:00
|
|
|
#include "nsISupportsArray.idl"
|
1999-02-17 08:32:08 +03:00
|
|
|
#include "nsISupports.idl"
|
1999-02-05 06:08:00 +03:00
|
|
|
#include "nsIMsg.idl"
|
1999-01-27 05:59:12 +03:00
|
|
|
|
1999-01-23 05:48:58 +03:00
|
|
|
[uuid(85e39ff0-b248-11d2-b7ef-00805f05ffa5)]
|
1999-02-04 20:54:04 +03:00
|
|
|
interface nsIMsgFolder : nsISupports {
|
|
|
|
|
|
|
|
readonly attribute string prettyName;
|
|
|
|
readonly attribute string name;
|
|
|
|
void SetName(in string name);
|
|
|
|
readonly attribute string prettiestName;
|
|
|
|
|
|
|
|
string BuildFolderURL();
|
|
|
|
|
1999-02-24 13:39:06 +03:00
|
|
|
// XXX should these 2 go on nsIFolder or nsICollection?
|
|
|
|
void AddUnique(in nsISupports element);
|
|
|
|
void ReplaceElement(in nsISupports element, in nsISupports newElement);
|
1999-02-05 06:08:00 +03:00
|
|
|
|
1999-02-04 20:54:04 +03:00
|
|
|
boolean HasSubFolders();
|
1999-02-05 06:08:00 +03:00
|
|
|
unsigned long GetNumSubFolders() ;
|
|
|
|
unsigned long GetNumSubFoldersToDisplay();
|
|
|
|
nsIMsgFolder GetSubFolder(in unsigned long which) ;
|
1999-02-04 20:54:04 +03:00
|
|
|
nsISupportsArray GetSubFolders();
|
|
|
|
void AddSubFolder(in nsIMsgFolder folder);
|
1999-02-05 06:08:00 +03:00
|
|
|
void RemoveSubFolder(in nsIMsgFolder folder);
|
|
|
|
|
|
|
|
boolean HasMessages();
|
|
|
|
unsigned long GetNumMessages() ;
|
|
|
|
unsigned long GetNumMessagesToDisplay();
|
1999-02-25 05:56:13 +03:00
|
|
|
nsIMsgFolder GetAMessage(in unsigned long which) ;
|
1999-02-05 06:08:00 +03:00
|
|
|
nsISupportsArray GetMessages();
|
|
|
|
void AddMessage(in nsIMsg msg);
|
|
|
|
void RemoveMessage(in nsIMsg msg);
|
1999-02-04 20:54:04 +03:00
|
|
|
|
|
|
|
readonly attribute boolean deleteIsMoveToTrash;
|
|
|
|
readonly attribute boolean showDeletedMessages;
|
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-02-05 06:08:00 +03:00
|
|
|
void CreateSubfolder(in string leafNameFromUser, out nsIMsgFolder outFolder, out unsigned long outPos);
|
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);
|
|
|
|
nsIMsgFolder FindChildNamed(in string name);
|
|
|
|
nsIMsgFolder FindParentOf(in nsIMsgFolder childFolder);
|
|
|
|
boolean IsParentOf(in nsIMsgFolder folder, in boolean deep);
|
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-02-05 06:08:00 +03:00
|
|
|
unsigned long GetNumUnread(in boolean deep);
|
|
|
|
unsigned 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-25 05:56:13 +03:00
|
|
|
void ReadDBFolderInfo(in boolean force);
|
|
|
|
|
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();
|
|
|
|
|
|
|
|
void AddSubfolderIfUnique(in nsIMsgFolder newSubfolder);
|
|
|
|
void ReplaceSubfolder(in nsIMsgFolder oldFolder,
|
1999-01-26 02:38:09 +03:00
|
|
|
in nsIMsgFolder newFolder);
|
|
|
|
|
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-01-23 05:48:58 +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-24 13:39:06 +03:00
|
|
|
readonly attribute nsNativeFileSpec pathName;
|
1999-02-05 06:08:00 +03:00
|
|
|
};
|
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
|
|
|
|