add PerformExpand() to the nsIMsgIncomingServer interface. in the base case, it does nothing.

we override it in news, and we'll use this as our hook to update the counts for all the
newsgroups for a give server.  right now, PerformExpand() only gets called on a double
click but eventually, it will be hooked up to the twisty.  r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@64986 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sspitzer%netscape.com 2000-04-03 02:06:57 +00:00
parent 58c33807b9
commit 5260b405b4
5 changed files with 25 additions and 0 deletions

View File

@ -127,6 +127,9 @@ interface nsIMsgIncomingServer : nsISupports {
/* do a biff */
void PerformBiff();
/* this gets called when the server is expanded in the folder pane */
void PerformExpand();
/* Write out all known folder data to panacea.dat */
void WriteToFolderCache(in nsIMsgFolderCache folderCache);

View File

@ -712,6 +712,7 @@ function FolderPaneDoubleClick(treeitem)
var folder = GetMsgFolderFromUri(uri);
if (folder.isServer) {
//dump(uri + " is a server, don't open a new window.\n");
folder.server.PerformExpand();
return;
}
}

View File

@ -139,6 +139,16 @@ nsMsgIncomingServer::GetRootFolder(nsIFolder * *aRootFolder)
}
return NS_OK;
}
NS_IMETHODIMP
nsMsgIncomingServer::PerformExpand()
{
#ifdef DEBUG_sspitzer
printf("PerformExpand()\n");
#endif
return NS_OK;
}
NS_IMETHODIMP
nsMsgIncomingServer::PerformBiff()

View File

@ -425,3 +425,13 @@ nsNntpIncomingServer::AddNewNewsgroup(const char *aName, const char *aState, con
return NS_OK;
}
NS_IMETHODIMP
nsNntpIncomingServer::PerformExpand()
{
#ifdef DEBUG_sspitzer
printf("PerformExpand for nntp\n");
#endif
return NS_OK;
}

View File

@ -48,6 +48,7 @@ public:
NS_IMETHOD GetLocalStoreType(char * *type);
NS_IMETHOD CloseCachedConnections();
NS_IMETHOD PerformExpand();
private: