зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
6350b47c94
Коммит
6a253b5837
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче