1999-04-19 21:32:26 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
1999-11-06 03:43:54 +00: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-04-19 21:32:26 +00:00
|
|
|
*
|
1999-11-06 03:43:54 +00: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-04-19 21:32:26 +00:00
|
|
|
*
|
1999-11-06 03:43:54 +00:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1999-04-19 21:32:26 +00:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-11-06 03:43:54 +00:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1999-04-19 21:32:26 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
1999-05-12 04:40:44 +00:00
|
|
|
|
1999-06-23 03:29:44 +00:00
|
|
|
interface nsIURI;
|
1999-05-12 06:28:50 +00:00
|
|
|
interface nsIUrlListener;
|
1999-04-19 21:32:26 +00:00
|
|
|
interface nsIStreamListener;
|
1999-06-04 23:00:52 +00:00
|
|
|
interface nsIFileSpec;
|
1999-04-19 21:32:26 +00:00
|
|
|
|
1999-05-27 05:19:55 +00:00
|
|
|
[scriptable, uuid(F11009C1-F697-11d2-807F-006008128C4E)]
|
1999-04-19 21:32:26 +00:00
|
|
|
interface nsIMsgMessageService : nsISupports {
|
1999-04-20 23:33:19 +00:00
|
|
|
|
|
|
|
%{ C++
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////
|
1999-06-23 03:29:44 +00:00
|
|
|
// If you want a handle on the running task, pass in a valid nsIURI
|
1999-04-20 23:33:19 +00:00
|
|
|
// ptr. You can later interrupt this action by asking the netlib
|
|
|
|
// service manager to interrupt the url you are given back.
|
|
|
|
// Remember to release aURL when you are done with it. Pass nsnull
|
|
|
|
// in for aURL if you don't care about the returned URL.
|
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
// CopyMessage: Pass in the URI for the message you want to have
|
|
|
|
// copied.
|
|
|
|
// aCopyListener already knows about the destination folder.
|
|
|
|
// Set aMoveMessage to PR_TRUE if you want the message to be moved.
|
|
|
|
// PR_FALSE leaves it as just a copy.
|
|
|
|
///////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
%}
|
|
|
|
|
|
|
|
void CopyMessage(in string aSrcURI, in nsIStreamListener aCopyListener, in boolean aMoveMessage,
|
1999-06-23 03:29:44 +00:00
|
|
|
in nsIUrlListener aUrlListener, out nsIURI aURL);
|
1999-04-20 23:33:19 +00:00
|
|
|
|
|
|
|
%{ C++
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
// DisplayMessage: When you want a message displayed....
|
|
|
|
// aMessageURI is a uri representing the message to display.
|
|
|
|
// aDisplayConsumer is (for now) a nsIWebshell which we'll use to load
|
|
|
|
// the message into.
|
|
|
|
// It would be nice if we can figure this out for ourselves in the
|
|
|
|
// protocol but we can't do that right now.
|
|
|
|
///////////////////////////////////////////////////////////////////
|
|
|
|
%}
|
1999-04-19 21:32:26 +00:00
|
|
|
void DisplayMessage(in string aMessageURI, in nsISupports aDisplayConsumer,
|
1999-06-23 03:29:44 +00:00
|
|
|
in nsIUrlListener aUrlListener, out nsIURI aURL);
|
1999-04-19 21:32:26 +00:00
|
|
|
|
1999-06-04 23:00:52 +00:00
|
|
|
%{ C++
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
// SaveMessageToDisk: When you want to spool a message out to a file
|
|
|
|
// on disk. This is an asynch operation of course. You must pass in a
|
|
|
|
// url listener in order to figure out when the operation is done.
|
|
|
|
// aMessageURI--> uri representing the message to spool out to disk.
|
|
|
|
// aFile - the file you want the message saved to
|
1999-09-12 05:06:19 +00:00
|
|
|
// aGenerateDummyEnvelope --> usually FALSE. Set to TRUE if you want the msg
|
1999-06-04 23:00:52 +00:00
|
|
|
// appended at the end of the file.
|
|
|
|
///////////////////////////////////////////////////////////////////
|
|
|
|
%}
|
1999-09-12 05:06:19 +00:00
|
|
|
void SaveMessageToDisk(in string aMessageURI, in nsIFileSpec aFile, in boolean aGenerateDummyEnvelope,
|
1999-06-23 03:29:44 +00:00
|
|
|
in nsIUrlListener aUrlListener, out nsIURI aURL);
|
1999-10-23 23:39:57 +00:00
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
// GetUrlForUri: when you have a uri and you would like to convert that
|
|
|
|
// to a url which can be run through necko, you can use this method.
|
|
|
|
// the Uri MUST refer to a message and not a folder!
|
|
|
|
|
|
|
|
void GetUrlForUri(in string aMessageURI, out nsIURI aURL);
|
1999-04-20 23:33:19 +00:00
|
|
|
};
|