spamming tree with NS_DECL_IFOO's. generated code from macros replacing code in .h files

This commit is contained in:
arielb%rice.edu 1999-09-09 06:02:05 +00:00
parent ee1f9d1b32
commit a5c4082159
18 changed files with 31 additions and 436 deletions

View File

@ -55,31 +55,13 @@ class nsMsgFilterList : public nsIMsgFilterList
{
public:
NS_DECL_ISUPPORTS
static const nsIID& GetIID() { static nsIID iid = NS_IMSGFILTERLIST_IID; return iid; }
NS_DECL_NSIMSGFILTERLIST
//should be generated by idl. commenting out
// static const nsIID& GetIID() { static nsIID iid = NS_IMSGFILTERLIST_IID; return iid; }
nsMsgFilterList(nsIOFileStream *fileStream);
virtual ~nsMsgFilterList();
NS_IMETHOD GetFolderForFilterList(nsIMsgFolder **aFolder);
NS_IMETHOD GetFilterCount(PRUint32 *pCount);
NS_IMETHOD GetFilterAt(PRUint32 filterIndex, nsIMsgFilter **filter);
/* these methods don't delete filters - they just change the list. FE still must
call MSG_DestroyFilter to delete a filter.
*/
NS_IMETHOD SetFilterAt(PRUint32 filterIndex, nsIMsgFilter *filter);
NS_IMETHOD RemoveFilterAt(PRUint32 filterIndex);
NS_IMETHOD MoveFilterAt(PRUint32 filterIndex, nsMsgFilterMotionValue motion);
NS_IMETHOD InsertFilterAt(PRUint32 filterIndex, nsIMsgFilter *filter);
NS_IMETHOD SetLoggingEnabled(PRBool enable);
NS_IMETHOD GetLoggingEnabled(PRBool *aResult);
NS_IMETHOD CreateFilter(const char *name, nsIMsgFilter **result);
NS_IMETHOD SaveToFile(nsIOFileStream *stream);
NS_IMETHOD ApplyFiltersToHdr(nsMsgFilterTypeType filterType, nsIMsgDBHdr *msgHdr, nsIMsgFolder *folder, nsIMsgDatabase *db,
const char *headers, PRUint32 headersSize, nsIMsgFilterHitNotify *listener);
nsresult Close();
nsresult LoadTextFilters();

View File

@ -39,16 +39,12 @@ public:
virtual ~nsMsgFilterService();
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGFILTERSERVICE
/* clients call OpenFilterList to get a handle to a FilterList, of existing nsMsgFilter *.
These are manipulated by the front end as a result of user interaction
with dialog boxes. To apply the new list call MSG_CloseFilterList.
*/
NS_IMETHOD OpenFilterList(nsFileSpec *filterFile, nsIMsgFilterList **filterList);
NS_IMETHOD CloseFilterList(nsIMsgFilterList *filterList);
NS_IMETHOD SaveFilterList(nsIMsgFilterList *filterList, nsFileSpec *filterFile); /* save without deleting */
NS_IMETHOD CancelFilterList(nsIMsgFilterList *filterList);
};
#endif // _nsMsgFilterService_H_

View File

@ -33,14 +33,8 @@ public:
virtual ~nsCopyMessageStreamListener();
NS_DECL_ISUPPORTS
//nsICopyMessageStreamListener
NS_IMETHOD Init(nsIMsgFolder *srcFolder, nsICopyMessageListener *destination, nsISupports *listenerData);
// nsIStreamObserver
NS_DECL_NSICOPYMESSAGESTREAMLISTENER
NS_DECL_NSISTREAMOBSERVER
// nsIStreamListener
NS_DECL_NSISTREAMLISTENER
protected:

View File

