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 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/base/search/public/nsIMsgFilter.idl
 */

#ifndef __gen_nsIMsgFilter_h__
#define __gen_nsIMsgFilter_h__


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

#ifndef __gen_nsMsgFilterCore_h__
#include "nsMsgFilterCore.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 nsIArray; /* forward declaration */

class nsIMutableArray; /* forward declaration */

class nsIOutputStream; /* forward declaration */

class nsIMsgFilterCustomAction; /* forward declaration */

class nsIMsgFilterList; /* forward declaration */

class nsIMsgSearchScopeTerm; /* forward declaration */

class nsIMsgSearchValue; /* forward declaration */

class nsIMsgSearchTerm; /* forward declaration */


/* starting interface:    nsIMsgRuleAction */
#define NS_IMSGRULEACTION_IID_STR "36d2748e-9246-44f3-bb74-46cbb0b8c23a"

#define NS_IMSGRULEACTION_IID \
  {0x36d2748e, 0x9246, 0x44f3, \
    { 0xbb, 0x74, 0x46, 0xcb, 0xb0, 0xb8, 0xc2, 0x3a }}

class NS_NO_VTABLE nsIMsgRuleAction : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGRULEACTION_IID)

  /* attribute nsMsgRuleActionType type; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetType(nsMsgRuleActionType *aType) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetType(nsMsgRuleActionType aType) = 0;

  /* attribute nsMsgPriorityValue priority; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPriority(nsMsgPriorityValue *aPriority) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetPriority(nsMsgPriorityValue aPriority) = 0;

  /* attribute ACString targetFolderUri; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTargetFolderUri(nsACString& aTargetFolderUri) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTargetFolderUri(const nsACString& aTargetFolderUri) = 0;

  /* attribute nsMsgLabelValue label; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLabel(nsMsgLabelValue *aLabel) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetLabel(nsMsgLabelValue aLabel) = 0;

  /* attribute long junkScore; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetJunkScore(int32_t *aJunkScore) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetJunkScore(int32_t aJunkScore) = 0;

  /* attribute AUTF8String strValue; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStrValue(nsACString& aStrValue) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetStrValue(const nsACString& aStrValue) = 0;

  /* attribute ACString customId; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCustomId(nsACString& aCustomId) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCustomId(const nsACString& aCustomId) = 0;

  /* readonly attribute nsIMsgFilterCustomAction customAction; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCustomAction(nsIMsgFilterCustomAction **aCustomAction) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgRuleAction, NS_IMSGRULEACTION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGRULEACTION \
  NS_IMETHOD GetType(nsMsgRuleActionType *aType) override; \
  NS_IMETHOD SetType(nsMsgRuleActionType aType) override; \
  NS_IMETHOD GetPriority(nsMsgPriorityValue *aPriority) override; \
  NS_IMETHOD SetPriority(nsMsgPriorityValue aPriority) override; \
  NS_IMETHOD GetTargetFolderUri(nsACString& aTargetFolderUri) override; \
  NS_IMETHOD SetTargetFolderUri(const nsACString& aTargetFolderUri) override; \
  NS_IMETHOD GetLabel(nsMsgLabelValue *aLabel) override; \
  NS_IMETHOD SetLabel(nsMsgLabelValue aLabel) override; \
  NS_IMETHOD GetJunkScore(int32_t *aJunkScore) override; \
  NS_IMETHOD SetJunkScore(int32_t aJunkScore) override; \
  NS_IMETHOD GetStrValue(nsACString& aStrValue) override; \
  NS_IMETHOD SetStrValue(const nsACString& aStrValue) override; \
  NS_IMETHOD GetCustomId(nsACString& aCustomId) override; \
  NS_IMETHOD SetCustomId(const nsACString& aCustomId) override; \
  NS_IMETHOD GetCustomAction(nsIMsgFilterCustomAction **aCustomAction) 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_NSIMSGRULEACTION \
  nsresult GetType(nsMsgRuleActionType *aType); \
  nsresult SetType(nsMsgRuleActionType aType); \
  nsresult GetPriority(nsMsgPriorityValue *aPriority); \
  nsresult SetPriority(nsMsgPriorityValue aPriority); \
  nsresult GetTargetFolderUri(nsACString& aTargetFolderUri); \
  nsresult SetTargetFolderUri(const nsACString& aTargetFolderUri); \
  nsresult GetLabel(nsMsgLabelValue *aLabel); \
  nsresult SetLabel(nsMsgLabelValue aLabel); \
  nsresult GetJunkScore(int32_t *aJunkScore); \
  nsresult SetJunkScore(int32_t aJunkScore); \
  nsresult GetStrValue(nsACString& aStrValue); \
  nsresult SetStrValue(const nsACString& aStrValue); \
  nsresult GetCustomId(nsACString& aCustomId); \
  nsresult SetCustomId(const nsACString& aCustomId); \
  nsresult GetCustomAction(nsIMsgFilterCustomAction **aCustomAction); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGRULEACTION(_to) \
  NS_IMETHOD GetType(nsMsgRuleActionType *aType) override { return _to GetType(aType); } \
  NS_IMETHOD SetType(nsMsgRuleActionType aType) override { return _to SetType(aType); } \
  NS_IMETHOD GetPriority(nsMsgPriorityValue *aPriority) override { return _to GetPriority(aPriority); } \
  NS_IMETHOD SetPriority(nsMsgPriorityValue aPriority) override { return _to SetPriority(aPriority); } \
  NS_IMETHOD GetTargetFolderUri(nsACString& aTargetFolderUri) override { return _to GetTargetFolderUri(aTargetFolderUri); } \
  NS_IMETHOD SetTargetFolderUri(const nsACString& aTargetFolderUri) override { return _to SetTargetFolderUri(aTargetFolderUri); } \
  NS_IMETHOD GetLabel(nsMsgLabelValue *aLabel) override { return _to GetLabel(aLabel); } \
  NS_IMETHOD SetLabel(nsMsgLabelValue aLabel) override { return _to SetLabel(aLabel); } \
  NS_IMETHOD GetJunkScore(int32_t *aJunkScore) override { return _to GetJunkScore(aJunkScore); } \
  NS_IMETHOD SetJunkScore(int32_t aJunkScore) override { return _to SetJunkScore(aJunkScore); } \
  NS_IMETHOD GetStrValue(nsACString& aStrValue) override { return _to GetStrValue(aStrValue); } \
  NS_IMETHOD SetStrValue(const nsACString& aStrValue) override { return _to SetStrValue(aStrValue); } \
  NS_IMETHOD GetCustomId(nsACString& aCustomId) override { return _to GetCustomId(aCustomId); } \
  NS_IMETHOD SetCustomId(const nsACString& aCustomId) override { return _to SetCustomId(aCustomId); } \
  NS_IMETHOD GetCustomAction(nsIMsgFilterCustomAction **aCustomAction) override { return _to GetCustomAction(aCustomAction); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGRULEACTION(_to) \
  NS_IMETHOD GetType(nsMsgRuleActionType *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  NS_IMETHOD SetType(nsMsgRuleActionType aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
  NS_IMETHOD GetPriority(nsMsgPriorityValue *aPriority) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPriority(aPriority); } \
  NS_IMETHOD SetPriority(nsMsgPriorityValue aPriority) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPriority(aPriority); } \
  NS_IMETHOD GetTargetFolderUri(nsACString& aTargetFolderUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargetFolderUri(aTargetFolderUri); } \
  NS_IMETHOD SetTargetFolderUri(const nsACString& aTargetFolderUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTargetFolderUri(aTargetFolderUri); } \
  NS_IMETHOD GetLabel(nsMsgLabelValue *aLabel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLabel(aLabel); } \
  NS_IMETHOD SetLabel(nsMsgLabelValue aLabel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLabel(aLabel); } \
  NS_IMETHOD GetJunkScore(int32_t *aJunkScore) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJunkScore(aJunkScore); } \
  NS_IMETHOD SetJunkScore(int32_t aJunkScore) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetJunkScore(aJunkScore); } \
  NS_IMETHOD GetStrValue(nsACString& aStrValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrValue(aStrValue); } \
  NS_IMETHOD SetStrValue(const nsACString& aStrValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStrValue(aStrValue); } \
  NS_IMETHOD GetCustomId(nsACString& aCustomId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCustomId(aCustomId); } \
  NS_IMETHOD SetCustomId(const nsACString& aCustomId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCustomId(aCustomId); } \
  NS_IMETHOD GetCustomAction(nsIMsgFilterCustomAction **aCustomAction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCustomAction(aCustomAction); } 


/* starting interface:    nsIMsgFilter */
#define NS_IMSGFILTER_IID_STR "d304fcfc-b588-11e4-981c-770e1e5d46b0"

