forgot to land this as part of bug 414038, kill-rdf, patch was r=standard8, sr=neil
authorDavid Bienvenu <bienvenu@nventure.com>
Mon, 27 Oct 2008 08:58:26 -0700
changeset 728 92046e4f9f9135674a2d6d81a69a0d2d115a3617
parent 727 785c708554f781615c434f8a7ede8d9dd04b246f
child 729 031112deacdfed1b28563e34b46580d0b7a05782
push idunknown
push userunknown
push dateunknown
reviewersstandard8, neil
bugs414038
forgot to land this as part of bug 414038, kill-rdf, patch was r=standard8, sr=neil
mailnews/base/util/nsMsgDBFolder.h
--- a/mailnews/base/util/nsMsgDBFolder.h
+++ b/mailnews/base/util/nsMsgDBFolder.h
@@ -122,16 +122,18 @@ protected:
   nsresult GetBaseStringBundle(nsIStringBundle **aBundle);
   nsresult GetStringFromBundle(const char* msgName, nsString& aResult);
   nsresult ThrowConfirmationPrompt(nsIMsgWindow *msgWindow, const nsAString& confirmString, PRBool *confirmed);
   nsresult GetWarnFilterChanged(PRBool *aVal);
   nsresult SetWarnFilterChanged(PRBool aVal);
   nsresult CreateCollationKey(const nsString &aSource,  PRUint8 **aKey, PRUint32 *aLength);
 
 protected:
+  // all children will override this to create the right class of object.
+  virtual nsresult CreateChildFromURI(const nsCString &uri, nsIMsgFolder **folder) = 0;
   virtual nsresult ReadDBFolderInfo(PRBool force);
   virtual nsresult FlushToFolderCache();
   virtual nsresult GetDatabase(nsIMsgWindow *aMsgWindow) = 0;
   virtual nsresult SendFlagNotifications(nsIMsgDBHdr *item, PRUint32 oldFlags, PRUint32 newFlags);
   nsresult CheckWithNewMessagesStatus(PRBool messageAdded);
   void     UpdateNewMessages();
   nsresult OnHdrAddedOrDeleted(nsIMsgDBHdr *hdrChanged, PRBool added);
   nsresult CreateFileForDB(const nsACString& userLeafName, nsILocalFile *baseDir, nsILocalFile **dbFile);