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

#ifndef __gen_nsIMsgSearchAdapter_h__
#define __gen_nsIMsgSearchAdapter_h__


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

#ifndef __gen_nsIMsgSearchScopeTerm_h__
#include "nsIMsgSearchScopeTerm.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 nsMsgResultElement;

/* starting interface:    nsIMsgSearchAdapter */
#define NS_IMSGSEARCHADAPTER_IID_STR "0b09078b-e0cd-440a-afee-01f45808ee74"

#define NS_IMSGSEARCHADAPTER_IID \
  {0x0b09078b, 0xe0cd, 0x440a, \
    { 0xaf, 0xee, 0x01, 0xf4, 0x58, 0x08, 0xee, 0x74 }}

class NS_NO_VTABLE nsIMsgSearchAdapter : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGSEARCHADAPTER_IID)

  /* void ValidateTerms (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ValidateTerms(void) = 0;

  /* void Search (out boolean done); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Search(bool *done) = 0;

  /* void SendUrl (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendUrl(void) = 0;

  /* void CurrentUrlDone (in nsresult exitCode); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CurrentUrlDone(nsresult exitCode) = 0;

  /* void AddHit (in nsMsgKey key); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddHit(nsMsgKey key) = 0;

  /* void AddResultElement (in nsIMsgDBHdr aHdr); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddResultElement(nsIMsgDBHdr *aHdr) = 0;

  /* [noscript] void OpenResultElement (in nsMsgResultElement element); */
  NS_IMETHOD OpenResultElement(nsMsgResultElement * element) = 0;

  /* [noscript] void ModifyResultElement (in nsMsgResultElement element, in nsMsgSearchValue value); */
  NS_IMETHOD ModifyResultElement(nsMsgResultElement * element, nsMsgSearchValue * value) = 0;

  /* readonly attribute string encoding; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetEncoding(char * *aEncoding) = 0;

  /* [noscript] nsIMsgFolder FindTargetFolder ([const] in nsMsgResultElement element); */
  NS_IMETHOD FindTargetFolder(const nsMsgResultElement * element, nsIMsgFolder **_retval) = 0;

  /* void Abort (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Abort(void) = 0;

  /* void getSearchCharsets (out AString srcCharset, out AString destCharset); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSearchCharsets(nsAString& srcCharset, nsAString& destCharset) = 0;

  /* void clearScope (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ClearScope(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgSearchAdapter, NS_IMSGSEARCHADAPTER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGSEARCHADAPTER \
  NS_IMETHOD ValidateTerms(void) override; \
  NS_IMETHOD Search(bool *done) override; \
  NS_IMETHOD SendUrl(void) override; \
  NS_IMETHOD CurrentUrlDone(nsresult exitCode) override; \
  NS_IMETHOD AddHit(nsMsgKey key) override; \
  NS_IMETHOD AddResultElement(nsIMsgDBHdr *aHdr) override; \
  NS_IMETHOD OpenResultElement(nsMsgResultElement * element) override; \
  NS_IMETHOD ModifyResultElement(nsMsgResultElement * element, nsMsgSearchValue * value) override; \
  NS_IMETHOD GetEncoding(char * *aEncoding) override; \
  NS_IMETHOD FindTargetFolder(const nsMsgResultElement * element, nsIMsgFolder **_retval) override; \
  NS_IMETHOD Abort(void) override; \
  NS_IMETHOD GetSearchCharsets(nsAString& srcCharset, nsAString& destCharset) override; \
  NS_IMETHOD ClearScope(void) 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_NSIMSGSEARCHADAPTER \
  nsresult ValidateTerms(void); \
  nsresult Search(bool *done); \
  nsresult SendUrl(void); \
  nsresult CurrentUrlDone(nsresult exitCode); \
  nsresult AddHit(nsMsgKey key); \
  nsresult AddResultElement(nsIMsgDBHdr *aHdr); \
  nsresult OpenResultElement(nsMsgResultElement * element); \
  nsresult ModifyResultElement(nsMsgResultElement * element, nsMsgSearchValue * value); \
  nsresult GetEncoding(char * *aEncoding); \
  nsresult FindTargetFolder(const nsMsgResultElement * element, nsIMsgFolder **_retval); \
  nsresult Abort(void); \
  nsresult GetSearchCharsets(nsAString& srcCharset, nsAString& destCharset); \
  nsresult ClearScope(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGSEARCHADAPTER(_to) \
  NS_IMETHOD ValidateTerms(void) override { return _to ValidateTerms(); } \
  NS_IMETHOD Search(bool *done) override { return _to Search(done); } \
  NS_IMETHOD SendUrl(void) override { return _to SendUrl(); } \
  NS_IMETHOD CurrentUrlDone(nsresult exitCode) override { return _to CurrentUrlDone(exitCode); } \
  NS_IMETHOD AddHit(nsMsgKey key) override { return _to AddHit(key); } \
  NS_IMETHOD AddResultElement(nsIMsgDBHdr *aHdr) override { return _to AddResultElement(aHdr); } \
  NS_IMETHOD OpenResultElement(nsMsgResultElement * element) override { return _to OpenResultElement(element); } \
  NS_IMETHOD ModifyResultElement(nsMsgResultElement * element, nsMsgSearchValue * value) override { return _to ModifyResultElement(element, value); } \
  NS_IMETHOD GetEncoding(char * *aEncoding) override { return _to GetEncoding(aEncoding); } \
  NS_IMETHOD FindTargetFolder(const nsMsgResultElement * element, nsIMsgFolder **_retval) override { return _to FindTargetFolder(element, _retval); } \
  NS_IMETHOD Abort(void) override { return _to Abort(); } \
  NS_IMETHOD GetSearchCharsets(nsAString& srcCharset, nsAString& destCharset) override { return _to GetSearchCharsets(srcCharset, destCharset); } \
  NS_IMETHOD ClearScope(void) override { return _to ClearScope(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGSEARCHADAPTER(_to) \
  NS_IMETHOD ValidateTerms(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ValidateTerms(); } \
  NS_IMETHOD Search(bool *done) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Search(done); } \
  NS_IMETHOD SendUrl(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendUrl(); } \
  NS_IMETHOD CurrentUrlDone(nsresult exitCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CurrentUrlDone(exitCode); } \
  NS_IMETHOD AddHit(nsMsgKey key) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddHit(key); } \
  NS_IMETHOD AddResultElement(nsIMsgDBHdr *aHdr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddResultElement(aHdr); } \
  NS_IMETHOD OpenResultElement(nsMsgResultElement * element) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenResultElement(element); } \
  NS_IMETHOD ModifyResultElement(nsMsgResultElement * element, nsMsgSearchValue * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ModifyResultElement(element, value); } \
  NS_IMETHOD GetEncoding(char * *aEncoding) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncoding(aEncoding); } \
  NS_IMETHOD FindTargetFolder(const nsMsgResultElement * element, nsIMsgFolder **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindTargetFolder(element, _retval); } \
  NS_IMETHOD Abort(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(); } \
  NS_IMETHOD GetSearchCharsets(nsAString& srcCharset, nsAString& destCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchCharsets(srcCharset, destCharset); } \
  NS_IMETHOD ClearScope(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearScope(); } 


#endif /* __gen_nsIMsgSearchAdapter_h__ */