#define NS_IMSGFILTER_IID \
  {0xd304fcfc, 0xb588, 0x11e4, \
    { 0x98, 0x1c, 0x77, 0x0e, 0x1e, 0x5d, 0x46, 0xb0 }}

class NS_NO_VTABLE nsIMsgFilter : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGFILTER_IID)

  /* attribute nsMsgFilterTypeType filterType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFilterType(nsMsgFilterTypeType *aFilterType) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFilterType(nsMsgFilterTypeType aFilterType) = 0;

  /* attribute boolean temporary; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTemporary(bool *aTemporary) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTemporary(bool aTemporary) = 0;

  /* attribute boolean enabled; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetEnabled(bool *aEnabled) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetEnabled(bool aEnabled) = 0;

  /* attribute AString filterName; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFilterName(nsAString& aFilterName) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFilterName(const nsAString& aFilterName) = 0;

  /* attribute ACString filterDesc; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFilterDesc(nsACString& aFilterDesc) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFilterDesc(const nsACString& aFilterDesc) = 0;

  /* attribute ACString unparsedBuffer; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUnparsedBuffer(nsACString& aUnparsedBuffer) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUnparsedBuffer(const nsACString& aUnparsedBuffer) = 0;

  /* attribute boolean unparseable; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUnparseable(bool *aUnparseable) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUnparseable(bool aUnparseable) = 0;

  /* attribute nsIMsgFilterList filterList; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFilterList(nsIMsgFilterList **aFilterList) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFilterList(nsIMsgFilterList *aFilterList) = 0;

  /* void AddTerm (in nsMsgSearchAttribValue attrib, in nsMsgSearchOpValue op, in nsIMsgSearchValue value, in boolean BooleanAND, in ACString arbitraryHeader); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddTerm(nsMsgSearchAttribValue attrib, nsMsgSearchOpValue op, nsIMsgSearchValue *value, bool BooleanAND, const nsACString& arbitraryHeader) = 0;

  /* void GetTerm (in long termIndex, out nsMsgSearchAttribValue attrib, out nsMsgSearchOpValue op, out nsIMsgSearchValue value, out boolean BooleanAND, out ACString arbitraryHeader); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTerm(int32_t termIndex, nsMsgSearchAttribValue *attrib, nsMsgSearchOpValue *op, nsIMsgSearchValue **value, bool *BooleanAND, nsACString& arbitraryHeader) = 0;

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

  /* nsIMsgSearchTerm createTerm (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateTerm(nsIMsgSearchTerm **_retval) = 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;

  /* attribute nsIMsgSearchScopeTerm scope; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetScope(nsIMsgSearchScopeTerm **aScope) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetScope(nsIMsgSearchScopeTerm *aScope) = 0;

  /* [noscript] void MatchHdr (in nsIMsgDBHdr msgHdr, in nsIMsgFolder folder, in nsIMsgDatabase db, in string headers, in unsigned long headerSize, out boolean result); */
  NS_IMETHOD MatchHdr(nsIMsgDBHdr *msgHdr, nsIMsgFolder *folder, nsIMsgDatabase *db, const char * headers, uint32_t headerSize, bool *result) = 0;

  /* void logRuleHit (in nsIMsgRuleAction aFilterAction, in nsIMsgDBHdr aHeader); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LogRuleHit(nsIMsgRuleAction *aFilterAction, nsIMsgDBHdr *aHeader) = 0;

  /* void logRuleHitFail (in nsIMsgRuleAction aFilterAction, in nsIMsgDBHdr aHeader, in nsresult aRcode, in string aErrmsg); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LogRuleHitFail(nsIMsgRuleAction *aFilterAction, nsIMsgDBHdr *aHeader, nsresult aRcode, const char * aErrmsg) = 0;

  /* nsIMsgRuleAction createAction (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateAction(nsIMsgRuleAction **_retval) = 0;

  /* nsIMsgRuleAction getActionAt (in unsigned long aIndex); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetActionAt(uint32_t aIndex, nsIMsgRuleAction **_retval) = 0;

  /* long getActionIndex (in nsIMsgRuleAction aAction); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetActionIndex(nsIMsgRuleAction *aAction, int32_t *_retval) = 0;

  /* void appendAction (in nsIMsgRuleAction action); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AppendAction(nsIMsgRuleAction *action) = 0;

  /* readonly attribute unsigned long actionCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetActionCount(uint32_t *aActionCount) = 0;

  /* void clearActionList (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ClearActionList(void) = 0;

  /* readonly attribute nsIArray sortedActionList; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSortedActionList(nsIArray **aSortedActionList) = 0;

  /* void SaveToTextFile (in nsIOutputStream aStream); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SaveToTextFile(nsIOutputStream *aStream) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgFilter, NS_IMSGFILTER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGFILTER \
  NS_IMETHOD GetFilterType(nsMsgFilterTypeType *aFilterType) override; \
  NS_IMETHOD SetFilterType(nsMsgFilterTypeType aFilterType) override; \
  NS_IMETHOD GetTemporary(bool *aTemporary) override; \
  NS_IMETHOD SetTemporary(bool aTemporary) override; \
  NS_IMETHOD GetEnabled(bool *aEnabled) override; \
  NS_IMETHOD SetEnabled(bool aEnabled) override; \
  NS_IMETHOD GetFilterName(nsAString& aFilterName) override; \
  NS_IMETHOD SetFilterName(const nsAString& aFilterName) override; \
  NS_IMETHOD GetFilterDesc(nsACString& aFilterDesc) override; \
  NS_IMETHOD SetFilterDesc(const nsACString& aFilterDesc) override; \
  NS_IMETHOD GetUnparsedBuffer(nsACString& aUnparsedBuffer) override; \
  NS_IMETHOD SetUnparsedBuffer(const nsACString& aUnparsedBuffer) override; \
  NS_IMETHOD GetUnparseable(bool *aUnparseable) override; \
  NS_IMETHOD SetUnparseable(bool aUnparseable) override; \
  NS_IMETHOD GetFilterList(nsIMsgFilterList **aFilterList) override; \
  NS_IMETHOD SetFilterList(nsIMsgFilterList *aFilterList) override; \
  NS_IMETHOD AddTerm(nsMsgSearchAttribValue attrib, nsMsgSearchOpValue op, nsIMsgSearchValue *value, bool BooleanAND, const nsACString& arbitraryHeader) override; \
  NS_IMETHOD GetTerm(int32_t termIndex, nsMsgSearchAttribValue *attrib, nsMsgSearchOpValue *op, nsIMsgSearchValue **value, bool *BooleanAND, nsACString& arbitraryHeader) override; \
  NS_IMETHOD AppendTerm(nsIMsgSearchTerm *term) override; \
  NS_IMETHOD CreateTerm(nsIMsgSearchTerm **_retval) override; \
  NS_IMETHOD GetSearchTerms(nsIMutableArray **aSearchTerms) override; \
  NS_IMETHOD SetSearchTerms(nsIMutableArray *aSearchTerms) override; \
  NS_IMETHOD GetScope(nsIMsgSearchScopeTerm **aScope) override; \
  NS_IMETHOD SetScope(nsIMsgSearchScopeTerm *aScope) override; \
  NS_IMETHOD MatchHdr(nsIMsgDBHdr *msgHdr, nsIMsgFolder *folder, nsIMsgDatabase *db, const char * headers, uint32_t headerSize, bool *result) override; \
  NS_IMETHOD LogRuleHit(nsIMsgRuleAction *aFilterAction, nsIMsgDBHdr *aHeader) override; \
  NS_IMETHOD LogRuleHitFail(nsIMsgRuleAction *aFilterAction, nsIMsgDBHdr *aHeader, nsresult aRcode, const char * aErrmsg) override; \
  NS_IMETHOD CreateAction(nsIMsgRuleAction **_retval) override; \
  NS_IMETHOD GetActionAt(uint32_t aIndex, nsIMsgRuleAction **_retval) override; \
  NS_IMETHOD GetActionIndex(nsIMsgRuleAction *aAction, int32_t *_retval) override; \
  NS_IMETHOD AppendAction(nsIMsgRuleAction *action) override; \
  NS_IMETHOD GetActionCount(uint32_t *aActionCount) override; \
  NS_IMETHOD ClearActionList(void) override; \
  NS_IMETHOD GetSortedActionList(nsIArray **aSortedActionList) override; \
  NS_IMETHOD SaveToTextFile(nsIOutputStream *aStream) 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_NSIMSGFILTER \
  nsresult GetFilterType(nsMsgFilterTypeType *aFilterType); \
  nsresult SetFilterType(nsMsgFilterTypeType aFilterType); \
  nsresult GetTemporary(bool *aTemporary); \
  nsresult SetTemporary(bool aTemporary); \
  nsresult GetEnabled(bool *aEnabled); \
  nsresult SetEnabled(bool aEnabled); \
  nsresult GetFilterName(nsAString& aFilterName); \
  nsresult SetFilterName(const nsAString& aFilterName); \
  nsresult GetFilterDesc(nsACString& aFilterDesc); \
  nsresult SetFilterDesc(const nsACString& aFilterDesc); \
  nsresult GetUnparsedBuffer(nsACString& aUnparsedBuffer); \
  nsresult SetUnparsedBuffer(const nsACString& aUnparsedBuffer); \
  nsresult GetUnparseable(bool *aUnparseable); \
  nsresult SetUnparseable(bool aUnparseable); \
  nsresult GetFilterList(nsIMsgFilterList **aFilterList); \
  nsresult SetFilterList(nsIMsgFilterList *aFilterList); \
  nsresult AddTerm(nsMsgSearchAttribValue attrib, nsMsgSearchOpValue op, nsIMsgSearchValue *value, bool BooleanAND, const nsACString& arbitraryHeader); \
  nsresult GetTerm(int32_t termIndex, nsMsgSearchAttribValue *attrib, nsMsgSearchOpValue *op, nsIMsgSearchValue **value, bool *BooleanAND, nsACString& arbitraryHeader); \
  nsresult AppendTerm(nsIMsgSearchTerm *term); \
  nsresult CreateTerm(nsIMsgSearchTerm **_retval); \
  nsresult GetSearchTerms(nsIMutableArray **aSearchTerms); \
  nsresult SetSearchTerms(nsIMutableArray *aSearchTerms); \
  nsresult GetScope(nsIMsgSearchScopeTerm **aScope); \
  nsresult SetScope(nsIMsgSearchScopeTerm *aScope); \
  nsresult MatchHdr(nsIMsgDBHdr *msgHdr, nsIMsgFolder *folder, nsIMsgDatabase *db, const char * headers, uint32_t headerSize, bool *result); \
  nsresult LogRuleHit(nsIMsgRuleAction *aFilterAction, nsIMsgDBHdr *aHeader); \
  nsresult LogRuleHitFail(nsIMsgRuleAction *aFilterAction, nsIMsgDBHdr *aHeader, nsresult aRcode, const char * aErrmsg); \
  nsresult CreateAction(nsIMsgRuleAction **_retval); \
  nsresult GetActionAt(uint32_t aIndex, nsIMsgRuleAction **_retval); \
  nsresult GetActionIndex(nsIMsgRuleAction *aAction, int32_t *_retval); \
  nsresult AppendAction(nsIMsgRuleAction *action); \
  nsresult GetActionCount(uint32_t *aActionCount); \
  nsresult ClearActionList(void); \
  nsresult GetSortedActionList(nsIArray **aSortedActionList); \
  nsresult SaveToTextFile(nsIOutputStream *aStream); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGFILTER(_to) \
  NS_IMETHOD GetFilterType(nsMsgFilterTypeType *aFilterType) override { return _to GetFilterType(aFilterType); } \
  NS_IMETHOD SetFilterType(nsMsgFilterTypeType aFilterType) override { return _to SetFilterType(aFilterType); } \
  NS_IMETHOD GetTemporary(bool *aTemporary) override { return _to GetTemporary(aTemporary); } \
  NS_IMETHOD SetTemporary(bool aTemporary) override { return _to SetTemporary(aTemporary); } \
  NS_IMETHOD GetEnabled(bool *aEnabled) override { return _to GetEnabled(aEnabled); } \
  NS_IMETHOD SetEnabled(bool aEnabled) override { return _to SetEnabled(aEnabled); } \
  NS_IMETHOD GetFilterName(nsAString& aFilterName) override { return _to GetFilterName(aFilterName); } \
  NS_IMETHOD SetFilterName(const nsAString& aFilterName) override { return _to SetFilterName(aFilterName); } \
  NS_IMETHOD GetFilterDesc(nsACString& aFilterDesc) override { return _to GetFilterDesc(aFilterDesc); } \
  NS_IMETHOD SetFilterDesc(const nsACString& aFilterDesc) override { return _to SetFilterDesc(aFilterDesc); } \
  NS_IMETHOD GetUnparsedBuffer(nsACString& aUnparsedBuffer) override { return _to GetUnparsedBuffer(aUnparsedBuffer); } \
  NS_IMETHOD SetUnparsedBuffer(const nsACString& aUnparsedBuffer) override { return _to SetUnparsedBuffer(aUnparsedBuffer); } \
  NS_IMETHOD GetUnparseable(bool *aUnparseable) override { return _to GetUnparseable(aUnparseable); } \
  NS_IMETHOD SetUnparseable(bool aUnparseable) override { return _to SetUnparseable(aUnparseable); } \
  NS_IMETHOD GetFilterList(nsIMsgFilterList **aFilterList) override { return _to GetFilterList(aFilterList); } \
  NS_IMETHOD SetFilterList(nsIMsgFilterList *aFilterList) override { return _to SetFilterList(aFilterList); } \
  NS_IMETHOD AddTerm(nsMsgSearchAttribValue attrib, nsMsgSearchOpValue op, nsIMsgSearchValue *value, bool BooleanAND, const nsACString& arbitraryHeader) override { return _to AddTerm(attrib, op, value, BooleanAND, arbitraryHeader); } \
  NS_IMETHOD GetTerm(int32_t termIndex, nsMsgSearchAttribValue *attrib, nsMsgSearchOpValue *op, nsIMsgSearchValue **value, bool *BooleanAND, nsACString& arbitraryHeader) override { return _to GetTerm(termIndex, attrib, op, value, BooleanAND, arbitraryHeader); } \
  NS_IMETHOD AppendTerm(nsIMsgSearchTerm *term) override { return _to AppendTerm(term); } \
  NS_IMETHOD CreateTerm(nsIMsgSearchTerm **_retval) override { return _to CreateTerm(_retval); } \
  NS_IMETHOD GetSearchTerms(nsIMutableArray **aSearchTerms) override { return _to GetSearchTerms(aSearchTerms); } \
  NS_IMETHOD SetSearchTerms(nsIMutableArray *aSearchTerms) override { return _to SetSearchTerms(aSearchTerms); } \
  NS_IMETHOD GetScope(nsIMsgSearchScopeTerm **aScope) override { return _to GetScope(aScope); } \
  NS_IMETHOD SetScope(nsIMsgSearchScopeTerm *aScope) override { return _to SetScope(aScope); } \
  NS_IMETHOD MatchHdr(nsIMsgDBHdr *msgHdr, nsIMsgFolder *folder, nsIMsgDatabase *db, const char * headers, uint32_t headerSize, bool *result) override { return _to MatchHdr(msgHdr, folder, db, headers, headerSize, result); } \
  NS_IMETHOD LogRuleHit(nsIMsgRuleAction *aFilterAction, nsIMsgDBHdr *aHeader) override { return _to LogRuleHit(aFilterAction, aHeader); } \
  NS_IMETHOD LogRuleHitFail(nsIMsgRuleAction *aFilterAction, nsIMsgDBHdr *aHeader, nsresult aRcode, const char * aErrmsg) override { return _to LogRuleHitFail(aFilterAction, aHeader, aRcode, aErrmsg); } \
  NS_IMETHOD CreateAction(nsIMsgRuleAction **_retval) override { return _to CreateAction(_retval); } \
  NS_IMETHOD GetActionAt(uint32_t aIndex, nsIMsgRuleAction **_retval) override { return _to GetActionAt(aIndex, _retval); } \
  NS_IMETHOD GetActionIndex(nsIMsgRuleAction *aAction, int32_t *_retval) override { return _to GetActionIndex(aAction, _retval); } \
  NS_IMETHOD AppendAction(nsIMsgRuleAction *action) override { return _to AppendAction(action); } \
  NS_IMETHOD GetActionCount(uint32_t *aActionCount) override { return _to GetActionCount(aActionCount); } \
  NS_IMETHOD ClearActionList(void) override { return _to ClearActionList(); } \
  NS_IMETHOD GetSortedActionList(nsIArray **aSortedActionList) override { return _to GetSortedActionList(aSortedActionList); } \
  NS_IMETHOD SaveToTextFile(nsIOutputStream *aStream) override { return _to SaveToTextFile(aStream); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGFILTER(_to) \
  NS_IMETHOD GetFilterType(nsMsgFilterTypeType *aFilterType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilterType(aFilterType); } \
  NS_IMETHOD SetFilterType(nsMsgFilterTypeType aFilterType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFilterType(aFilterType); } \
  NS_IMETHOD GetTemporary(bool *aTemporary) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTemporary(aTemporary); } \
  NS_IMETHOD SetTemporary(bool aTemporary) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTemporary(aTemporary); } \
  NS_IMETHOD GetEnabled(bool *aEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnabled(aEnabled); } \
  NS_IMETHOD SetEnabled(bool aEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnabled(aEnabled); } \
  NS_IMETHOD GetFilterName(nsAString& aFilterName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilterName(aFilterName); } \
  NS_IMETHOD SetFilterName(const nsAString& aFilterName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFilterName(aFilterName); } \
  NS_IMETHOD GetFilterDesc(nsACString& aFilterDesc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilterDesc(aFilterDesc); } \
  NS_IMETHOD SetFilterDesc(const nsACString& aFilterDesc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFilterDesc(aFilterDesc); } \
  NS_IMETHOD GetUnparsedBuffer(nsACString& aUnparsedBuffer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnparsedBuffer(aUnparsedBuffer); } \
  NS_IMETHOD SetUnparsedBuffer(const nsACString& aUnparsedBuffer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUnparsedBuffer(aUnparsedBuffer); } \
  NS_IMETHOD GetUnparseable(bool *aUnparseable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnparseable(aUnparseable); } \
  NS_IMETHOD SetUnparseable(bool aUnparseable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUnparseable(aUnparseable); } \
  NS_IMETHOD GetFilterList(nsIMsgFilterList **aFilterList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilterList(aFilterList); } \
  NS_IMETHOD SetFilterList(nsIMsgFilterList *aFilterList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFilterList(aFilterList); } \
  NS_IMETHOD AddTerm(nsMsgSearchAttribValue attrib, nsMsgSearchOpValue op, nsIMsgSearchValue *value, bool BooleanAND, const nsACString& arbitraryHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddTerm(attrib, op, value, BooleanAND, arbitraryHeader); } \
  NS_IMETHOD GetTerm(int32_t termIndex, nsMsgSearchAttribValue *attrib, nsMsgSearchOpValue *op, nsIMsgSearchValue **value, bool *BooleanAND, nsACString& arbitraryHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTerm(termIndex, attrib, op, value, BooleanAND, arbitraryHeader); } \
  NS_IMETHOD AppendTerm(nsIMsgSearchTerm *term) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendTerm(term); } \
  NS_IMETHOD CreateTerm(nsIMsgSearchTerm **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateTerm(_retval); } \
  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 GetScope(nsIMsgSearchScopeTerm **aScope) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScope(aScope); } \
  NS_IMETHOD SetScope(nsIMsgSearchScopeTerm *aScope) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScope(aScope); } \
  NS_IMETHOD MatchHdr(nsIMsgDBHdr *msgHdr, nsIMsgFolder *folder, nsIMsgDatabase *db, const char * headers, uint32_t headerSize, bool *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchHdr(msgHdr, folder, db, headers, headerSize, result); } \
  NS_IMETHOD LogRuleHit(nsIMsgRuleAction *aFilterAction, nsIMsgDBHdr *aHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LogRuleHit(aFilterAction, aHeader); } \
  NS_IMETHOD LogRuleHitFail(nsIMsgRuleAction *aFilterAction, nsIMsgDBHdr *aHeader, nsresult aRcode, const char * aErrmsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LogRuleHitFail(aFilterAction, aHeader, aRcode, aErrmsg); } \
  NS_IMETHOD CreateAction(nsIMsgRuleAction **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateAction(_retval); } \
  NS_IMETHOD GetActionAt(uint32_t aIndex, nsIMsgRuleAction **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActionAt(aIndex, _retval); } \
  NS_IMETHOD GetActionIndex(nsIMsgRuleAction *aAction, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActionIndex(aAction, _retval); } \
  NS_IMETHOD AppendAction(nsIMsgRuleAction *action) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendAction(action); } \
  NS_IMETHOD GetActionCount(uint32_t *aActionCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActionCount(aActionCount); } \
  NS_IMETHOD ClearActionList(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearActionList(); } \
  NS_IMETHOD GetSortedActionList(nsIArray **aSortedActionList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortedActionList(aSortedActionList); } \
  NS_IMETHOD SaveToTextFile(nsIOutputStream *aStream) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveToTextFile(aStream); } 


#endif /* __gen_nsIMsgFilter_h__ */