for #33101 - sync up nsIMsgSearchSession and nsIMsgFilter APIs so that I can share the same JS to add/create terms

r=sspitzer
This commit is contained in:
alecf%netscape.com 2000-06-17 19:18:46 +00:00
Родитель 6350b47c94
Коммит 6a253b5837
2 изменённых файлов: 11 добавлений и 2 удалений

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

@ -47,7 +47,8 @@ interface nsIMsgSearchSession : nsISupports {
void AddSearchTermArray (in nsISupportsArray searchTerms);
void CreateSearchTerm (out nsIMsgSearchTerm searchTerm);
nsIMsgSearchTerm createTerm ();
void appendTerm(in nsIMsgSearchTerm term);
void RegisterListener (in nsIMsgSearchNotify listener);
void UnregisterListener (in nsIMsgSearchNotify listener);

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

@ -72,6 +72,14 @@ nsMsgSearchSession::AddSearchTerm(nsMsgSearchAttribValue attrib,
return NS_OK;
}
NS_IMETHODIMP
nsMsgSearchSession::AppendTerm(nsIMsgSearchTerm *aTerm)
{
NS_ENSURE_ARG_POINTER(aTerm);
NS_ENSURE_TRUE(m_termList, NS_ERROR_NOT_INITIALIZED);
return m_termList->AppendElement(aTerm);
}
NS_IMETHODIMP
nsMsgSearchSession::AddSearchTermArray(nsISupportsArray *searchTerms)
{
@ -80,7 +88,7 @@ nsMsgSearchSession::AddSearchTermArray(nsISupportsArray *searchTerms)
}
NS_IMETHODIMP
nsMsgSearchSession::CreateSearchTerm(nsIMsgSearchTerm **aResult)
nsMsgSearchSession::CreateTerm(nsIMsgSearchTerm **aResult)
{
nsMsgSearchTerm *term = new nsMsgSearchTerm;
NS_ENSURE_TRUE(term, NS_ERROR_OUT_OF_MEMORY);