/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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

/* 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; */
  NS_IMETHOD GetAttrib(nsMsgSearchAttribValue *aAttrib) = 0;
  NS_IMETHOD SetAttrib(nsMsgSearchAttribValue aAttrib) = 0;

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

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

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

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

  /* attribute ACString hdrProperty; */
  NS_IMETHOD GetHdrProperty(nsACString & aHdrProperty) = 0;
  NS_IMETHOD SetHdrProperty(const nsACString & aHdrProperty) = 0;

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

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

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

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

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

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

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

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

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

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

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

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

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

  /* boolean matchJunkScoreOrigin (in string aJunkScoreOrigin); */
  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); */
  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); */
  NS_IMETHOD MatchHdrProperty(nsIMsgDBHdr *msg, bool *_retval) = 0;

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

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

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

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

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

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

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

  /* nsMsgSearchAttribValue getAttributeFromString (in string aAttribName); */
  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 \
  NS_METHOD GetAttrib(nsMsgSearchAttribValue *aAttrib); \
  NS_METHOD SetAttrib(nsMsgSearchAttribValue aAttrib); \
  NS_METHOD GetOp(nsMsgSearchOpValue *aOp); \
  NS_METHOD SetOp(nsMsgSearchOpValue aOp); \
  NS_METHOD GetValue(nsIMsgSearchValue * *aValue); \
  NS_METHOD SetValue(nsIMsgSearchValue *aValue); \
  NS_METHOD GetBooleanAnd(bool *aBooleanAnd); \
  NS_METHOD SetBooleanAnd(bool aBooleanAnd); \
  NS_METHOD GetArbitraryHeader(nsACString & aArbitraryHeader); \
  NS_METHOD SetArbitraryHeader(const nsACString & aArbitraryHeader); \
  NS_METHOD GetHdrProperty(nsACString & aHdrProperty); \
  NS_METHOD SetHdrProperty(const nsACString & aHdrProperty); \
  NS_METHOD GetCustomId(nsACString & aCustomId); \
  NS_METHOD SetCustomId(const nsACString & aCustomId); \
  NS_METHOD GetBeginsGrouping(bool *aBeginsGrouping); \
  NS_METHOD SetBeginsGrouping(bool aBeginsGrouping); \
  NS_METHOD GetEndsGrouping(bool *aEndsGrouping); \
  NS_METHOD SetEndsGrouping(bool aEndsGrouping); \
  NS_METHOD MatchRfc822String(const nsACString & aString, const char * charset, bool *_retval); \
  NS_METHOD MatchRfc2047String(const nsACString & aString, const char * charset, bool charsetOverride, bool *_retval); \
  NS_METHOD MatchDate(PRTime aTime, bool *_retval); \
  NS_METHOD MatchStatus(uint32_t aStatus, bool *_retval); \
  NS_METHOD MatchPriority(nsMsgPriorityValue priority, bool *_retval); \
  NS_METHOD MatchAge(PRTime days, bool *_retval); \
  NS_METHOD MatchSize(uint32_t size, bool *_retval); \
  NS_METHOD MatchLabel(nsMsgLabelValue aLabelValue, bool *_retval); \
  NS_METHOD MatchJunkStatus(const char * aJunkScore, bool *_retval); \
  NS_METHOD MatchJunkPercent(uint32_t aJunkPercent, bool *_retval); \
  NS_METHOD MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval); \
  NS_METHOD MatchBody(nsIMsgSearchScopeTerm *aScopeTerm, uint64_t aOffset, uint32_t aLength, const char * aCharset, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, bool *_retval); \
  NS_METHOD 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); \
  NS_METHOD MatchHdrProperty(nsIMsgDBHdr *msg, bool *_retval); \
  NS_METHOD MatchUint32HdrProperty(nsIMsgDBHdr *msg, bool *_retval); \
  NS_METHOD MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval); \
  NS_METHOD GetMatchAllBeforeDeciding(bool *aMatchAllBeforeDeciding); \
  NS_METHOD GetTermAsString(nsACString & aTermAsString); \
  NS_METHOD MatchKeyword(const nsACString & keyword, bool *_retval); \
  NS_METHOD GetMatchAll(bool *aMatchAll); \
  NS_METHOD SetMatchAll(bool aMatchAll); \
  NS_METHOD MatchCustom(nsIMsgDBHdr *msg, bool *_retval); \
  NS_METHOD 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); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsMsgSearchTerm : public nsIMsgSearchTerm
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGSEARCHTERM

  nsMsgSearchTerm();

private:
  ~nsMsgSearchTerm();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsMsgSearchTerm, nsIMsgSearchTerm)

nsMsgSearchTerm::nsMsgSearchTerm()
{
  /* member initializers and constructor code */
}

nsMsgSearchTerm::~nsMsgSearchTerm()
{
  /* destructor code */
}

