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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/base/search/public/nsIMsgSearchTerm.idl
 */

#ifndef __gen_nsIMsgSearchTerm_h__
#define __gen_nsIMsgSearchTerm_h__


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

#ifndef __gen_nsMsgSearchCore_h__
#include "nsMsgSearchCore.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 nsIMsgDBHdr; /* forward declaration */

class nsIMsgDatabase; /* forward declaration */

class nsIMsgSearchScopeTerm; /* forward declaration */


/* starting interface:    nsIMsgSearchTerm */
#define NS_IMSGSEARCHTERM_IID_STR "705a2b5a-5efc-495c-897a-bef1161cd3c0"

#define NS_IMSGSEARCHTERM_IID \
  {0x705a2b5a, 0x5efc, 0x495c, \
    { 0x89, 0x7a, 0xbe, 0xf1, 0x16, 0x1c, 0xd3, 0xc0 }}

class NS_NO_VTABLE nsIMsgSearchTerm : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGSEARCHTERM_IID)

  /* attribute nsMsgSearchAttribValue attrib; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAttrib(nsMsgSearchAttribValue *aAttrib) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAttrib(nsMsgSearchAttribValue aAttrib) = 0;

  /* attribute nsMsgSearchOpValue op; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOp(nsMsgSearchOpValue *aOp) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetOp(nsMsgSearchOpValue aOp) = 0;

  /* attribute nsIMsgSearchValue value; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetValue(nsIMsgSearchValue **aValue) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetValue(nsIMsgSearchValue *aValue) = 0;

  /* attribute boolean booleanAnd; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetBooleanAnd(bool *aBooleanAnd) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetBooleanAnd(bool aBooleanAnd) = 0;

  /* attribute ACString arbitraryHeader; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetArbitraryHeader(nsACString& aArbitraryHeader) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetArbitraryHeader(const nsACString& aArbitraryHeader) = 0;

  /* attribute ACString hdrProperty; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHdrProperty(nsACString& aHdrProperty) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetHdrProperty(const nsACString& aHdrProperty) = 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;

  /* attribute boolean beginsGrouping; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetBeginsGrouping(bool *aBeginsGrouping) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetBeginsGrouping(bool aBeginsGrouping) = 0;

  /* attribute boolean endsGrouping; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetEndsGrouping(bool *aEndsGrouping) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetEndsGrouping(bool aEndsGrouping) = 0;

  /* boolean matchRfc822String (in ACString aString, in string charset); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchRfc822String(const nsACString& aString, const char * charset, bool *_retval) = 0;

  /* boolean matchRfc2047String (in ACString aString, in string charset, in boolean charsetOverride); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchRfc2047String(const nsACString& aString, const char * charset, bool charsetOverride, bool *_retval) = 0;

  /* boolean matchDate (in PRTime aTime); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchDate(PRTime aTime, bool *_retval) = 0;

  /* boolean matchStatus (in unsigned long aStatus); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchStatus(uint32_t aStatus, bool *_retval) = 0;

  /* boolean matchPriority (in nsMsgPriorityValue priority); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchPriority(nsMsgPriorityValue priority, bool *_retval) = 0;

  /* boolean matchAge (in PRTime days); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchAge(PRTime days, bool *_retval) = 0;

  /* boolean matchSize (in unsigned long size); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchSize(uint32_t size, bool *_retval) = 0;

  /* boolean matchLabel (in nsMsgLabelValue aLabelValue); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchLabel(nsMsgLabelValue aLabelValue, bool *_retval) = 0;

  /* boolean matchJunkStatus (in string aJunkScore); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchJunkStatus(const char * aJunkScore, bool *_retval) = 0;

  /* boolean matchJunkPercent (in unsigned long aJunkPercent); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchJunkPercent(uint32_t aJunkPercent, bool *_retval) = 0;

  /* boolean matchJunkScoreOrigin (in string aJunkScoreOrigin); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval) = 0;

  /* boolean matchBody (in nsIMsgSearchScopeTerm aScopeTerm, in unsigned long long aOffset, in unsigned long aLength, in string aCharset, in nsIMsgDBHdr aMsg, in nsIMsgDatabase aDb); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchBody(nsIMsgSearchScopeTerm *aScopeTerm, uint64_t aOffset, uint32_t aLength, const char * aCharset, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, bool *_retval) = 0;

  /* [noscript] boolean matchArbitraryHeader (in nsIMsgSearchScopeTerm aScopeTerm, in unsigned long aLength, in string aCharset, in boolean aCharsetOverride, in nsIMsgDBHdr aMsg, in nsIMsgDatabase aDb, in string aHeaders, in unsigned long aHeaderLength, in boolean aForFilters); */
  NS_IMETHOD MatchArbitraryHeader(nsIMsgSearchScopeTerm *aScopeTerm, uint32_t aLength, const char * aCharset, bool aCharsetOverride, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, const char * aHeaders, uint32_t aHeaderLength, bool aForFilters, bool *_retval) = 0;

  /* boolean matchHdrProperty (in nsIMsgDBHdr msg); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchHdrProperty(nsIMsgDBHdr *msg, bool *_retval) = 0;

  /* boolean matchUint32HdrProperty (in nsIMsgDBHdr msg); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchUint32HdrProperty(nsIMsgDBHdr *msg, bool *_retval) = 0;

  /* boolean matchFolderFlag (in nsIMsgDBHdr msg); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval) = 0;

  /* readonly attribute boolean matchAllBeforeDeciding; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMatchAllBeforeDeciding(bool *aMatchAllBeforeDeciding) = 0;

  /* readonly attribute ACString termAsString; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTermAsString(nsACString& aTermAsString) = 0;

  /* boolean matchKeyword (in ACString keyword); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchKeyword(const nsACString& keyword, bool *_retval) = 0;

  /* attribute boolean matchAll; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMatchAll(bool *aMatchAll) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMatchAll(bool aMatchAll) = 0;

  /* boolean matchCustom (in nsIMsgDBHdr msg); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchCustom(nsIMsgDBHdr *msg, bool *_retval) = 0;

  /* nsMsgSearchAttribValue getAttributeFromString (in string aAttribName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAttributeFromString(const char * aAttribName, nsMsgSearchAttribValue *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgSearchTerm, NS_IMSGSEARCHTERM_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGSEARCHTERM \
  NS_IMETHOD GetAttrib(nsMsgSearchAttribValue *aAttrib) override; \
  NS_IMETHOD SetAttrib(nsMsgSearchAttribValue aAttrib) override; \
  NS_IMETHOD GetOp(nsMsgSearchOpValue *aOp) override; \
  NS_IMETHOD SetOp(nsMsgSearchOpValue aOp) override; \
  NS_IMETHOD GetValue(nsIMsgSearchValue **aValue) override; \
  NS_IMETHOD SetValue(nsIMsgSearchValue *aValue) override; \
  NS_IMETHOD GetBooleanAnd(bool *aBooleanAnd) override; \
  NS_IMETHOD SetBooleanAnd(bool aBooleanAnd) override; \
  NS_IMETHOD GetArbitraryHeader(nsACString& aArbitraryHeader) override; \
  NS_IMETHOD SetArbitraryHeader(const nsACString& aArbitraryHeader) override; \
  NS_IMETHOD GetHdrProperty(nsACString& aHdrProperty) override; \
  NS_IMETHOD SetHdrProperty(const nsACString& aHdrProperty) override; \
  NS_IMETHOD GetCustomId(nsACString& aCustomId) override; \
  NS_IMETHOD SetCustomId(const nsACString& aCustomId) override; \
  NS_IMETHOD GetBeginsGrouping(bool *aBeginsGrouping) override; \
  NS_IMETHOD SetBeginsGrouping(bool aBeginsGrouping) override; \
  NS_IMETHOD GetEndsGrouping(bool *aEndsGrouping) override; \
  NS_IMETHOD SetEndsGrouping(bool aEndsGrouping) override; \
  NS_IMETHOD MatchRfc822String(const nsACString& aString, const char * charset, bool *_retval) override; \
  NS_IMETHOD MatchRfc2047String(const nsACString& aString, const char * charset, bool charsetOverride, bool *_retval) override; \
  NS_IMETHOD MatchDate(PRTime aTime, bool *_retval) override; \
  NS_IMETHOD MatchStatus(uint32_t aStatus, bool *_retval) override; \
  NS_IMETHOD MatchPriority(nsMsgPriorityValue priority, bool *_retval) override; \
  NS_IMETHOD MatchAge(PRTime days, bool *_retval) override; \
  NS_IMETHOD MatchSize(uint32_t size, bool *_retval) override; \
  NS_IMETHOD MatchLabel(nsMsgLabelValue aLabelValue, bool *_retval) override; \
  NS_IMETHOD MatchJunkStatus(const char * aJunkScore, bool *_retval) override; \
  NS_IMETHOD MatchJunkPercent(uint32_t aJunkPercent, bool *_retval) override; \
  NS_IMETHOD MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval) override; \
  NS_IMETHOD MatchBody(nsIMsgSearchScopeTerm *aScopeTerm, uint64_t aOffset, uint32_t aLength, const char * aCharset, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, bool *_retval) override; \
  NS_IMETHOD MatchArbitraryHeader(nsIMsgSearchScopeTerm *aScopeTerm, uint32_t aLength, const char * aCharset, bool aCharsetOverride, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, const char * aHeaders, uint32_t aHeaderLength, bool aForFilters, bool *_retval) override; \
  NS_IMETHOD MatchHdrProperty(nsIMsgDBHdr *msg, bool *_retval) override; \
  NS_IMETHOD MatchUint32HdrProperty(nsIMsgDBHdr *msg, bool *_retval) override; \
  NS_IMETHOD MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval) override; \
  NS_IMETHOD GetMatchAllBeforeDeciding(bool *aMatchAllBeforeDeciding) override; \
  NS_IMETHOD GetTermAsString(nsACString& aTermAsString) override; \
  NS_IMETHOD MatchKeyword(const nsACString& keyword, bool *_retval) override; \
  NS_IMETHOD GetMatchAll(bool *aMatchAll) override; \
  NS_IMETHOD SetMatchAll(bool aMatchAll) override; \
  NS_IMETHOD MatchCustom(nsIMsgDBHdr *msg, bool *_retval) override; \
  NS_IMETHOD GetAttributeFromString(const char * aAttribName, nsMsgSearchAttribValue *_retval) 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_NSIMSGSEARCHTERM \
  nsresult GetAttrib(nsMsgSearchAttribValue *aAttrib); \
  nsresult SetAttrib(nsMsgSearchAttribValue aAttrib); \
  nsresult GetOp(nsMsgSearchOpValue *aOp); \
  nsresult SetOp(nsMsgSearchOpValue aOp); \
  nsresult GetValue(nsIMsgSearchValue **aValue); \
  nsresult SetValue(nsIMsgSearchValue *aValue); \
  nsresult GetBooleanAnd(bool *aBooleanAnd); \
  nsresult SetBooleanAnd(bool aBooleanAnd); \
  nsresult GetArbitraryHeader(nsACString& aArbitraryHeader); \
  nsresult SetArbitraryHeader(const nsACString& aArbitraryHeader); \
  nsresult GetHdrProperty(nsACString& aHdrProperty); \
  nsresult SetHdrProperty(const nsACString& aHdrProperty); \
  nsresult GetCustomId(nsACString& aCustomId); \
  nsresult SetCustomId(const nsACString& aCustomId); \
  nsresult GetBeginsGrouping(bool *aBeginsGrouping); \
  nsresult SetBeginsGrouping(bool aBeginsGrouping); \
  nsresult GetEndsGrouping(bool *aEndsGrouping); \
  nsresult SetEndsGrouping(bool aEndsGrouping); \
  nsresult MatchRfc822String(const nsACString& aString, const char * charset, bool *_retval); \
  nsresult MatchRfc2047String(const nsACString& aString, const char * charset, bool charsetOverride, bool *_retval); \
  nsresult MatchDate(PRTime aTime, bool *_retval); \
  nsresult MatchStatus(uint32_t aStatus, bool *_retval); \
  nsresult MatchPriority(nsMsgPriorityValue priority, bool *_retval); \
  nsresult MatchAge(PRTime days, bool *_retval); \
  nsresult MatchSize(uint32_t size, bool *_retval); \
  nsresult MatchLabel(nsMsgLabelValue aLabelValue, bool *_retval); \
  nsresult MatchJunkStatus(const char * aJunkScore, bool *_retval); \
  nsresult MatchJunkPercent(uint32_t aJunkPercent, bool *_retval); \
  nsresult MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval); \
  nsresult MatchBody(nsIMsgSearchScopeTerm *aScopeTerm, uint64_t aOffset, uint32_t aLength, const char * aCharset, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, bool *_retval); \
  nsresult MatchArbitraryHeader(nsIMsgSearchScopeTerm *aScopeTerm, uint32_t aLength, const char * aCharset, bool aCharsetOverride, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, const char * aHeaders, uint32_t aHeaderLength, bool aForFilters, bool *_retval); \
  nsresult MatchHdrProperty(nsIMsgDBHdr *msg, bool *_retval); \
  nsresult MatchUint32HdrProperty(nsIMsgDBHdr *msg, bool *_retval); \
  nsresult MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval); \
  nsresult GetMatchAllBeforeDeciding(bool *aMatchAllBeforeDeciding); \
  nsresult GetTermAsString(nsACString& aTermAsString); \
  nsresult MatchKeyword(const nsACString& keyword, bool *_retval); \
  nsresult GetMatchAll(bool *aMatchAll); \
  nsresult SetMatchAll(bool aMatchAll); \
  nsresult MatchCustom(nsIMsgDBHdr *msg, bool *_retval); \
  nsresult GetAttributeFromString(const char * aAttribName, nsMsgSearchAttribValue *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGSEARCHTERM(_to) \
  NS_IMETHOD GetAttrib(nsMsgSearchAttribValue *aAttrib) override { return _to GetAttrib(aAttrib); } \
  NS_IMETHOD SetAttrib(nsMsgSearchAttribValue aAttrib) override { return _to SetAttrib(aAttrib); } \
  NS_IMETHOD GetOp(nsMsgSearchOpValue *aOp) override { return _to GetOp(aOp); } \
  NS_IMETHOD SetOp(nsMsgSearchOpValue aOp) override { return _to SetOp(aOp); } \
  NS_IMETHOD GetValue(nsIMsgSearchValue **aValue) override { return _to GetValue(aValue); } \
  NS_IMETHOD SetValue(nsIMsgSearchValue *aValue) override { return _to SetValue(aValue); } \
  NS_IMETHOD GetBooleanAnd(bool *aBooleanAnd) override { return _to GetBooleanAnd(aBooleanAnd); } \
  NS_IMETHOD SetBooleanAnd(bool aBooleanAnd) override { return _to SetBooleanAnd(aBooleanAnd); } \
  NS_IMETHOD GetArbitraryHeader(nsACString& aArbitraryHeader) override { return _to GetArbitraryHeader(aArbitraryHeader); } \
  NS_IMETHOD SetArbitraryHeader(const nsACString& aArbitraryHeader) override { return _to SetArbitraryHeader(aArbitraryHeader); } \
  NS_IMETHOD GetHdrProperty(nsACString& aHdrProperty) override { return _to GetHdrProperty(aHdrProperty); } \
  NS_IMETHOD SetHdrProperty(const nsACString& aHdrProperty) override { return _to SetHdrProperty(aHdrProperty); } \
  NS_IMETHOD GetCustomId(nsACString& aCustomId) override { return _to GetCustomId(aCustomId); } \
  NS_IMETHOD SetCustomId(const nsACString& aCustomId) override { return _to SetCustomId(aCustomId); } \
  NS_IMETHOD GetBeginsGrouping(bool *aBeginsGrouping) override { return _to GetBeginsGrouping(aBeginsGrouping); } \
  NS_IMETHOD SetBeginsGrouping(bool aBeginsGrouping) override { return _to SetBeginsGrouping(aBeginsGrouping); } \
  NS_IMETHOD GetEndsGrouping(bool *aEndsGrouping) override { return _to GetEndsGrouping(aEndsGrouping); } \
  NS_IMETHOD SetEndsGrouping(bool aEndsGrouping) override { return _to SetEndsGrouping(aEndsGrouping); } \
  NS_IMETHOD MatchRfc822String(const nsACString& aString, const char * charset, bool *_retval) override { return _to MatchRfc822String(aString, charset, _retval); } \
  NS_IMETHOD MatchRfc2047String(const nsACString& aString, const char * charset, bool charsetOverride, bool *_retval) override { return _to MatchRfc2047String(aString, charset, charsetOverride, _retval); } \
  NS_IMETHOD MatchDate(PRTime aTime, bool *_retval) override { return _to MatchDate(aTime, _retval); } \
  NS_IMETHOD MatchStatus(uint32_t aStatus, bool *_retval) override { return _to MatchStatus(aStatus, _retval); } \
  NS_IMETHOD MatchPriority(nsMsgPriorityValue priority, bool *_retval) override { return _to MatchPriority(priority, _retval); } \
  NS_IMETHOD MatchAge(PRTime days, bool *_retval) override { return _to MatchAge(days, _retval); } \
  NS_IMETHOD MatchSize(uint32_t size, bool *_retval) override { return _to MatchSize(size, _retval); } \
  NS_IMETHOD MatchLabel(nsMsgLabelValue aLabelValue, bool *_retval) override { return _to MatchLabel(aLabelValue, _retval); } \
  NS_IMETHOD MatchJunkStatus(const char * aJunkScore, bool *_retval) override { return _to MatchJunkStatus(aJunkScore, _retval); } \
  NS_IMETHOD MatchJunkPercent(uint32_t aJunkPercent, bool *_retval) override { return _to MatchJunkPercent(aJunkPercent, _retval); } \
  NS_IMETHOD MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval) override { return _to MatchJunkScoreOrigin(aJunkScoreOrigin, _retval); } \
  NS_IMETHOD MatchBody(nsIMsgSearchScopeTerm *aScopeTerm, uint64_t aOffset, uint32_t aLength, const char * aCharset, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, bool *_retval) override { return _to MatchBody(aScopeTerm, aOffset, aLength, aCharset, aMsg, aDb, _retval); } \
  NS_IMETHOD MatchArbitraryHeader(nsIMsgSearchScopeTerm *aScopeTerm, uint32_t aLength, const char * aCharset, bool aCharsetOverride, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, const char * aHeaders, uint32_t aHeaderLength, bool aForFilters, bool *_retval) override { return _to MatchArbitraryHeader(aScopeTerm, aLength, aCharset, aCharsetOverride, aMsg, aDb, aHeaders, aHeaderLength, aForFilters, _retval); } \
  NS_IMETHOD MatchHdrProperty(nsIMsgDBHdr *msg, bool *_retval) override { return _to MatchHdrProperty(msg, _retval); } \
  NS_IMETHOD MatchUint32HdrProperty(nsIMsgDBHdr *msg, bool *_retval) override { return _to MatchUint32HdrProperty(msg, _retval); } \
  NS_IMETHOD MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval) override { return _to MatchFolderFlag(msg, _retval); } \
  NS_IMETHOD GetMatchAllBeforeDeciding(bool *aMatchAllBeforeDeciding) override { return _to GetMatchAllBeforeDeciding(aMatchAllBeforeDeciding); } \
  NS_IMETHOD GetTermAsString(nsACString& aTermAsString) override { return _to GetTermAsString(aTermAsString); } \
  NS_IMETHOD MatchKeyword(const nsACString& keyword, bool *_retval) override { return _to MatchKeyword(keyword, _retval); } \
  NS_IMETHOD GetMatchAll(bool *aMatchAll) override { return _to GetMatchAll(aMatchAll); } \
  NS_IMETHOD SetMatchAll(bool aMatchAll) override { return _to SetMatchAll(aMatchAll); } \
  NS_IMETHOD MatchCustom(nsIMsgDBHdr *msg, bool *_retval) override { return _to MatchCustom(msg, _retval); } \
  NS_IMETHOD GetAttributeFromString(const char * aAttribName, nsMsgSearchAttribValue *_retval) override { return _to GetAttributeFromString(aAttribName, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGSEARCHTERM(_to) \
  NS_IMETHOD GetAttrib(nsMsgSearchAttribValue *aAttrib) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttrib(aAttrib); } \
  NS_IMETHOD SetAttrib(nsMsgSearchAttribValue aAttrib) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAttrib(aAttrib); } \
  NS_IMETHOD GetOp(nsMsgSearchOpValue *aOp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOp(aOp); } \
  NS_IMETHOD SetOp(nsMsgSearchOpValue aOp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOp(aOp); } \
  NS_IMETHOD GetValue(nsIMsgSearchValue **aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  NS_IMETHOD SetValue(nsIMsgSearchValue *aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
  NS_IMETHOD GetBooleanAnd(bool *aBooleanAnd) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBooleanAnd(aBooleanAnd); } \
  NS_IMETHOD SetBooleanAnd(bool aBooleanAnd) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBooleanAnd(aBooleanAnd); } \
  NS_IMETHOD GetArbitraryHeader(nsACString& aArbitraryHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetArbitraryHeader(aArbitraryHeader); } \
  NS_IMETHOD SetArbitraryHeader(const nsACString& aArbitraryHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetArbitraryHeader(aArbitraryHeader); } \
  NS_IMETHOD GetHdrProperty(nsACString& aHdrProperty) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHdrProperty(aHdrProperty); } \
  NS_IMETHOD SetHdrProperty(const nsACString& aHdrProperty) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHdrProperty(aHdrProperty); } \
  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 GetBeginsGrouping(bool *aBeginsGrouping) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBeginsGrouping(aBeginsGrouping); } \
  NS_IMETHOD SetBeginsGrouping(bool aBeginsGrouping) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBeginsGrouping(aBeginsGrouping); } \
  NS_IMETHOD GetEndsGrouping(bool *aEndsGrouping) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndsGrouping(aEndsGrouping); } \
  NS_IMETHOD SetEndsGrouping(bool aEndsGrouping) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEndsGrouping(aEndsGrouping); } \
  NS_IMETHOD MatchRfc822String(const nsACString& aString, const char * charset, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchRfc822String(aString, charset, _retval); } \
  NS_IMETHOD MatchRfc2047String(const nsACString& aString, const char * charset, bool charsetOverride, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchRfc2047String(aString, charset, charsetOverride, _retval); } \
  NS_IMETHOD MatchDate(PRTime aTime, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchDate(aTime, _retval); } \
  NS_IMETHOD MatchStatus(uint32_t aStatus, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchStatus(aStatus, _retval); } \
  NS_IMETHOD MatchPriority(nsMsgPriorityValue priority, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchPriority(priority, _retval); } \
  NS_IMETHOD MatchAge(PRTime days, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchAge(days, _retval); } \
  NS_IMETHOD MatchSize(uint32_t size, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchSize(size, _retval); } \
  NS_IMETHOD MatchLabel(nsMsgLabelValue aLabelValue, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchLabel(aLabelValue, _retval); } \
  NS_IMETHOD MatchJunkStatus(const char * aJunkScore, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchJunkStatus(aJunkScore, _retval); } \
  NS_IMETHOD MatchJunkPercent(uint32_t aJunkPercent, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchJunkPercent(aJunkPercent, _retval); } \
  NS_IMETHOD MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchJunkScoreOrigin(aJunkScoreOrigin, _retval); } \
  NS_IMETHOD MatchBody(nsIMsgSearchScopeTerm *aScopeTerm, uint64_t aOffset, uint32_t aLength, const char * aCharset, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchBody(aScopeTerm, aOffset, aLength, aCharset, aMsg, aDb, _retval); } \
  NS_IMETHOD MatchArbitraryHeader(nsIMsgSearchScopeTerm *aScopeTerm, uint32_t aLength, const char * aCharset, bool aCharsetOverride, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, const char * aHeaders, uint32_t aHeaderLength, bool aForFilters, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchArbitraryHeader(aScopeTerm, aLength, aCharset, aCharsetOverride, aMsg, aDb, aHeaders, aHeaderLength, aForFilters, _retval); } \
  NS_IMETHOD MatchHdrProperty(nsIMsgDBHdr *msg, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchHdrProperty(msg, _retval); } \
  NS_IMETHOD MatchUint32HdrProperty(nsIMsgDBHdr *msg, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchUint32HdrProperty(msg, _retval); } \
  NS_IMETHOD MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchFolderFlag(msg, _retval); } \
  NS_IMETHOD GetMatchAllBeforeDeciding(bool *aMatchAllBeforeDeciding) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchAllBeforeDeciding(aMatchAllBeforeDeciding); } \
  NS_IMETHOD GetTermAsString(nsACString& aTermAsString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTermAsString(aTermAsString); } \
  NS_IMETHOD MatchKeyword(const nsACString& keyword, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchKeyword(keyword, _retval); } \
  NS_IMETHOD GetMatchAll(bool *aMatchAll) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchAll(aMatchAll); } \
  NS_IMETHOD SetMatchAll(bool aMatchAll) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMatchAll(aMatchAll); } \
  NS_IMETHOD MatchCustom(nsIMsgDBHdr *msg, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchCustom(msg, _retval); } \
  NS_IMETHOD GetAttributeFromString(const char * aAttribName, nsMsgSearchAttribValue *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttributeFromString(aAttribName, _retval); } 


#endif /* __gen_nsIMsgSearchTerm_h__ */