2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
|
1999-06-04 01:18:13 +04:00
|
|
|
*
|
2001-09-29 00:14:13 +04: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
|
|
|
*
|
2001-09-29 00:14:13 +04: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.
|
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
1999-11-06 06:43:54 +03:00
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* Contributor(s):
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the NPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the NPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
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 "nsIRDFCompositeDataSource.idl"
|
1999-10-29 08:39:06 +04:00
|
|
|
#include "nsIMsgWindow.idl"
|
1999-11-24 01:19:48 +03:00
|
|
|
#include "nsIMsgIdentity.idl"
|
2000-03-14 08:34:42 +03:00
|
|
|
#include "nsIMsgThread.idl"
|
|
|
|
#include "nsIMsgFolder.idl"
|
1999-06-04 01:18:13 +04:00
|
|
|
|
Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
2001-05-08 21:42:36 +04:00
|
|
|
interface nsIDOMWindowInternal;
|
1999-06-09 05:30:27 +04:00
|
|
|
interface nsITransactionManager;
|
2001-03-17 04:59:34 +03:00
|
|
|
interface nsIMsgMessageService;
|
1999-06-09 05:30:27 +04:00
|
|
|
|
1999-06-04 01:18:13 +04:00
|
|
|
[scriptable, uuid(4f7966d0-c14f-11d2-b7f2-00805f05ffa5)]
|
|
|
|
interface nsIMessenger : nsISupports {
|
|
|
|
|
2000-05-15 00:41:40 +04:00
|
|
|
const long eUnknown = 0;
|
|
|
|
const long eDeleteMsg = 1;
|
|
|
|
const long eMoveMsg = 2;
|
|
|
|
const long eCopyMsg = 3;
|
2000-02-07 18:15:14 +03:00
|
|
|
|
2001-08-22 07:57:56 +04:00
|
|
|
void setDisplayCharset(in wstring aCharset);
|
|
|
|
|
1999-06-09 05:30:27 +04:00
|
|
|
readonly attribute nsITransactionManager transactionManager;
|
|
|
|
|
2000-09-01 05:54:35 +04:00
|
|
|
void SetWindow(in nsIDOMWindowInternal ptr, in nsIMsgWindow msgWindow);
|
1999-12-18 03:48:25 +03:00
|
|
|
void DeleteMessages(in nsIRDFCompositeDataSource database,
|
|
|
|
in nsIRDFResource srcFolderResource,
|
2000-03-25 03:58:20 +03:00
|
|
|
in nsISupportsArray messages,
|
2002-09-12 07:59:14 +04:00
|
|
|
in boolean reallyDelete);
|
|
|
|
|
1999-12-18 03:48:25 +03:00
|
|
|
void DeleteFolders(in nsIRDFCompositeDataSource db,
|
|
|
|
in nsIRDFResource parentFolder,
|
|
|
|
in nsIRDFResource folder);
|
2002-09-12 07:59:14 +04:00
|
|
|
void CopyMessages(in nsIRDFCompositeDataSource database,
|
2002-08-17 02:22:55 +04:00
|
|
|
in nsIRDFResource srcResource,
|
|
|
|
in nsIRDFResource dstResource,
|
|
|
|
in nsISupportsArray messages,
|
|
|
|
in boolean isMove);
|
|
|
|
|
2002-09-12 07:59:14 +04:00
|
|
|
void CopyFolders(in nsIRDFCompositeDataSource database,
|
2002-08-17 02:22:55 +04:00
|
|
|
in nsIRDFResource dstResource,
|
|
|
|
in nsISupportsArray folders,
|
|
|
|
in boolean isMoveFolder);
|
2001-02-02 23:21:52 +03:00
|
|
|
|
1999-09-18 03:15:02 +04:00
|
|
|
void OpenURL(in string url);
|
1999-08-06 17:32:19 +04:00
|
|
|
void RenameFolder(in nsIRDFCompositeDataSource db,
|
2000-02-08 04:20:00 +03:00
|
|
|
in nsIRDFResource folder, in wstring name);
|
1999-12-18 03:48:25 +03:00
|
|
|
void CompactFolder(in nsIRDFCompositeDataSource db,
|
2001-02-16 05:05:41 +03:00
|
|
|
in nsIRDFResource folder,
|
|
|
|
in boolean forAll);
|
1999-12-18 03:48:25 +03:00
|
|
|
void EmptyTrash(in nsIRDFCompositeDataSource db,
|
|
|
|
in nsIRDFResource folder);
|
1999-08-06 17:32:19 +04:00
|
|
|
|
2000-02-07 18:15:14 +03:00
|
|
|
boolean CanUndo();
|
|
|
|
boolean CanRedo();
|
|
|
|
unsigned long GetUndoTransactionType();
|
|
|
|
unsigned long GetRedoTransactionType();
|
|
|
|
void Undo(in nsIMsgWindow msgWindow);
|
|
|
|
void Redo(in nsIMsgWindow msgWindow);
|
2002-09-12 07:59:14 +04:00
|
|
|
void sendUnsentMessages(in nsIMsgIdentity aIdentity, in nsIMsgWindow aMsgWindow);
|
|
|
|
void SetDocumentCharset(in wstring characterSet);
|
2003-03-16 08:44:48 +03:00
|
|
|
void saveAs(in string aURI, in boolean aAsFile, in nsIMsgIdentity aIdentity, in nsIMsgWindow aMsgWindow);
|
2000-05-03 02:45:44 +04:00
|
|
|
void openAttachment(in string contentTpe, in string url, in string displayName, in string messageUri);
|
2001-06-26 02:11:43 +04:00
|
|
|
void saveAttachment(in string contentTpe, in string url, in string displayName, in string messageUri);
|
|
|
|
void saveAllAttachments(in unsigned long count, [array, size_is(count)] in string contentTypeArray,
|
|
|
|
[array, size_is(count)] in string urlArray, [array, size_is(count)] in string displayNameArray,
|
|
|
|
[array, size_is(count)] in string messageUriArray);
|
2001-03-17 04:59:34 +03:00
|
|
|
|
2002-04-17 18:07:38 +04:00
|
|
|
attribute boolean sendingUnsentMsgs;
|
|
|
|
|
2001-03-17 04:59:34 +03:00
|
|
|
nsIMsgMessageService messageServiceFromURI(in string uri);
|
1999-06-04 01:18:13 +04:00
|
|
|
};
|
1999-06-09 02:15:58 +04:00
|
|
|
|