DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/base/search/public/nsIMsgSearchSession.idl
 */

#ifndef __gen_nsIMsgSearchSession_h__
#define __gen_nsIMsgSearchSession_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_nsIMsgSearchValue_h__
#include "nsIMsgSearchValue.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIMutableArray; /* forward declaration */

class nsIMsgSearchAdapter; /* forward declaration */

class nsIMsgSearchTerm; /* forward declaration */

class nsIMsgSearchNotify; /* forward declaration */

class nsIMsgHdr; /* forward declaration */

class nsIMsgDatabase; /* forward declaration */

class nsIMsgWindow; /* forward declaration */


/* starting interface:    nsIMsgSearchSession */
#define NS_IMSGSEARCHSESSION_IID_STR "1ed69bbf-7983-4602-9a9b-2f2263a78878"

#define NS_IMSGSEARCHSESSION_IID \
  {0x1ed69bbf, 0x7983, 0x4602, \
    { 0x9a, 0x9b, 0x2f, 0x22, 0x63, 0xa7, 0x88, 0x78 }}

class NS_NO_VTABLE nsIMsgSearchSession : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGSEARCHSESSION_IID)

  /* void addSearchTerm (in nsMsgSearchAttribValue attrib, in nsMsgSearchOpValue op, in nsIMsgSearchValue value, in boolean BooleanAND, in string customString); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddSearchTerm(nsMsgSearchAttribValue attrib, nsMsgSearchOpValue op, nsIMsgSearchValue *value, bool BooleanAND, const char * customString) = 0;

  /* attribute nsIMutableArray searchTerms; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSearchTerms(nsIMutableArray **aSearchTerms) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSearchTerms(nsIMutableArray *aSearchTerms) = 0;

  /* nsIMsgSearchTerm createTerm (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateTerm(nsIMsgSearchTerm **_retval) = 0;

  /* void appendTerm (in nsIMsgSearchTerm term); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AppendTerm(nsIMsgSearchTerm *term) = 0;

  enum {
    onNewSearch = 1,
    onSearchDone = 2,
    onSearchHit = 4,
    allNotifications = 7
  };

  /* void registerListener (in nsIMsgSearchNotify aListener, [optional] in long aNotifyFlags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RegisterListener(nsIMsgSearchNotify *aListener, int32_t aNotifyFlags) = 0;

  /* void unregisterListener (in nsIMsgSearchNotify listener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UnregisterListener(nsIMsgSearchNotify *listener) = 0;

  /* readonly attribute unsigned long numSearchTerms; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNumSearchTerms(uint32_t *aNumSearchTerms) = 0;

  /* readonly attribute nsIMsgSearchAdapter runningAdapter; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRunningAdapter(nsIMsgSearchAdapter **aRunningAdapter) = 0;

  /* void getNthSearchTerm (in long whichTerm, in nsMsgSearchAttribValue attrib, in nsMsgSearchOpValue op, in nsIMsgSearchValue value); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNthSearchTerm(int32_t whichTerm, nsMsgSearchAttribValue attrib, nsMsgSearchOpValue op, nsIMsgSearchValue *value) = 0;

  /* long countSearchScopes (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CountSearchScopes(int32_t *_retval) = 0;

  /* void getNthSearchScope (in long which, out nsMsgSearchScopeValue scopeId, out nsIMsgFolder folder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNthSearchScope(int32_t which, nsMsgSearchScopeValue *scopeId, nsIMsgFolder **folder) = 0;

  /* void addScopeTerm (in nsMsgSearchScopeValue scope, in nsIMsgFolder folder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddScopeTerm(nsMsgSearchScopeValue scope, nsIMsgFolder *folder) = 0;

  /* void addDirectoryScopeTerm (in nsMsgSearchScopeValue scope); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddDirectoryScopeTerm(nsMsgSearchScopeValue scope) = 0;

  /* void clearScopes (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ClearScopes(void) = 0;

  /* [noscript] boolean ScopeUsesCustomHeaders (in nsMsgSearchScopeValue scope, in voidPtr selection, in boolean forFilters); */
  NS_IMETHOD ScopeUsesCustomHeaders(nsMsgSearchScopeValue scope, void * selection, bool forFilters, bool *_retval) = 0;

  /* boolean IsStringAttribute (in nsMsgSearchAttribValue attrib); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsStringAttribute(nsMsgSearchAttribValue attrib, bool *_retval) = 0;

  /* void AddAllScopes (in nsMsgSearchScopeValue attrib); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddAllScopes(nsMsgSearchScopeValue attrib) = 0;

  /* void search (in nsIMsgWindow aWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Search(nsIMsgWindow *aWindow) = 0;

  /* void interruptSearch (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD InterruptSearch(void) = 0;

  /* void pauseSearch (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PauseSearch(void) = 0;

  /* void resumeSearch (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ResumeSearch(void) = 0;

  /* boolean MatchHdr (in nsIMsgDBHdr aMsgHdr, in nsIMsgDatabase aDatabase); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchHdr(nsIMsgDBHdr *aMsgHdr, nsIMsgDatabase *aDatabase, bool *_retval) = 0;

  /* void addSearchHit (in nsIMsgDBHdr header, in nsIMsgFolder folder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddSearchHit(nsIMsgDBHdr *header, nsIMsgFolder *folder) = 0;

  /* readonly attribute long numResults; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNumResults(int32_t *aNumResults) = 0;

  /* attribute nsIMsgWindow window; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetWindow(nsIMsgWindow **aWindow) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetWindow(nsIMsgWindow *aWindow) = 0;

  enum {
    BooleanOR = 0,
    BooleanAND = 1
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgSearchSession, NS_IMSGSEARCHSESSION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGSEARCHSESSION \
  NS_IMETHOD AddSearchTerm(nsMsgSearchAttribValue attrib, nsMsgSearchOpValue op, nsIMsgSearchValue *value, bool BooleanAND, const char * customString) override; \
  NS_IMETHOD GetSearchTerms(nsIMutableArray **aSearchTerms) override; \
  NS_IMETHOD SetSearchTerms(nsIMutableArray *aSearchTerms) override; \
  NS_IMETHOD CreateTerm(nsIMsgSearchTerm **_retval) override; \
  NS_IMETHOD AppendTerm(nsIMsgSearchTerm *term) override; \
  NS_IMETHOD RegisterListener(nsIMsgSearchNotify *aListener, int32_t aNotifyFlags) override; \
  NS_IMETHOD UnregisterListener(nsIMsgSearchNotify *listener) override; \
  NS_IMETHOD GetNumSearchTerms(uint32_t *aNumSearchTerms) override; \
  NS_IMETHOD GetRunningAdapter(nsIMsgSearchAdapter **aRunningAdapter) override; \
  NS_IMETHOD GetNthSearchTerm(int32_t whichTerm, nsMsgSearchAttribValue attrib, nsMsgSearchOpValue op, nsIMsgSearchValue *value) override; \
  NS_IMETHOD CountSearchScopes(int32_t *_retval) override; \
  NS_IMETHOD GetNthSearchScope(int32_t which, nsMsgSearchScopeValue *scopeId, nsIMsgFolder **folder) override; \
  NS_IMETHOD AddScopeTerm(nsMsgSearchScopeValue scope, nsIMsgFolder *folder) override; \
  NS_IMETHOD AddDirectoryScopeTerm(nsMsgSearchScopeValue scope) override; \
  NS_IMETHOD ClearScopes(void) override; \
  NS_IMETHOD ScopeUsesCustomHeaders(nsMsgSearchScopeValue scope, void * selection, bool forFilters, bool *_retval) override; \
  NS_IMETHOD IsStringAttribute(nsMsgSearchAttribValue attrib, bool *_retval) override; \
  NS_IMETHOD AddAllScopes(nsMsgSearchScopeValue attrib) override; \
  NS_IMETHOD Search(nsIMsgWindow *aWindow) override; \
  NS_IMETHOD InterruptSearch(void) override; \
  NS_IMETHOD PauseSearch(void) override; \
  NS_IMETHOD ResumeSearch(void) override; \
  NS_IMETHOD MatchHdr(nsIMsgDBHdr *aMsgHdr, nsIMsgDatabase *aDatabase, bool *_retval) override; \
  NS_IMETHOD AddSearchHit(nsIMsgDBHdr *header, nsIMsgFolder *folder) override; \
  NS_IMETHOD GetNumResults(int32_t *aNumResults) override; \
  NS_IMETHOD GetWindow(nsIMsgWindow **aWindow) override; \
  NS_IMETHOD SetWindow(nsIMsgWindow *aWindow) override; \

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIMSGSEARCHSESSION \
  nsresult AddSearchTerm(nsMsgSearchAttribValue attrib, nsMsgSearchOpValue op, nsIMsgSearchValue *value, bool BooleanAND, const char * customString); \
  nsresult GetSearchTerms(nsIMutableArray **aSearchTerms); \
  nsresult SetSearchTerms(nsIMutableArray *aSearchTerms); \
  nsresult CreateTerm(nsIMsgSearchTerm **_retval); \
  nsresult AppendTerm(nsIMsgSearchTerm *term); \
  nsresult RegisterListener(nsIMsgSearchNotify *aListener, int32_t aNotifyFlags); \
  nsresult UnregisterListener(nsIMsgSearchNotify *listener); \
  nsresult GetNumSearchTerms(uint32_t *aNumSearchTerms); \
  nsresult GetRunningAdapter(nsIMsgSearchAdapter **aRunningAdapter); \
  nsresult GetNthSearchTerm(int32_t whichTerm, nsMsgSearchAttribValue attrib, nsMsgSearchOpValue op, nsIMsgSearchValue *value); \
  nsresult CountSearchScopes(int32_t *_retval); \
  nsresult GetNthSearchScope(int32_t which, nsMsgSearchScopeValue *scopeId, nsIMsgFolder **folder); \
  nsresult AddScopeTerm(nsMsgSearchScopeValue scope, nsIMsgFolder *folder); \
  nsresult AddDirectoryScopeTerm(nsMsgSearchScopeValue scope); \
  nsresult ClearScopes(void); \
  nsresult ScopeUsesCustomHeaders(nsMsgSearchScopeValue scope, void * selection, bool forFilters, bool *_retval); \
  nsresult IsStringAttribute(nsMsgSearchAttribValue attrib, bool *_retval); \
  nsresult AddAllScopes(nsMsgSearchScopeValue attrib); \
  nsresult Search(nsIMsgWindow *aWindow); \
  nsresult InterruptSearch(void); \
  nsresult PauseSearch(void); \
  nsresult ResumeSearch(void); \
  nsresult MatchHdr(nsIMsgDBHdr *aMsgHdr, nsIMsgDatabase *aDatabase, bool *_retval); \
  nsresult AddSearchHit(nsIMsgDBHdr *header, nsIMsgFolder *folder); \
  nsresult GetNumResults(int32_t *aNumResults); \
  nsresult GetWindow(nsIMsgWindow **aWindow); \
  nsresult SetWindow(nsIMsgWindow *aWindow); \

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGSEARCHSESSION(_to) \
  NS_IMETHOD AddSearchTerm(nsMsgSearchAttribValue attrib, nsMsgSearchOpValue op, nsIMsgSearchValue *value, bool BooleanAND, const char * customString) override { return _to AddSearchTerm(attrib, op, value, BooleanAND, customString); } \
  NS_IMETHOD GetSearchTerms(nsIMutableArray **aSearchTerms) override { return _to GetSearchTerms(aSearchTerms); } \
  NS_IMETHOD SetSearchTerms(nsIMutableArray *aSearchTerms) override { return _to SetSearchTerms(aSearchTerms); } \
  NS_IMETHOD CreateTerm(nsIMsgSearchTerm **_retval) override { return _to CreateTerm(_retval); } \
  NS_IMETHOD AppendTerm(nsIMsgSearchTerm *term) override { return _to AppendTerm(term); } \
  NS_IMETHOD RegisterListener(nsIMsgSearchNotify *aListener, int32_t aNotifyFlags) override { return _to RegisterListener(aListener, aNotifyFlags); } \
  NS_IMETHOD UnregisterListener(nsIMsgSearchNotify *listener) override { return _to UnregisterListener(listener); } \
  NS_IMETHOD GetNumSearchTerms(uint32_t *aNumSearchTerms) override { return _to GetNumSearchTerms(aNumSearchTerms); } \
  NS_IMETHOD GetRunningAdapter(nsIMsgSearchAdapter **aRunningAdapter) override { return _to GetRunningAdapter(aRunningAdapter); } \
  NS_IMETHOD GetNthSearchTerm(int32_t whichTerm, nsMsgSearchAttribValue attrib, nsMsgSearchOpValue op, nsIMsgSearchValue *value) override { return _to GetNthSearchTerm(whichTerm, attrib, op, value); } \
  NS_IMETHOD CountSearchScopes(int32_t *_retval) override { return _to CountSearchScopes(_retval); } \
  NS_IMETHOD GetNthSearchScope(int32_t which, nsMsgSearchScopeValue *scopeId, nsIMsgFolder **folder) override { return _to GetNthSearchScope(which, scopeId, folder); } \
  NS_IMETHOD AddScopeTerm(nsMsgSearchScopeValue scope, nsIMsgFolder *folder) override { return _to AddScopeTerm(scope, folder); } \
  NS_IMETHOD AddDirectoryScopeTerm(nsMsgSearchScopeValue scope) override { return _to AddDirectoryScopeTerm(scope); } \
  NS_IMETHOD ClearScopes(void) override { return _to ClearScopes(); } \
  NS_IMETHOD ScopeUsesCustomHeaders(nsMsgSearchScopeValue scope, void * selection, bool forFilters, bool *_retval) override { return _to ScopeUsesCustomHeaders(scope, selection, forFilters, _retval); } \
  NS_IMETHOD IsStringAttribute(nsMsgSearchAttribValue attrib, bool *_retval) override { return _to IsStringAttribute(attrib, _retval); } \
  NS_IMETHOD AddAllScopes(nsMsgSearchScopeValue attrib) override { return _to AddAllScopes(attrib); } \
  NS_IMETHOD Search(nsIMsgWindow *aWindow) override { return _to Search(aWindow); } \
  NS_IMETHOD InterruptSearch(void) override { return _to InterruptSearch(); } \
  NS_IMETHOD PauseSearch(void) override { return _to PauseSearch(); } \
  NS_IMETHOD ResumeSearch(void) override { return _to ResumeSearch(); } \
  NS_IMETHOD MatchHdr(nsIMsgDBHdr *aMsgHdr, nsIMsgDatabase *aDatabase, bool *_retval) override { return _to MatchHdr(aMsgHdr, aDatabase, _retval); } \
  NS_IMETHOD AddSearchHit(nsIMsgDBHdr *header, nsIMsgFolder *folder) override { return _to AddSearchHit(header, folder); } \
  NS_IMETHOD GetNumResults(int32_t *aNumResults) override { return _to GetNumResults(aNumResults); } \
  NS_IMETHOD GetWindow(nsIMsgWindow **aWindow) override { return _to GetWindow(aWindow); } \
  NS_IMETHOD SetWindow(nsIMsgWindow *aWindow) override { return _to SetWindow(aWindow); } \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGSEARCHSESSION(_to) \
  NS_IMETHOD AddSearchTerm(nsMsgSearchAttribValue attrib, nsMsgSearchOpValue op, nsIMsgSearchValue *value, bool BooleanAND, const char * customString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSearchTerm(attrib, op, value, BooleanAND, customString); } \
  NS_IMETHOD GetSearchTerms(nsIMutableArray **aSearchTerms) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchTerms(aSearchTerms); } \
  NS_IMETHOD SetSearchTerms(nsIMutableArray *aSearchTerms) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchTerms(aSearchTerms); } \
  NS_IMETHOD CreateTerm(nsIMsgSearchTerm **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateTerm(_retval); } \
  NS_IMETHOD AppendTerm(nsIMsgSearchTerm *term) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendTerm(term); } \
  NS_IMETHOD RegisterListener(nsIMsgSearchNotify *aListener, int32_t aNotifyFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterListener(aListener, aNotifyFlags); } \
  NS_IMETHOD UnregisterListener(nsIMsgSearchNotify *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterListener(listener); } \
  NS_IMETHOD GetNumSearchTerms(uint32_t *aNumSearchTerms) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumSearchTerms(aNumSearchTerms); } \
  NS_IMETHOD GetRunningAdapter(nsIMsgSearchAdapter **aRunningAdapter) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRunningAdapter(aRunningAdapter); } \
  NS_IMETHOD GetNthSearchTerm(int32_t whichTerm, nsMsgSearchAttribValue attrib, nsMsgSearchOpValue op, nsIMsgSearchValue *value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNthSearchTerm(whichTerm, attrib, op, value); } \
  NS_IMETHOD CountSearchScopes(int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CountSearchScopes(_retval); } \
  NS_IMETHOD GetNthSearchScope(int32_t which, nsMsgSearchScopeValue *scopeId, nsIMsgFolder **folder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNthSearchScope(which, scopeId, folder); } \
  NS_IMETHOD AddScopeTerm(nsMsgSearchScopeValue scope, nsIMsgFolder *folder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddScopeTerm(scope, folder); } \
  NS_IMETHOD AddDirectoryScopeTerm(nsMsgSearchScopeValue scope) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDirectoryScopeTerm(scope); } \
  NS_IMETHOD ClearScopes(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearScopes(); } \
  NS_IMETHOD ScopeUsesCustomHeaders(nsMsgSearchScopeValue scope, void * selection, bool forFilters, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScopeUsesCustomHeaders(scope, selection, forFilters, _retval); } \
  NS_IMETHOD IsStringAttribute(nsMsgSearchAttribValue attrib, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsStringAttribute(attrib, _retval); } \
  NS_IMETHOD AddAllScopes(nsMsgSearchScopeValue attrib) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddAllScopes(attrib); } \
  NS_IMETHOD Search(nsIMsgWindow *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Search(aWindow); } \
  NS_IMETHOD InterruptSearch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InterruptSearch(); } \
  NS_IMETHOD PauseSearch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PauseSearch(); } \
  NS_IMETHOD ResumeSearch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResumeSearch(); } \
  NS_IMETHOD MatchHdr(nsIMsgDBHdr *aMsgHdr, nsIMsgDatabase *aDatabase, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchHdr(aMsgHdr, aDatabase, _retval); } \
  NS_IMETHOD AddSearchHit(nsIMsgDBHdr *header, nsIMsgFolder *folder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSearchHit(header, folder); } \
  NS_IMETHOD GetNumResults(int32_t *aNumResults) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumResults(aNumResults); } \
  NS_IMETHOD GetWindow(nsIMsgWindow **aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindow(aWindow); } \
  NS_IMETHOD SetWindow(nsIMsgWindow *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWindow(aWindow); } \


#endif /* __gen_nsIMsgSearchSession_h__ */