@ -45,123 +45,15 @@ private:
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIRDFDATASOURCE
NS_DECL_NSIRDFCOMPOSITEDATASOURCE
NS_DECL_NSIRDFOBSERVER
NS_DECL_NSIMESSAGEVIEW
NS_DECL_NSIMSGWINDOWDATA
nsMessageViewDataSource(void);
virtual ~nsMessageViewDataSource (void);
virtual nsresult Init();
// nsIRDFDataSource methods
NS_IMETHOD GetURI(char* *uri);
NS_IMETHOD GetSource(nsIRDFResource* property,
nsIRDFNode* target,
PRBool tv,
nsIRDFResource** source /* out */);
NS_IMETHOD GetTarget(nsIRDFResource* source,
nsIRDFResource* property,
PRBool tv,
nsIRDFNode** target);
NS_IMETHOD GetSources(nsIRDFResource* property,
nsIRDFNode* target,
PRBool tv,
nsISimpleEnumerator** sources);
NS_IMETHOD GetTargets(nsIRDFResource* source,
nsIRDFResource* property,
PRBool tv,
nsISimpleEnumerator** targets);
NS_IMETHOD Assert(nsIRDFResource* source,
nsIRDFResource* property,
nsIRDFNode* target,
PRBool tv);
NS_IMETHOD Unassert(nsIRDFResource* source,
nsIRDFResource* property,
nsIRDFNode* target);
NS_IMETHOD Change(nsIRDFResource* aSource,
nsIRDFResource* aProperty,
nsIRDFNode* aOldTarget,
nsIRDFNode* aNewTarget);
NS_IMETHOD Move(nsIRDFResource* aOldSource,
nsIRDFResource* aNewSource,
nsIRDFResource* aProperty,
nsIRDFNode* aTarget);
NS_IMETHOD HasAssertion(nsIRDFResource* source,
nsIRDFResource* property,
nsIRDFNode* target,
PRBool tv,
PRBool* hasAssertion);
NS_IMETHOD AddObserver(nsIRDFObserver* n);
NS_IMETHOD RemoveObserver(nsIRDFObserver* n);
NS_IMETHOD ArcLabelsIn(nsIRDFNode* node,
nsISimpleEnumerator** labels);
NS_IMETHOD ArcLabelsOut(nsIRDFResource* source,
nsISimpleEnumerator** labels);
NS_IMETHOD GetAllResources(nsISimpleEnumerator** aResult);
NS_IMETHOD GetAllCommands(nsIRDFResource* source,
nsIEnumerator/*<nsIRDFResource>*/** commands);
NS_IMETHOD GetAllCmds(nsIRDFResource* source,
nsISimpleEnumerator/*<nsIRDFResource>*/** commands);
NS_IMETHOD IsCommandEnabled(nsISupportsArray/*<nsIRDFResource>*/* aSources,
nsIRDFResource* aCommand,
nsISupportsArray/*<nsIRDFResource>*/* aArguments,
PRBool* aResult);
NS_IMETHOD DoCommand(nsISupportsArray/*<nsIRDFResource>*/* aSources,
nsIRDFResource* aCommand,
nsISupportsArray/*<nsIRDFResource>*/* aArguments);
//nsIRDFCompositeDataSource
NS_IMETHOD AddDataSource(nsIRDFDataSource* source);
NS_IMETHOD RemoveDataSource(nsIRDFDataSource* source);
//nsIRDFObserver
NS_IMETHOD OnAssert(nsIRDFResource* subject,
nsIRDFResource* predicate,
nsIRDFNode* object);
NS_IMETHOD OnUnassert(nsIRDFResource* subject,
nsIRDFResource* predicate,
nsIRDFNode* object);
NS_IMETHOD OnChange(nsIRDFResource* aSource,
nsIRDFResource* aProperty,
nsIRDFNode* aOldTarget,
nsIRDFNode* aNewTarget);
NS_IMETHOD OnMove(nsIRDFResource* aOldSource,
nsIRDFResource* aNewSource,
nsIRDFResource* aProperty,
nsIRDFNode* aTarget);
//nsIMessageView
NS_IMETHOD SetShowAll();
NS_IMETHOD SetShowUnread();
NS_IMETHOD SetShowRead();
NS_IMETHOD SetShowWatched();
NS_IMETHOD SetShowThreads(PRBool showThreads);
//nsIMsgWindowData interface
NS_IMETHOD GetStatusFeedback(nsIMsgStatusFeedback * *aStatusFeedback);
NS_IMETHOD SetStatusFeedback(nsIMsgStatusFeedback * aStatusFeedback);
NS_IMETHOD GetTransactionManager(nsITransactionManager * *aTransactionManager);
NS_IMETHOD SetTransactionManager(nsITransactionManager * aTransactionManager);
protected:
nsresult createMessageNode(nsIMessage *message, nsIRDFResource *property, nsIRDFNode **target);
nsresult createUnreadNode(nsIMessage *message, nsIRDFNode **target);

