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:
parent
58c33807b9
commit
5260b405b4
@ -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);
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -48,6 +48,7 @@ public:
|
||||
|
||||
NS_IMETHOD GetLocalStoreType(char * *type);
|
||||
NS_IMETHOD CloseCachedConnections();
|
||||
NS_IMETHOD PerformExpand();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user