forgot to check these in with my previous checkin

This commit is contained in:
alecf%netscape.com 2000-03-28 05:59:39 +00:00
Родитель 75a3cd97ec
Коммит d7365fd90c
2 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

@ -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)