View File

@ -40,12 +40,7 @@ public:
virtual ~nsMsgBiffManager();
NS_DECL_ISUPPORTS
//nsIBiffManager implementation
NS_IMETHOD AddServerBiff(nsIMsgIncomingServer *server);
NS_IMETHOD RemoveServerBiff(nsIMsgIncomingServer *server);
NS_IMETHOD ForceBiff(nsIMsgIncomingServer *server);
NS_IMETHOD ForceBiffAll();
NS_DECL_NSIMSGBIFFMANAGER
//nsITimerCallback implementation
virtual void Notify(nsITimer *timer);

View File

@ -41,13 +41,7 @@ public:
NS_IMETHOD OnShutdown(const nsCID& aClass, nsISupports *service);
NS_DECL_ISUPPORTS
//nsMsgFolderCache
NS_IMETHOD Init(nsIFileSpec *dbFileSpec);
NS_IMETHOD GetCacheElement(const char *uri, PRBool createIfMissing,
nsIMsgFolderCacheElement **result);
NS_IMETHOD Close();
NS_DECL_NSIMSGFOLDERCACHE
protected:
static PRBool FindCacheElementByURI(nsISupports *aElement, void *data);

View File

@ -31,18 +31,7 @@ public:
virtual ~nsMsgFolderCacheElement();
NS_DECL_ISUPPORTS
//nsMsgFolderCacheElement
NS_IMETHOD GetStringProperty(const char *propertyName, char **result);
NS_IMETHOD GetInt32Property(const char *propertyName, PRInt32 *result);
NS_IMETHOD SetStringProperty(const char *propertyName, const char *propertyValue);
NS_IMETHOD SetInt32Property(const char *propertyName, PRInt32 propertyValue);
/* readonly attribute string URI; */
NS_IMETHOD GetURI(char * *aURI);
NS_IMETHOD SetURI(char *aURI);
NS_DECL_NSIMSGFOLDERCACHEELEMENT
void SetMDBRow(nsIMdbRow *row);
void SetOwningCache(nsMsgFolderCache *owningCache);

View File