/* attribute nsMsgSearchAttribValue attrib; */
NS_IMETHODIMP nsMsgSearchTerm::GetAttrib(nsMsgSearchAttribValue *aAttrib)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetAttrib(nsMsgSearchAttribValue aAttrib)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsMsgSearchOpValue op; */
NS_IMETHODIMP nsMsgSearchTerm::GetOp(nsMsgSearchOpValue *aOp)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetOp(nsMsgSearchOpValue aOp)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIMsgSearchValue value; */
NS_IMETHODIMP nsMsgSearchTerm::GetValue(nsIMsgSearchValue * *aValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetValue(nsIMsgSearchValue *aValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean booleanAnd; */
NS_IMETHODIMP nsMsgSearchTerm::GetBooleanAnd(bool *aBooleanAnd)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetBooleanAnd(bool aBooleanAnd)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute ACString arbitraryHeader; */
NS_IMETHODIMP nsMsgSearchTerm::GetArbitraryHeader(nsACString & aArbitraryHeader)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetArbitraryHeader(const nsACString & aArbitraryHeader)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute ACString hdrProperty; */
NS_IMETHODIMP nsMsgSearchTerm::GetHdrProperty(nsACString & aHdrProperty)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetHdrProperty(const nsACString & aHdrProperty)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute ACString customId; */
NS_IMETHODIMP nsMsgSearchTerm::GetCustomId(nsACString & aCustomId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetCustomId(const nsACString & aCustomId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean beginsGrouping; */
NS_IMETHODIMP nsMsgSearchTerm::GetBeginsGrouping(bool *aBeginsGrouping)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetBeginsGrouping(bool aBeginsGrouping)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean endsGrouping; */
NS_IMETHODIMP nsMsgSearchTerm::GetEndsGrouping(bool *aEndsGrouping)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetEndsGrouping(bool aEndsGrouping)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchRfc822String (in ACString aString, in string charset); */
NS_IMETHODIMP nsMsgSearchTerm::MatchRfc822String(const nsACString & aString, const char * charset, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchRfc2047String (in ACString aString, in string charset, in boolean charsetOverride); */
NS_IMETHODIMP nsMsgSearchTerm::MatchRfc2047String(const nsACString & aString, const char * charset, bool charsetOverride, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchDate (in PRTime aTime); */
NS_IMETHODIMP nsMsgSearchTerm::MatchDate(PRTime aTime, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchStatus (in unsigned long aStatus); */
NS_IMETHODIMP nsMsgSearchTerm::MatchStatus(uint32_t aStatus, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchPriority (in nsMsgPriorityValue priority); */
NS_IMETHODIMP nsMsgSearchTerm::MatchPriority(nsMsgPriorityValue priority, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchAge (in PRTime days); */
NS_IMETHODIMP nsMsgSearchTerm::MatchAge(PRTime days, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchSize (in unsigned long size); */
NS_IMETHODIMP nsMsgSearchTerm::MatchSize(uint32_t size, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchLabel (in nsMsgLabelValue aLabelValue); */
NS_IMETHODIMP nsMsgSearchTerm::MatchLabel(nsMsgLabelValue aLabelValue, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchJunkStatus (in string aJunkScore); */
NS_IMETHODIMP nsMsgSearchTerm::MatchJunkStatus(const char * aJunkScore, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchJunkPercent (in unsigned long aJunkPercent); */
NS_IMETHODIMP nsMsgSearchTerm::MatchJunkPercent(uint32_t aJunkPercent, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchJunkScoreOrigin (in string aJunkScoreOrigin); */
NS_IMETHODIMP nsMsgSearchTerm::MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchBody (in nsIMsgSearchScopeTerm aScopeTerm, in unsigned long long aOffset, in unsigned long aLength, in string aCharset, in nsIMsgDBHdr aMsg, in nsIMsgDatabase aDb); */
NS_IMETHODIMP nsMsgSearchTerm::MatchBody(nsIMsgSearchScopeTerm *aScopeTerm, uint64_t aOffset, uint32_t aLength, const char * aCharset, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [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_IMETHODIMP nsMsgSearchTerm::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)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchHdrProperty (in nsIMsgDBHdr msg); */
NS_IMETHODIMP nsMsgSearchTerm::MatchHdrProperty(nsIMsgDBHdr *msg, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchUint32HdrProperty (in nsIMsgDBHdr msg); */
NS_IMETHODIMP nsMsgSearchTerm::MatchUint32HdrProperty(nsIMsgDBHdr *msg, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchFolderFlag (in nsIMsgDBHdr msg); */
NS_IMETHODIMP nsMsgSearchTerm::MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean matchAllBeforeDeciding; */
NS_IMETHODIMP nsMsgSearchTerm::GetMatchAllBeforeDeciding(bool *aMatchAllBeforeDeciding)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute ACString termAsString; */
NS_IMETHODIMP nsMsgSearchTerm::GetTermAsString(nsACString & aTermAsString)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchKeyword (in ACString keyword); */
NS_IMETHODIMP nsMsgSearchTerm::MatchKeyword(const nsACString & keyword, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean matchAll; */
NS_IMETHODIMP nsMsgSearchTerm::GetMatchAll(bool *aMatchAll)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetMatchAll(bool aMatchAll)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchCustom (in nsIMsgDBHdr msg); */
NS_IMETHODIMP nsMsgSearchTerm::MatchCustom(nsIMsgDBHdr *msg, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsMsgSearchAttribValue getAttributeFromString (in string aAttribName); */
NS_IMETHODIMP nsMsgSearchTerm::GetAttributeFromString(const char * aAttribName, nsMsgSearchAttribValue *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIMsgSearchTerm_h__ */
