1999-06-04 01:18:13 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
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-06-04 01:18:13 +04: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-06-04 01:18:13 +04: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-06-04 01:18:13 +04: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-06-04 01:18:13 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
1999-09-30 00:37:12 +04:00
|
|
|
#include "nsrootidl.idl"
|
1999-06-04 01:18:13 +04:00
|
|
|
#include "domstubs.idl"
|
|
|
|
#include "xulstubs.idl"
|
|
|
|
#include "nsIRDFCompositeDataSource.idl"
|
1999-10-29 08:39:06 +04:00
|
|
|
#include "nsIMsgWindow.idl"
|
1999-11-24 01:19:48 +03:00
|
|
|
#include "nsIMsgIdentity.idl"
|
1999-06-04 01:18:13 +04:00
|
|
|
|
|
|
|
%{C++
|
|
|
|
#include "nsIDOMWindow.h"
|
|
|
|
%}
|
|
|
|
|
1999-06-09 05:30:27 +04:00
|
|
|
interface nsITransactionManager;
|
|
|
|
|
1999-06-04 01:18:13 +04:00
|
|
|
[scriptable, uuid(4f7966d0-c14f-11d2-b7f2-00805f05ffa5)]
|
|
|
|
interface nsIMessenger : nsISupports {
|
|
|
|
|
1999-06-09 05:30:27 +04:00
|
|
|
readonly attribute nsITransactionManager transactionManager;
|
|
|
|
|
1999-12-18 03:48:25 +03:00
|
|
|
void GetNewMessages(in nsIRDFCompositeDataSource database,
|
|
|
|
in nsIRDFResource folder);
|
1999-10-29 08:39:06 +04:00
|
|
|
void SetWindow(in nsIDOMWindow ptr, in nsIMsgWindow msgWindow);
|
1999-08-05 23:47:58 +04:00
|
|
|
void DoPrint();
|
|
|
|
void DoPrintPreview();
|
1999-12-18 03:48:25 +03:00
|
|
|
void DeleteMessages(in nsIRDFCompositeDataSource database,
|
|
|
|
in nsIRDFResource srcFolderResource,
|
|
|
|
in nsISupportsArray messages);
|
|
|
|
void DeleteFolders(in nsIRDFCompositeDataSource db,
|
|
|
|
in nsIRDFResource parentFolder,
|
|
|
|
in nsIRDFResource folder);
|
|
|
|
void CopyMessages(in nsIRDFCompositeDataSource database,
|
|
|
|
in nsIRDFResource srcFolder,
|
|
|
|
in nsIRDFResource dstFolder,
|
|
|
|
in nsISupportsArray messages,
|
1999-06-04 01:18:13 +04:00
|
|
|
in boolean isMove);
|
1999-12-18 03:48:25 +03:00
|
|
|
|
1999-09-18 03:15:02 +04:00
|
|
|
void OpenURL(in string url);
|
1999-12-18 03:48:25 +03:00
|
|
|
void MarkMessagesRead(in nsIRDFCompositeDataSource database,
|
|
|
|
in nsISupportsArray messages,
|
1999-07-15 07:08:38 +04:00
|
|
|
in boolean markRead);
|
1999-12-18 03:48:25 +03:00
|
|
|
void MarkMessageRead(in nsIRDFCompositeDataSource database,
|
|
|
|
in nsIRDFResource message,
|
|
|
|
in boolean markRead);
|
|
|
|
void MarkAllMessagesRead(in nsIRDFCompositeDataSource database,
|
|
|
|
in nsIRDFResource folder);
|
1999-08-25 01:45:21 +04:00
|
|
|
|
1999-12-18 03:48:25 +03:00
|
|
|
void MarkMessagesFlagged(in nsIRDFCompositeDataSource database,
|
|
|
|
in nsISupportsArray messages,
|
|
|
|
in boolean markFlagged);
|
|
|
|
void MarkMessageFlagged(in nsIRDFCompositeDataSource database,
|
|
|
|
in nsIRDFResource message,
|
|
|
|
in boolean markFlagged);
|
1999-08-25 01:45:21 +04:00
|
|
|
|
1999-12-18 03:48:25 +03:00
|
|
|
void NewFolder(in nsIRDFCompositeDataSource database,
|
|
|
|
in nsIRDFResource parentFolder,
|
1999-06-04 01:18:13 +04:00
|
|
|
in string name);
|
1999-08-06 17:32:19 +04:00
|
|
|
|
|
|
|
void RenameFolder(in nsIRDFCompositeDataSource db,
|
fix for #17402, stationary -> stationery.
r=alecf
major fixes for the new folder / rename folder / subscribe dialogs.
we no longer use an html select for the folder picker.
now we use cascading menu popups, like the copy and move menus.
this fixes a lot of bugs, and allows pre-flighting to finally work.
our folder data source has some new properies:
CanFileMessages, CanSubscribe, CanRename, and CanCreateSubfolders
we use these to determine what cascading menu to build, what to disable, etc.
also, nsMessenger::NewFolder() and nsMessenger::RenameFolder() were changes to
take a nsIRDFResource instead of a nsIDOMXULElement. Before we were
passing through to the back end the selected xul element, now we pass
the resource in.
other cool side effects:
in the copy & move menus, you don't get the choice to file or copy to a server, on folders
in the rename dialog, you can't pick a server, on a folder
in the new folder dialog, you can't pick the imap inbox. (* more needs to be done here.)
bugs fixed: #14773, #14254, #20599, #20646
r=alecf
a couple bullet proofing fixes to prevent some crashes reported on fullcircle
r=bienvenu
1999-12-03 11:10:09 +03:00
|
|
|
in nsIRDFResource folder, in string name);
|
1999-12-18 03:48:25 +03:00
|
|
|
void CompactFolder(in nsIRDFCompositeDataSource db,
|
|
|
|
in nsIRDFResource folder);
|
|
|
|
void EmptyTrash(in nsIRDFCompositeDataSource db,
|
|
|
|
in nsIRDFResource folder);
|
1999-08-06 17:32:19 +04:00
|
|
|
|
1999-06-09 02:15:58 +04:00
|
|
|
void Undo();
|
|
|
|
void Redo();
|
1999-06-12 02:07:08 +04:00
|
|
|
void SendUnsentMessages();
|
1999-07-31 23:59:35 +04:00
|
|
|
void LoadFirstDraft();
|
1999-06-15 05:23:34 +04:00
|
|
|
void SetDocumentCharset(in wstring characterSet);
|
1999-11-24 01:19:48 +03:00
|
|
|
void saveAs(in string url, in boolean asFile, in nsIMsgIdentity identity);
|
1999-09-21 01:00:51 +04:00
|
|
|
void openAttachment(in string url, in string displayName, in string messageUri);
|
1999-06-04 01:18:13 +04:00
|
|
|
};
|
1999-06-09 02:15:58 +04:00
|
|
|
|