@ -40,6 +40,7 @@ private:
public:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIFOLDERLISTENER
nsMsgFolderDataSource(void);
virtual ~nsMsgFolderDataSource (void);
@ -104,18 +105,6 @@ public:
NS_IMETHOD DoCommand(nsISupportsArray/*<nsIRDFResource>*/* aSources,
nsIRDFResource* aCommand,
nsISupportsArray/*<nsIRDFResource>*/* aArguments);
NS_IMETHOD OnItemAdded(nsIFolder *parentFolder, nsISupports *item);
NS_IMETHOD OnItemRemoved(nsIFolder *parentFolder, nsISupports *item);
NS_IMETHOD OnItemPropertyChanged(nsISupports *item, const char *property,
const char *oldValue, const char *newValue);
NS_IMETHOD OnItemPropertyFlagChanged(nsISupports *item, const char *property,
PRUint32 oldFlag, PRUint32 newFlag);
// caching frequently used resources
protected:
nsresult NotifyPropertyChanged(nsIRDFResource *resource, nsIRDFResource *propertyResource,

View File

@ -44,24 +44,8 @@ public:
virtual ~nsMsgMailSession();
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGMAILSESSION
// nsIMsgMailSession support
NS_IMETHOD GetCurrentIdentity(nsIMsgIdentity ** aIdentity);
NS_IMETHOD GetCurrentServer(nsIMsgIncomingServer **aServer);
NS_IMETHOD GetAccountManager(nsIMsgAccountManager* *aAM);
NS_IMETHOD AddFolderListener(nsIFolderListener *listener);
NS_IMETHOD RemoveFolderListener(nsIFolderListener *listener);
NS_IMETHOD NotifyFolderItemPropertyChanged(nsISupports *item, const char *property, const char* oldValue, const char* newValue);
NS_IMETHOD NotifyFolderItemPropertyFlagChanged(nsISupports *item, const char *property, PRUint32 oldValue,
PRUint32 newValue);
NS_IMETHOD NotifyFolderItemAdded(nsIFolder *folder, nsISupports *item);
NS_IMETHOD NotifyFolderItemDeleted(nsIFolder *folder, nsISupports *item);
NS_IMETHOD GetFolderCache(nsIMsgFolderCache **aFolderCache);
NS_IMETHOD SetTemporaryMsgStatusFeedback(nsIMsgStatusFeedback *aMsgStatusFeedback);
NS_IMETHOD GetTemporaryMsgStatusFeedback(nsIMsgStatusFeedback **aMsgStatusFeedback);
nsresult Init();
protected:
nsIMsgAccountManager *m_accountManager;

View File

@ -42,7 +42,7 @@ private:
public:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIFOLDERLISTENER
nsMsgMessageDataSource(void);
virtual ~nsMsgMessageDataSource (void);
virtual nsresult Init();
@ -107,18 +107,6 @@ public:
nsIRDFResource* aCommand,
nsISupportsArray/*<nsIRDFResource>*/* aArguments);
//nsIFolderListener
NS_IMETHOD OnItemAdded(nsIFolder *parentFolder, nsISupports *item);
NS_IMETHOD OnItemRemoved(nsIFolder *parentFolder, nsISupports *item);
NS_IMETHOD OnItemPropertyChanged(nsISupports *item, const char *property,
const char *oldValue, const char *newValue);
NS_IMETHOD OnItemPropertyFlagChanged(nsISupports *item, const char *property,
PRUint32 oldFlag, PRUint32 newFlag);
// caching frequently used resources
protected:
nsresult GetSenderName(nsAutoString& sender, nsAutoString *senderUserName);

View File

@ -34,13 +34,8 @@ public:
virtual ~nsMsgNotificationManager();
NS_DECL_ISUPPORTS
NS_DECL_NSIFOLDERLISTENER
nsresult Init();
//nsIFolderListener
NS_IMETHOD OnItemAdded(nsIFolder *parentFolder, nsISupports *item);
NS_IMETHOD OnItemRemoved(nsIFolder *parentFolder, nsISupports *item);
NS_IMETHOD OnItemPropertyChanged(nsISupports *item, const char *property, const char *oldValue, const char *newValue);
NS_IMETHOD OnItemPropertyFlagChanged(nsISupports *item, const char *property, PRUint32 oldFlag, PRUint32 newFlag);
protected:
nsresult AddNewMailNotification(nsIMsgFolder *folder);

View File

