1999-08-04 20:17:40 +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-08-04 20:17:40 +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-08-04 20:17:40 +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-08-04 20:17:40 +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-08-04 20:17:40 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
#include "nsIURL.idl"
|
|
|
|
|
1999-09-12 05:06:19 +00:00
|
|
|
interface nsIFileSpec;
|
1999-08-04 20:17:40 +00:00
|
|
|
interface nsIUrlListener;
|
|
|
|
interface nsIMsgStatusFeedback;
|
1999-08-10 18:17:25 +00:00
|
|
|
interface nsIMsgIncomingServer;
|
1999-10-29 04:39:06 +00:00
|
|
|
interface nsIMsgWindow;
|
1999-11-02 21:36:59 +00:00
|
|
|
interface nsILoadGroup;
|
2000-04-20 01:13:31 +00:00
|
|
|
interface nsIMsgSearchSession;
|
2000-11-13 22:27:34 +00:00
|
|
|
interface nsICachedNetData;
|
1999-08-04 20:17:40 +00:00
|
|
|
|
|
|
|
[scriptable, uuid(6CFFCEB0-CB8C-11d2-8065-006008128C4E)]
|
|
|
|
interface nsIMsgMailNewsUrl : nsIURL {
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Eventually we'd like to push this type of functionality up into nsIURI.
|
|
|
|
// The idea is to allow the "application" (the part of the code which wants to
|
|
|
|
// run a url in order to perform some action) to register itself as a listener
|
|
|
|
// on url. As a url listener, the app will be informed when the url begins to run
|
|
|
|
// and when the url is finished.
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
void RegisterListener (in nsIUrlListener aUrlListener);
|
|
|
|
void UnRegisterListener (in nsIUrlListener aUrlListener);
|
|
|
|
|
|
|
|
// Eventually these will be removed and replaced with calls to nsIMsgStatusFeedback
|
|
|
|
void SetErrorMessage (in string errorMessage);
|
|
|
|
void GetErrorMessage (out string errorMessage);
|
|
|
|
|
|
|
|
// if you really want to know what the current state of the url is (running or not
|
|
|
|
// running) you should look into becoming a urlListener...
|
|
|
|
void SetUrlState(in boolean runningUrl, in nsresult aStatusCode);
|
|
|
|
void GetUrlState(out boolean runningUrl);
|
|
|
|
|
1999-08-10 18:17:25 +00:00
|
|
|
void GetServer(out nsIMsgIncomingServer aIncomingServer);
|
|
|
|
|
1999-08-04 20:17:40 +00:00
|
|
|
// the ownership model for msg feedback
|
|
|
|
void SetStatusFeedback(in nsIMsgStatusFeedback aMsgFeedback);
|
|
|
|
void GetStatusFeedback(out nsIMsgStatusFeedback aMsgFeedback);
|
1999-09-15 00:59:03 +00:00
|
|
|
|
1999-10-29 04:39:06 +00:00
|
|
|
void SetMsgWindow(in nsIMsgWindow aMsgWindow);
|
|
|
|
void GetMsgWindow(out nsIMsgWindow aMsgWindow);
|
|
|
|
|
1999-11-02 21:36:59 +00:00
|
|
|
// the load group is computed from the msgWindow
|
|
|
|
readonly attribute nsILoadGroup loadGroup;
|
2000-04-20 01:13:31 +00:00
|
|
|
|
|
|
|
// search session, if we're running a search.
|
|
|
|
attribute nsIMsgSearchSession searchSession;
|
1999-09-15 00:59:03 +00:00
|
|
|
attribute boolean updatingFolder;
|
2000-01-13 03:20:59 +00:00
|
|
|
attribute boolean addToMemoryCache;
|
2000-12-06 19:35:43 +00:00
|
|
|
attribute boolean msgIsInLocalCache;
|
2001-01-09 23:02:47 +00:00
|
|
|
attribute boolean suppressErrorMsgs; // used to avoid displaying biff error messages
|
2000-12-06 19:35:43 +00:00
|
|
|
|
2000-11-13 22:27:34 +00:00
|
|
|
readonly attribute nsICachedNetData memCacheEntry;
|
2000-03-09 04:17:02 +00:00
|
|
|
|
|
|
|
const unsigned long eCopy = 0;
|
|
|
|
const unsigned long eMove = 1;
|
|
|
|
const unsigned long eDisplay = 2;
|
|
|
|
boolean IsUrlType(in unsigned long type);
|
1999-08-04 20:17:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// This is a very small interface which I'm grouping with the mailnewsUrl interface.
|
1999-09-12 05:06:19 +00:00
|
|
|
// Several url types (mailbox, imap, nntp) have similar properties because they can
|
|
|
|
// represent mail messages. For instance, these urls can be have URI
|
|
|
|
// equivalents which represent a message.
|
|
|
|
// We want to provide the app the ability to get the URI for the
|
1999-08-04 20:17:40 +00:00
|
|
|
// url. This URI to URL mapping doesn't exist for all mailnews urls...hence I'm
|
|
|
|
// grouping it into a separate interface...
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
[scriptable, uuid(02338DD2-E7B9-11d2-8070-006008128C4E)]
|
1999-09-12 05:06:19 +00:00
|
|
|
interface nsIMsgMessageUrl : nsISupports {
|
2000-05-15 20:33:37 +00:00
|
|
|
// get and set the RDF URI associated with the url. Note, not all urls have
|
|
|
|
// had uri's set on them so be prepared to handle cases where this string is empty.
|
|
|
|
attribute string uri;
|
1999-09-12 05:06:19 +00:00
|
|
|
// used by imap, pop and nntp in order to implement save message to disk
|
|
|
|
attribute nsIFileSpec messageFile;
|
|
|
|
attribute boolean AddDummyEnvelope;
|
1999-12-06 15:40:24 +00:00
|
|
|
attribute boolean canonicalLineEnding;
|
2000-04-25 01:48:00 +00:00
|
|
|
attribute string originalSpec;
|
1999-08-04 20:17:40 +00:00
|
|
|
};
|
2000-05-15 20:33:37 +00:00
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// This is a very small interface which I'm grouping with the mailnewsUrl interface.
|
|
|
|
// I want to isolate out all the I18N specific information that may be associated with
|
|
|
|
// any given mailnews url. This gives I18N their own "sandbox" of routines they can add
|
|
|
|
// and tweak as they see fit. For now it contains mostly charset information.
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
[scriptable, uuid(D71E0785-2862-11d4-98C1-001083010E9B)]
|
|
|
|
interface nsIMsgI18NUrl : nsISupports {
|
|
|
|
// the charset associated with a folder for this url.....
|
|
|
|
readonly attribute wstring folderCharset;
|
|
|
|
// the charsetOverRide is a charset the user may have specified via the menu for
|
|
|
|
// a particular message
|
2000-05-15 22:40:01 +00:00
|
|
|
attribute wstring charsetOverRide;
|
2000-05-15 20:33:37 +00:00
|
|
|
};
|