add old flags to key change notification

This commit is contained in:
bienvenu%netscape.com 1999-05-13 23:19:14 +00:00
parent 19b1d79162
commit 24afe5d573
2 changed files with 5 additions and 2 deletions

View File

@ -49,7 +49,10 @@ nsMsgDBFolder::nsMsgDBFolder(void)
nsMsgDBFolder::~nsMsgDBFolder(void)
{
if(mDatabase)
{
mDatabase->RemoveListener(this);
mDatabase->Close(PR_TRUE);
}
}
NS_IMETHODIMP nsMsgDBFolder::GetThreads(nsIEnumerator** threadEnumerator)
@ -149,7 +152,7 @@ nsresult nsMsgDBFolder::ReadDBFolderInfo(PRBool force)
}
NS_IMETHODIMP nsMsgDBFolder::OnKeyChange(nsMsgKey aKeyChanged, PRInt32 aFlags,
NS_IMETHODIMP nsMsgDBFolder::OnKeyChange(nsMsgKey aKeyChanged, PRUint32 aOldFlags, PRUint32 aNewFlags,
nsIDBChangeListener * aInstigator)
{
return NS_OK;

View File

@ -43,7 +43,7 @@ public:
NS_IMETHOD HasMessage(nsIMessage *message, PRBool *hasMessage);
//nsIDBChangeListener
NS_IMETHOD OnKeyChange(nsMsgKey aKeyChanged, PRInt32 aFlags,
NS_IMETHOD OnKeyChange(nsMsgKey aKeyChanged, PRUint32 aOldFlags, PRUint32 aNewFlags,
nsIDBChangeListener * aInstigator);
NS_IMETHOD OnKeyDeleted(nsMsgKey aKeyChanged, PRInt32 aFlags,
nsIDBChangeListener * aInstigator);