@ -38,137 +38,10 @@ class nsMsgRDFDataSource : public nsIRDFDataSource,
virtual nsresult Init();
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGWINDOWDATA
NS_DECL_NSIRDFDATASOURCE
NS_IMETHOD OnShutdown(const nsCID& aClass, nsISupports* service);
/* readonly attribute string URI; */
NS_IMETHOD GetURI(char * *aURI);
/* nsIRDFResource GetSource (in nsIRDFResource aProperty,
in nsIRDFNode aTarget,
in boolean aTruthValue); */
NS_IMETHOD GetSource(nsIRDFResource *aProperty,
nsIRDFNode *aTarget,
PRBool aTruthValue,
nsIRDFResource **_retval);
/* nsISimpleEnumerator GetSources (in nsIRDFResource aProperty,
in nsIRDFNode aTarget,
in boolean aTruthValue); */
NS_IMETHOD GetSources(nsIRDFResource *aProperty,
nsIRDFNode *aTarget,
PRBool aTruthValue,
nsISimpleEnumerator **_retval);
/* nsIRDFNode GetTarget (in nsIRDFResource aSource,
in nsIRDFResource aProperty,
in boolean aTruthValue); */
NS_IMETHOD GetTarget(nsIRDFResource *aSource,
nsIRDFResource *aProperty,
PRBool aTruthValue,
nsIRDFNode **_retval);
/* nsISimpleEnumerator GetTargets (in nsIRDFResource aSource,
in nsIRDFResource aProperty,
in boolean aTruthValue); */
NS_IMETHOD GetTargets(nsIRDFResource *aSource,
nsIRDFResource *aProperty,
PRBool aTruthValue,
nsISimpleEnumerator **_retval);
/* void Assert (in nsIRDFResource aSource,
in nsIRDFResource aProperty,
in nsIRDFNode aTarget,
in boolean aTruthValue); */
NS_IMETHOD Assert(nsIRDFResource *aSource,
nsIRDFResource *aProperty,
nsIRDFNode *aTarget,
PRBool aTruthValue);
/* void Unassert (in nsIRDFResource aSource,
in nsIRDFResource aProperty,
in nsIRDFNode aTarget); */
NS_IMETHOD Unassert(nsIRDFResource *aSource,
nsIRDFResource *aProperty,
nsIRDFNode *aTarget);
/* void Change (in nsIRDFResource aSource,
in nsIRDFResource aProperty,
in nsIRDFNode aOldTarget,
in nsIRDFNode aNewTarget);
*/
NS_IMETHOD Change(nsIRDFResource *aSource,
nsIRDFResource *aProperty,
nsIRDFNode *aOldTarget,
nsIRDFNode *aNewTarget);
/* void Move (in nsIRDFResource aOldSource,
in nsIRDFResource aNewSource,
in nsIRDFResource aProperty,
in nsIRDFNode aTarget); */
NS_IMETHOD Move(nsIRDFResource *aOldSource,
nsIRDFResource *aNewSource,
nsIRDFResource *aProperty,
nsIRDFNode *aTarget);
/* boolean HasAssertion (in nsIRDFResource aSource,
in nsIRDFResource aProperty,
in nsIRDFNode aTarget,
in boolean aTruthValue); */
NS_IMETHOD HasAssertion(nsIRDFResource *aSource,
nsIRDFResource *aProperty,
nsIRDFNode *aTarget,
PRBool aTruthValue,
PRBool *_retval);
/* void AddObserver (in nsIRDFObserver aObserver); */
NS_IMETHOD AddObserver(nsIRDFObserver *aObserver);
/* void RemoveObserver (in nsIRDFObserver aObserver); */
NS_IMETHOD RemoveObserver(nsIRDFObserver *aObserver);
/* nsISimpleEnumerator ArcLabelsIn (in nsIRDFNode aNode); */
NS_IMETHOD ArcLabelsIn(nsIRDFNode *aNode,
nsISimpleEnumerator **_retval);
/* nsISimpleEnumerator ArcLabelsOut (in nsIRDFResource aSource); */
NS_IMETHOD ArcLabelsOut(nsIRDFResource *aSource,
nsISimpleEnumerator **_retval);
/* nsISimpleEnumerator GetAllResources (); */
NS_IMETHOD GetAllResources(nsISimpleEnumerator **_retval);
/* nsIEnumerator GetAllCommands (in nsIRDFResource aSource); */
NS_IMETHOD GetAllCommands(nsIRDFResource *aSource,
nsIEnumerator **_retval);
/* nsISimpleEnumerator GetAllCommands (in nsIRDFResource aSource); */
NS_IMETHOD GetAllCmds(nsIRDFResource *aSource,
nsISimpleEnumerator **_retval);
/* boolean IsCommandEnabled (in nsISupportsArray aSources,
in nsIRDFResource aCommand,
in nsISupportsArray aArguments); */
NS_IMETHOD IsCommandEnabled(nsISupportsArray *aSources,
nsIRDFResource *aCommand,
nsISupportsArray *aArguments,
PRBool *_retval);
/* void DoCommand (in nsISupportsArray aSources,
in nsIRDFResource aCommand,
in nsISupportsArray aArguments); */
NS_IMETHOD DoCommand(nsISupportsArray *aSources,
nsIRDFResource *aCommand,
nsISupportsArray *aArguments);
//nsIMsgWindowData interface
NS_IMETHOD GetStatusFeedback(nsIMsgStatusFeedback * *aStatusFeedback);
NS_IMETHOD SetStatusFeedback(nsIMsgStatusFeedback * aStatusFeedback);
NS_IMETHOD GetTransactionManager(nsITransactionManager * *aTransactionManager);
NS_IMETHOD SetTransactionManager(nsITransactionManager * aTransactionManager);
protected:
nsIRDFService *getRDFService();
static PRBool assertEnumFunc(nsISupports *aElement, void *aData);

