/*
 * 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 "45bc2bcd-218e-4e00-b29c-453c75371047"

#define NS_IMSGSEARCHTERM_IID \
  {0x45bc2bcd, 0x218e, 0x4e00, \
    { 0xb2, 0x9c, 0x45, 0x3c, 0x75, 0x37, 0x10, 0x47 }}

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;

};

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

/* 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) MOZ_OVERRIDE { return _to GetAttrib(aAttrib); } \
  NS_IMETHOD SetAttrib(nsMsgSearchAttribValue aAttrib) MOZ_OVERRIDE { return _to SetAttrib(aAttrib); } \
  NS_IMETHOD GetOp(nsMsgSearchOpValue *aOp) MOZ_OVERRIDE { return _to GetOp(aOp); } \
  NS_IMETHOD SetOp(nsMsgSearchOpValue aOp) MOZ_OVERRIDE { return _to SetOp(aOp); } \
  NS_IMETHOD GetValue(nsIMsgSearchValue * *aValue) MOZ_OVERRIDE { return _to GetValue(aValue); } \
  NS_IMETHOD SetValue(nsIMsgSearchValue *aValue) MOZ_OVERRIDE { return _to SetValue(aValue); } \
  NS_IMETHOD GetBooleanAnd(bool *aBooleanAnd) MOZ_OVERRIDE { return _to GetBooleanAnd(aBooleanAnd); } \
  NS_IMETHOD SetBooleanAnd(bool aBooleanAnd) MOZ_OVERRIDE { return _to SetBooleanAnd(aBooleanAnd); } \
  NS_IMETHOD GetArbitraryHeader(nsACString & aArbitraryHeader) MOZ_OVERRIDE { return _to GetArbitraryHeader(aArbitraryHeader); } \
  NS_IMETHOD SetArbitraryHeader(const nsACString & aArbitraryHeader) MOZ_OVERRIDE { return _to SetArbitraryHeader(aArbitraryHeader); } \
  NS_IMETHOD GetHdrProperty(nsACString & aHdrProperty) MOZ_OVERRIDE { return _to GetHdrProperty(aHdrProperty); } \
  NS_IMETHOD SetHdrProperty(const nsACString & aHdrProperty) MOZ_OVERRIDE { return _to SetHdrProperty(aHdrProperty); } \
  NS_IMETHOD GetCustomId(nsACString & aCustomId) MOZ_OVERRIDE { return _to GetCustomId(aCustomId); } \
  NS_IMETHOD SetCustomId(const nsACString & aCustomId) MOZ_OVERRIDE { return _to SetCustomId(aCustomId); } \
  NS_IMETHOD GetBeginsGrouping(bool *aBeginsGrouping) MOZ_OVERRIDE { return _to GetBeginsGrouping(aBeginsGrouping); } \
  NS_IMETHOD SetBeginsGrouping(bool aBeginsGrouping) MOZ_OVERRIDE { return _to SetBeginsGrouping(aBeginsGrouping); } \
  NS_IMETHOD GetEndsGrouping(bool *aEndsGrouping) MOZ_OVERRIDE { return _to GetEndsGrouping(aEndsGrouping); } \
  NS_IMETHOD SetEndsGrouping(bool aEndsGrouping) MOZ_OVERRIDE { return _to SetEndsGrouping(aEndsGrouping); } \
  NS_IMETHOD MatchRfc822String(const nsACString & aString, const char * charset, bool *_retval) MOZ_OVERRIDE { return _to MatchRfc822String(aString, charset, _retval); } \
  NS_IMETHOD MatchRfc2047String(const nsACString & aString, const char * charset, bool charsetOverride, bool *_retval) MOZ_OVERRIDE { return _to MatchRfc2047String(aString, charset, charsetOverride, _retval); } \
  NS_IMETHOD MatchDate(PRTime aTime, bool *_retval) MOZ_OVERRIDE { return _to MatchDate(aTime, _retval); } \
  NS_IMETHOD MatchStatus(uint32_t aStatus, bool *_retval) MOZ_OVERRIDE { return _to MatchStatus(aStatus, _retval); } \
  NS_IMETHOD MatchPriority(nsMsgPriorityValue priority, bool *_retval) MOZ_OVERRIDE { return _to MatchPriority(priority, _retval); } \
  NS_IMETHOD MatchAge(PRTime days, bool *_retval) MOZ_OVERRIDE { return _to MatchAge(days, _retval); } \
  NS_IMETHOD MatchSize(uint32_t size, bool *_retval) MOZ_OVERRIDE { return _to MatchSize(size, _retval); } \
  NS_IMETHOD MatchLabel(nsMsgLabelValue aLabelValue, bool *_retval) MOZ_OVERRIDE { return _to MatchLabel(aLabelValue, _retval); } \
  NS_IMETHOD MatchJunkStatus(const char * aJunkScore, bool *_retval) MOZ_OVERRIDE { return _to MatchJunkStatus(aJunkScore, _retval); } \
  NS_IMETHOD MatchJunkPercent(uint32_t aJunkPercent, bool *_retval) MOZ_OVERRIDE { return _to MatchJunkPercent(aJunkPercent, _retval); } \
  NS_IMETHOD MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval) MOZ_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) MOZ_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) MOZ_OVERRIDE { return _to MatchArbitraryHeader(aScopeTerm, aLength, aCharset, aCharsetOverride, aMsg, aDb, aHeaders, aHeaderLength, aForFilters, _retval); } \
  NS_IMETHOD MatchHdrProperty(nsIMsgDBHdr *msg, bool *_retval) MOZ_OVERRIDE { return _to MatchHdrProperty(msg, _retval); } \
  NS_IMETHOD MatchUint32HdrProperty(nsIMsgDBHdr *msg, bool *_retval) MOZ_OVERRIDE { return _to MatchUint32HdrProperty(msg, _retval); } \
  NS_IMETHOD MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval) MOZ_OVERRIDE { return _to MatchFolderFlag(msg, _retval); } \
  NS_IMETHOD GetMatchAllBeforeDeciding(bool *aMatchAllBeforeDeciding) MOZ_OVERRIDE { return _to GetMatchAllBeforeDeciding(aMatchAllBeforeDeciding); } \
  NS_IMETHOD GetTermAsString(nsACString & aTermAsString) MOZ_OVERRIDE { return _to GetTermAsString(aTermAsString); } \
  NS_IMETHOD MatchKeyword(const nsACString & keyword, bool *_retval) MOZ_OVERRIDE { return _to MatchKeyword(keyword, _retval); } \
  NS_IMETHOD GetMatchAll(bool *aMatchAll) MOZ_OVERRIDE { return _to GetMatchAll(aMatchAll); } \
  NS_IMETHOD SetMatchAll(bool aMatchAll) MOZ_OVERRIDE { return _to SetMatchAll(aMatchAll); } \
  NS_IMETHOD MatchCustom(nsIMsgDBHdr *msg, bool *_retval) MOZ_OVERRIDE { return _to MatchCustom(msg, _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) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttrib(aAttrib); } \
  NS_IMETHOD SetAttrib(nsMsgSearchAttribValue aAttrib) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAttrib(aAttrib); } \
  NS_IMETHOD GetOp(nsMsgSearchOpValue *aOp) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOp(aOp); } \
  NS_IMETHOD SetOp(nsMsgSearchOpValue aOp) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOp(aOp); } \
  NS_IMETHOD GetValue(nsIMsgSearchValue * *aValue) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  NS_IMETHOD SetValue(nsIMsgSearchValue *aValue) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
  NS_IMETHOD GetBooleanAnd(bool *aBooleanAnd) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBooleanAnd(aBooleanAnd); } \
  NS_IMETHOD SetBooleanAnd(bool aBooleanAnd) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBooleanAnd(aBooleanAnd); } \
  NS_IMETHOD GetArbitraryHeader(nsACString & aArbitraryHeader) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetArbitraryHeader(aArbitraryHeader); } \
  NS_IMETHOD SetArbitraryHeader(const nsACString & aArbitraryHeader) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetArbitraryHeader(aArbitraryHeader); } \
  NS_IMETHOD GetHdrProperty(nsACString & aHdrProperty) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHdrProperty(aHdrProperty); } \
  NS_IMETHOD SetHdrProperty(const nsACString & aHdrProperty) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHdrProperty(aHdrProperty); } \
  NS_IMETHOD GetCustomId(nsACString & aCustomId) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCustomId(aCustomId); } \
  NS_IMETHOD SetCustomId(const nsACString & aCustomId) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCustomId(aCustomId); } \
  NS_IMETHOD GetBeginsGrouping(bool *aBeginsGrouping) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBeginsGrouping(aBeginsGrouping); } \
  NS_IMETHOD SetBeginsGrouping(bool aBeginsGrouping) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBeginsGrouping(aBeginsGrouping); } \
  NS_IMETHOD GetEndsGrouping(bool *aEndsGrouping) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndsGrouping(aEndsGrouping); } \
  NS_IMETHOD SetEndsGrouping(bool aEndsGrouping) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEndsGrouping(aEndsGrouping); } \
  NS_IMETHOD MatchRfc822String(const nsACString & aString, const char * charset, bool *_retval) MOZ_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) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchRfc2047String(aString, charset, charsetOverride, _retval); } \
  NS_IMETHOD MatchDate(PRTime aTime, bool *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchDate(aTime, _retval); } \
  NS_IMETHOD MatchStatus(uint32_t aStatus, bool *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchStatus(aStatus, _retval); } \
  NS_IMETHOD MatchPriority(nsMsgPriorityValue priority, bool *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchPriority(priority, _retval); } \
  NS_IMETHOD MatchAge(PRTime days, bool *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchAge(days, _retval); } \
  NS_IMETHOD MatchSize(uint32_t size, bool *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchSize(size, _retval); } \
  NS_IMETHOD MatchLabel(nsMsgLabelValue aLabelValue, bool *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchLabel(aLabelValue, _retval); } \
  NS_IMETHOD MatchJunkStatus(const char * aJunkScore, bool *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchJunkStatus(aJunkScore, _retval); } \
  NS_IMETHOD MatchJunkPercent(uint32_t aJunkPercent, bool *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchJunkPercent(aJunkPercent, _retval); } \
  NS_IMETHOD MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval) MOZ_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) MOZ_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) MOZ_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) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchHdrProperty(msg, _retval); } \
  NS_IMETHOD MatchUint32HdrProperty(nsIMsgDBHdr *msg, bool *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchUint32HdrProperty(msg, _retval); } \
  NS_IMETHOD MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchFolderFlag(msg, _retval); } \
  NS_IMETHOD GetMatchAllBeforeDeciding(bool *aMatchAllBeforeDeciding) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchAllBeforeDeciding(aMatchAllBeforeDeciding); } \
  NS_IMETHOD GetTermAsString(nsACString & aTermAsString) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTermAsString(aTermAsString); } \
  NS_IMETHOD MatchKeyword(const nsACString & keyword, bool *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchKeyword(keyword, _retval); } \
  NS_IMETHOD GetMatchAll(bool *aMatchAll) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchAll(aMatchAll); } \
  NS_IMETHOD SetMatchAll(bool aMatchAll) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMatchAll(aMatchAll); } \
  NS_IMETHOD MatchCustom(nsIMsgDBHdr *msg, bool *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchCustom(msg, _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;
}

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


#endif /* __gen_nsIMsgSearchTerm_h__ */
