From 632c6f367e538f045f4bec7f6d52c06492ff44c2 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Sun, 14 May 2000 20:39:30 +0000 Subject: [PATCH] oops, somehow I managed to forget these --- mailnews/base/util/nsMsgFolder.cpp | 80 ------------------------------ mailnews/base/util/nsMsgFolder.h | 16 ------ 2 files changed, 96 deletions(-) diff --git a/mailnews/base/util/nsMsgFolder.cpp b/mailnews/base/util/nsMsgFolder.cpp index 8382580404fe..4778b26765a2 100644 --- a/mailnews/base/util/nsMsgFolder.cpp +++ b/mailnews/base/util/nsMsgFolder.cpp @@ -80,9 +80,6 @@ nsMsgFolder::nsMsgFolder(void) mSemaphoreHolder = NULL; -#ifdef HAVE_DB - mLastMessageLoaded = nsMsgKey_None; -#endif mNumPendingUnreadMessages = 0; mNumPendingTotalMessages = 0; NS_NewISupportsArray(getter_AddRefs(mSubFolders)); @@ -443,19 +440,6 @@ NS_IMETHODIMP nsMsgFolder::GetFolderURL(char **url) return NS_ERROR_NULL_POINTER; } -#ifdef HAVE_DB -// this class doesn't have a url -NS_IMETHODIMP nsMsgFolder::BuildUrl(nsMsgDatabase *db, nsMsgKey key, char ** url) -{ - if(*url) - { - *url = NULL; - return NS_OK; - } - else - return NS_ERROR_NULL_POINTER; -} -#endif NS_IMETHODIMP nsMsgFolder::GetServer(nsIMsgIncomingServer ** aServer) { @@ -1317,35 +1301,6 @@ void nsMsgFolder::ChangeNumPendingTotalMessages(PRInt32 delta) } -#ifdef HAVE_DB -// These functions are used for tricking the front end into thinking that we have more -// messages than are really in the DB. This is usually after and IMAP message copy where -// we don't want to do an expensive select until the user actually opens that folder -// These functions are called when MSG_Master::GetFolderLineById is populating a MSG_FolderLine -// struct used by the FE - -NS_IMETHODIMP nsMsgFolder::SetFolderPrefFlags(PRUint32 flags) -{ - -} - -NS_IMETHODIMP nsMsgFolder::GetFolderPrefFlags(PRUint32 *flags) -{ - -} - - -NS_IMETHODIMP nsMsgFolder::SetLastMessageLoaded(nsMsgKey lastMessageLoaded) -{ - -} - -NS_IMETHODIMP nsMsgFolder::GetLastMessageLoaded() -{ - -} - -#endif NS_IMETHODIMP nsMsgFolder::SetPrefFlag() { @@ -2233,41 +2188,6 @@ nsresult nsMsgFolder::NotifyItemDeleted(nsISupports *parentItem, nsISupports *it } -nsresult nsMsgFolder::NotifyFolderLoaded() -{ - PRInt32 i; - for(i = 0; i < mListeners->Count(); i++) - { - //Folderlistener's aren't refcounted. - nsIFolderListener *listener = (nsIFolderListener*)mListeners->ElementAt(i); - listener->OnFolderLoaded(this); - } - //Notify listeners who listen to every folder - nsresult rv; - NS_WITH_SERVICE(nsIFolderListener, folderListenerManager, kMsgFolderListenerManagerCID, &rv); - if(NS_SUCCEEDED(rv)) - folderListenerManager->OnFolderLoaded(this); - - return NS_OK; -} - -nsresult nsMsgFolder::NotifyDeleteOrMoveMessagesCompleted(nsIFolder *folder) -{ - PRInt32 i; - for(i = 0; i < mListeners->Count(); i++) - { - //Folderlistener's aren't refcounted. - nsIFolderListener *listener = (nsIFolderListener*)mListeners->ElementAt(i); - listener->OnDeleteOrMoveMessagesCompleted(this); - } - //Notify listeners who listen to every folder - nsresult rv; - NS_WITH_SERVICE(nsIFolderListener, folderListenerManager, kMsgFolderListenerManagerCID, &rv); - if(NS_SUCCEEDED(rv)) - folderListenerManager->OnDeleteOrMoveMessagesCompleted(folder); - - return NS_OK; -} nsresult nsMsgFolder::NotifyFolderEvent(nsIAtom* aEvent) { diff --git a/mailnews/base/util/nsMsgFolder.h b/mailnews/base/util/nsMsgFolder.h index dbf1b52c1655..dbf422f27f78 100644 --- a/mailnews/base/util/nsMsgFolder.h +++ b/mailnews/base/util/nsMsgFolder.h @@ -186,19 +186,6 @@ public: void ChangeNumPendingTotalMessages(PRInt32 delta); -#ifdef HAVE_DB - NS_IMETHOD BuildUrl(nsMsgDatabase *db, nsMsgKey key, char ** url); - - // updates num messages and num unread - should be pure virtual - // when I get around to implementing in all subclasses? - NS_IMETHOD GetTotalMessagesInDB(PRUint32 *totalMessages) const; // How many messages in database. - NS_IMETHOD SetFolderPrefFlags(PRUint32 flags); - NS_IMETHOD GetFolderPrefFlags(PRUint32 *flags); - - - NS_IMETHOD SetLastMessageLoaded(nsMsgKey lastMessageLoaded); - NS_IMETHOD GetLastMessageLoaded(); -#endif #ifdef HAVE_ADMINURL @@ -257,9 +244,6 @@ protected: nsWeakPtr mServer; -#ifdef HAVE_DB - nsMsgKey m_lastMessageLoaded; -#endif // These values are used for tricking the front end into thinking that we have more // messages than are really in the DB. This is usually after and IMAP message copy where // we don't want to do an expensive select until the user actually opens that folder