View File

@ -32,13 +32,7 @@ public:
virtual ~nsMsgStatusFeedback();
NS_DECL_ISUPPORTS
// nsIMsgStatusFeedback
NS_IMETHOD ShowStatusString(const PRUnichar *status);
NS_IMETHOD StartMeteors();
NS_IMETHOD StopMeteors();
NS_IMETHOD ShowProgress(PRInt32 percent);
NS_IMETHOD SetWebShell(nsIWebShell *shell, nsIDOMWindow *mWindow);
NS_DECL_NSIMSGSTATUSFEEDBACK
// nsIDocumntLoaderObserver
NS_IMETHOD OnStartDocumentLoad(nsIDocumentLoader* loader, nsIURI* aURL, const char* aCommand);

View File

@ -42,18 +42,10 @@ typedef enum {
class nsUrlListenerManager : public nsIUrlListenerManager {
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIURLLISTENERMANAGER
nsUrlListenerManager();
virtual ~nsUrlListenerManager();
// nsIUrlListenerManager interface support
NS_IMETHOD RegisterListener(nsIUrlListener * aUrlListener);
NS_IMETHOD UnRegisterListener(nsIUrlListener * aUrlListener);
// These functions turn around and broadcast the notifications to all url listeners...
NS_IMETHOD OnStartRunningUrl(nsIMsgMailNewsUrl * aUrl);
NS_IMETHOD OnStopRunningUrl(nsIMsgMailNewsUrl * aUrl, nsresult aExitCode);
protected:
nsVoidArray * m_listeners;

View File

@ -39,7 +39,8 @@ public:
virtual ~nsMessage(void);
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIMESSAGE
NS_DECL_NSIDBMESSAGE
//nsIMsgHdr
NS_IMETHOD GetProperty(const char *propertyName, nsString &resultProperty);
NS_IMETHOD SetProperty(const char *propertyName, nsString &propertyStr);
@ -100,13 +101,6 @@ public:
NS_IMETHOD GetThreadParent(nsMsgKey *result);
NS_IMETHOD SetThreadParent(nsMsgKey inKey);
//nsIMessage
NS_IMETHOD GetMsgFolder(nsIMsgFolder **folder);
NS_IMETHOD SetMsgFolder(nsIMsgFolder *folder);
NS_IMETHOD SetMsgDBHdr(nsIMsgDBHdr *hdr);
NS_IMETHOD GetMsgDBHdr(nsIMsgDBHdr **hdr);
protected:
nsIMsgFolder *mFolder;
nsCOMPtr<nsIMsgDBHdr> mMsgHdr;

View File

@ -38,6 +38,7 @@ class NS_MSG_BASE nsMsgDBFolder: public nsMsgFolder, public nsIDBChangeListener
public:
nsMsgDBFolder(void);
virtual ~nsMsgDBFolder(void);
NS_DECL_NSIDBCHANGELISTENER
NS_IMETHOD GetThreads(nsISimpleEnumerator** threadEnumerator);
NS_IMETHOD GetThreadForMessage(nsIMessage *message, nsIMsgThread **thread);
@ -47,17 +48,6 @@ public:
NS_IMETHOD GetMsgDatabase(nsIMsgDatabase** aMsgDatabase);
//nsIDBChangeListener
NS_IMETHOD OnKeyChange(nsMsgKey aKeyChanged, PRUint32 aOldFlags, PRUint32 aNewFlags,
nsIDBChangeListener * aInstigator);
NS_IMETHOD OnKeyDeleted(nsMsgKey aKeyChanged, nsMsgKey aParentKey, PRInt32 aFlags,
nsIDBChangeListener * aInstigator);
NS_IMETHOD OnKeyAdded(nsMsgKey aKeyChanged, nsMsgKey aParentKey, PRInt32 aFlags,
nsIDBChangeListener * aInstigator);
NS_IMETHOD OnParentChanged(nsMsgKey aKeyChanged, nsMsgKey oldParent, nsMsgKey newParent,
nsIDBChangeListener * aInstigator);
NS_IMETHOD OnAnnouncerGoingAway(nsIDBChangeAnnouncer * instigator);
NS_DECL_ISUPPORTS_INHERITED
NS_IMETHOD WriteToFolderCache(nsIMsgFolderCache *folderCache);

View File

@ -42,44 +42,8 @@ public:
nsMsgMailNewsUrl();
NS_DECL_ISUPPORTS
// nsIMsgMailNewsUrl support
///////////////////////////////////////////////////////////////////////////////
// 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.
////////////////////////////////////////////////////////////////////////////////
NS_IMETHOD RegisterListener (nsIUrlListener * aUrlListener);
NS_IMETHOD UnRegisterListener (nsIUrlListener * aUrlListener);
///////////////////////////////////////////////////////////////////////////////
// Getters and Setters for the nsMsgMailNewsUrl specific info....
///////////////////////////////////////////////////////////////////////////////
NS_IMETHOD SetErrorMessage (const char * errorMessage);
// caller must free using PR_FREE
NS_IMETHOD GetErrorMessage (char ** errorMessage);
NS_IMETHOD SetStatusFeedback(nsIMsgStatusFeedback *aMsgFeedback);
NS_IMETHOD GetStatusFeedback(nsIMsgStatusFeedback **aMsgFeedback);
// This is just a stub implementation. It is the responsibility of derived
// url classes to over-ride this method.
NS_IMETHOD GetServer(nsIMsgIncomingServer ** aIncomingServer);
// 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...
NS_IMETHOD SetUrlState(PRBool runningUrl, nsresult aStatusCode);
NS_IMETHOD GetUrlState(PRBool *runningUrl);
//////////////////////////////////////////////////////////////////////////////////
// nsIURI support
NS_DECL_NSIMSGMAILNEWSURL
NS_DECL_NSIURI
//////////////////////////////////////////////////////////////////////////////////
// nsIURL support
NS_DECL_NSIURL
protected:

View File

@ -38,18 +38,8 @@ public:
virtual ~nsMsgProtocol();
NS_DECL_ISUPPORTS
////////////////////////////////////////////////////////////////////////////////////////
// we suppport the nsIStreamListener interface
////////////////////////////////////////////////////////////////////////////////////////
NS_IMETHOD OnDataAvailable(nsIChannel * aChannel, nsISupports *ctxt, nsIInputStream *inStr, PRUint32 sourceOffset, PRUint32 count);
NS_IMETHOD OnStartRequest(nsIChannel * aChannel, nsISupports *ctxt);
NS_IMETHOD OnStopRequest(nsIChannel * aChannel, nsISupports *ctxt, nsresult status, const PRUnichar *errorMsg);
////////////////////////////////////////////////////////////////////////////////////////
// End of nsIStreamListenerSupport
////////////////////////////////////////////////////////////////////////////////////////
NS_DECL_NSISTREAMLISTENER
NS_DECL_NSISTREAMOBSERVER
// LoadUrl -- A protocol typically overrides this function, sets up any local state for the url and
// then calls the base class which opens the socket if it needs opened. If the socket is