зеркало из https://github.com/mozilla/pjs.git
add MatchName method
This commit is contained in:
Родитель
79ff0505ea
Коммит
29023ebe35
|
@ -396,10 +396,10 @@ NS_IMETHODIMP nsMsgFolder::GetChildNamed(const char *name, nsISupports ** aChild
|
|||
delete[] folderName;
|
||||
return NS_OK;
|
||||
}
|
||||
delete[] folderName;
|
||||
delete[] folderName;
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsMsgFolder::GetChildWithURI(const char *uri, PRBool deep, nsIMsgFolder ** child)
|
||||
|
@ -1474,6 +1474,14 @@ nsMsgFolder::CopyFileMessage(nsIFileSpec* fileSpec,
|
|||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsMsgFolder::MatchName(nsString *name, PRBool *matches)
|
||||
{
|
||||
if (!matches)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
*matches = mName.EqualsIgnoreCase(*name);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult nsMsgFolder::NotifyPropertyChanged(char *property, char *oldValue, char* newValue)
|
||||
{
|
||||
nsCOMPtr<nsISupports> supports;
|
||||
|
|
|
@ -291,6 +291,7 @@ public:
|
|||
NS_IMETHOD GetMsgDatabase(nsIMsgDatabase** aMsgDatabase);
|
||||
NS_IMETHOD GetPath(nsIFileSpec * *aPath);
|
||||
|
||||
NS_IMETHOD MatchName(nsString *name, PRBool *matches);
|
||||
NS_IMETHOD MarkMessagesRead(nsISupportsArray *messages, PRBool markRead);
|
||||
NS_IMETHOD MarkAllMessagesRead(void);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче