зеркало из https://github.com/mozilla/pjs.git
forgot to check these in with my previous checkin
This commit is contained in:
Родитель
75a3cd97ec
Коммит
d7365fd90c
|
@ -69,6 +69,9 @@ interface nsIMsgMailSession : nsISupports {
|
|||
|
||||
void NotifyFolderItemAdded(in nsISupports parentItem, in nsISupports item, in string viewString);
|
||||
void NotifyFolderItemDeleted(in nsISupports parentItem, in nsISupports item, in string viewString);
|
||||
|
||||
void NotifyFolderEvent(in nsIFolder folder, in nsIAtom event);
|
||||
|
||||
void NotifyFolderLoaded(in nsIFolder folder);
|
||||
void NotifyDeleteOrMoveMessagesCompleted(in nsIFolder folder);
|
||||
|
||||
|
|
|
@ -262,8 +262,23 @@ NS_IMETHODIMP nsMsgMailSession::NotifyDeleteOrMoveMessagesCompleted(nsIFolder *
|
|||
listener->OnDeleteOrMoveMessagesCompleted(folder);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsMsgMailSession::NotifyFolderEvent(nsIFolder *aFolder,
|
||||
nsIAtom *aEvent)
|
||||
{
|
||||
nsresult rv;
|
||||
PRUint32 count;
|
||||
rv = mListeners->Count(&count);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
|
||||
for(PRUint32 i = 0; i < count; i++)
|
||||
{
|
||||
nsCOMPtr<nsIFolderListener> listener = getter_AddRefs((nsIFolderListener*)mListeners->ElementAt(i));
|
||||
listener->OnItemEvent(aFolder, aEvent);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult nsMsgMailSession::GetTopmostMsgWindow(nsIMsgWindow* *aMsgWindow)
|
||||
|
|
Загрузка…
Ссылка в новой задаче