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

#ifndef __gen_nsIMsgFilterService_h__
#define __gen_nsIMsgFilterService_h__


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

#ifndef __gen_nsMsgFilterCore_h__
#include "nsMsgFilterCore.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIMsgFilterList; /* forward declaration */

class nsIMsgWindow; /* forward declaration */

class nsIMsgFilterCustomAction; /* forward declaration */

class nsISimpleEnumerator; /* forward declaration */

class nsIFile; /* forward declaration */

class nsIMsgFolder; /* forward declaration */

class nsIMsgSearchCustomTerm; /* forward declaration */

class nsIArray; /* forward declaration */

class nsIMsgOperationListener; /* forward declaration */


/* starting interface:    nsIMsgFilterService */
#define NS_IMSGFILTERSERVICE_IID_STR "78a74023-1692-4567-8d72-9ca58fbbd427"

#define NS_IMSGFILTERSERVICE_IID \
  {0x78a74023, 0x1692, 0x4567, \
    { 0x8d, 0x72, 0x9c, 0xa5, 0x8f, 0xbb, 0xd4, 0x27 }}

class NS_NO_VTABLE nsIMsgFilterService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGFILTERSERVICE_IID)

  /* nsIMsgFilterList OpenFilterList (in nsIFile filterFile, in nsIMsgFolder rootFolder, in nsIMsgWindow msgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OpenFilterList(nsIFile *filterFile, nsIMsgFolder *rootFolder, nsIMsgWindow *msgWindow, nsIMsgFilterList **_retval) = 0;

  /* void CloseFilterList (in nsIMsgFilterList filterList); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CloseFilterList(nsIMsgFilterList *filterList) = 0;

  /* void SaveFilterList (in nsIMsgFilterList filterList, in nsIFile filterFile); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SaveFilterList(nsIMsgFilterList *filterList, nsIFile *filterFile) = 0;

  /* void CancelFilterList (in nsIMsgFilterList filterList); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CancelFilterList(nsIMsgFilterList *filterList) = 0;

  /* nsIMsgFilterList getTempFilterList (in nsIMsgFolder aFolder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTempFilterList(nsIMsgFolder *aFolder, nsIMsgFilterList **_retval) = 0;

  /* void applyFiltersToFolders (in nsIMsgFilterList aFilterList, in nsIArray aFolders, in nsIMsgWindow aMsgWindow, [optional] in nsIMsgOperationListener aCallback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ApplyFiltersToFolders(nsIMsgFilterList *aFilterList, nsIArray *aFolders, nsIMsgWindow *aMsgWindow, nsIMsgOperationListener *aCallback) = 0;

  /* void applyFilters (in nsMsgFilterTypeType aFilterType, in nsIArray aMsgHdrList, in nsIMsgFolder aFolder, in nsIMsgWindow aMsgWindow, [optional] in nsIMsgOperationListener aCallback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ApplyFilters(nsMsgFilterTypeType aFilterType, nsIArray *aMsgHdrList, nsIMsgFolder *aFolder, nsIMsgWindow *aMsgWindow, nsIMsgOperationListener *aCallback) = 0;

  /* void addCustomAction (in nsIMsgFilterCustomAction aAction); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddCustomAction(nsIMsgFilterCustomAction *aAction) = 0;

  /* nsISimpleEnumerator getCustomActions (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCustomActions(nsISimpleEnumerator **_retval) = 0;

  /* nsIMsgFilterCustomAction getCustomAction (in ACString id); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCustomAction(const nsACString& id, nsIMsgFilterCustomAction **_retval) = 0;

  /* void addCustomTerm (in nsIMsgSearchCustomTerm aTerm); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddCustomTerm(nsIMsgSearchCustomTerm *aTerm) = 0;

  /* nsISimpleEnumerator getCustomTerms (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCustomTerms(nsISimpleEnumerator **_retval) = 0;

  /* nsIMsgSearchCustomTerm getCustomTerm (in ACString id); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCustomTerm(const nsACString& id, nsIMsgSearchCustomTerm **_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgFilterService, NS_IMSGFILTERSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGFILTERSERVICE \
  NS_IMETHOD OpenFilterList(nsIFile *filterFile, nsIMsgFolder *rootFolder, nsIMsgWindow *msgWindow, nsIMsgFilterList **_retval) override; \
  NS_IMETHOD CloseFilterList(nsIMsgFilterList *filterList) override; \
  NS_IMETHOD SaveFilterList(nsIMsgFilterList *filterList, nsIFile *filterFile) override; \
  NS_IMETHOD CancelFilterList(nsIMsgFilterList *filterList) override; \
  NS_IMETHOD GetTempFilterList(nsIMsgFolder *aFolder, nsIMsgFilterList **_retval) override; \
  NS_IMETHOD ApplyFiltersToFolders(nsIMsgFilterList *aFilterList, nsIArray *aFolders, nsIMsgWindow *aMsgWindow, nsIMsgOperationListener *aCallback) override; \
  NS_IMETHOD ApplyFilters(nsMsgFilterTypeType aFilterType, nsIArray *aMsgHdrList, nsIMsgFolder *aFolder, nsIMsgWindow *aMsgWindow, nsIMsgOperationListener *aCallback) override; \
  NS_IMETHOD AddCustomAction(nsIMsgFilterCustomAction *aAction) override; \
  NS_IMETHOD GetCustomActions(nsISimpleEnumerator **_retval) override; \
  NS_IMETHOD GetCustomAction(const nsACString& id, nsIMsgFilterCustomAction **_retval) override; \
  NS_IMETHOD AddCustomTerm(nsIMsgSearchCustomTerm *aTerm) override; \
  NS_IMETHOD GetCustomTerms(nsISimpleEnumerator **_retval) override; \
  NS_IMETHOD GetCustomTerm(const nsACString& id, nsIMsgSearchCustomTerm **_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_NSIMSGFILTERSERVICE \
  nsresult OpenFilterList(nsIFile *filterFile, nsIMsgFolder *rootFolder, nsIMsgWindow *msgWindow, nsIMsgFilterList **_retval); \
  nsresult CloseFilterList(nsIMsgFilterList *filterList); \
  nsresult SaveFilterList(nsIMsgFilterList *filterList, nsIFile *filterFile); \
  nsresult CancelFilterList(nsIMsgFilterList *filterList); \
  nsresult GetTempFilterList(nsIMsgFolder *aFolder, nsIMsgFilterList **_retval); \
  nsresult ApplyFiltersToFolders(nsIMsgFilterList *aFilterList, nsIArray *aFolders, nsIMsgWindow *aMsgWindow, nsIMsgOperationListener *aCallback); \
  nsresult ApplyFilters(nsMsgFilterTypeType aFilterType, nsIArray *aMsgHdrList, nsIMsgFolder *aFolder, nsIMsgWindow *aMsgWindow, nsIMsgOperationListener *aCallback); \
  nsresult AddCustomAction(nsIMsgFilterCustomAction *aAction); \
  nsresult GetCustomActions(nsISimpleEnumerator **_retval); \
  nsresult GetCustomAction(const nsACString& id, nsIMsgFilterCustomAction **_retval); \
  nsresult AddCustomTerm(nsIMsgSearchCustomTerm *aTerm); \
  nsresult GetCustomTerms(nsISimpleEnumerator **_retval); \
  nsresult GetCustomTerm(const nsACString& id, nsIMsgSearchCustomTerm **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGFILTERSERVICE(_to) \
  NS_IMETHOD OpenFilterList(nsIFile *filterFile, nsIMsgFolder *rootFolder, nsIMsgWindow *msgWindow, nsIMsgFilterList **_retval) override { return _to OpenFilterList(filterFile, rootFolder, msgWindow, _retval); } \
  NS_IMETHOD CloseFilterList(nsIMsgFilterList *filterList) override { return _to CloseFilterList(filterList); } \
  NS_IMETHOD SaveFilterList(nsIMsgFilterList *filterList, nsIFile *filterFile) override { return _to SaveFilterList(filterList, filterFile); } \
  NS_IMETHOD CancelFilterList(nsIMsgFilterList *filterList) override { return _to CancelFilterList(filterList); } \
  NS_IMETHOD GetTempFilterList(nsIMsgFolder *aFolder, nsIMsgFilterList **_retval) override { return _to GetTempFilterList(aFolder, _retval); } \
  NS_IMETHOD ApplyFiltersToFolders(nsIMsgFilterList *aFilterList, nsIArray *aFolders, nsIMsgWindow *aMsgWindow, nsIMsgOperationListener *aCallback) override { return _to ApplyFiltersToFolders(aFilterList, aFolders, aMsgWindow, aCallback); } \
  NS_IMETHOD ApplyFilters(nsMsgFilterTypeType aFilterType, nsIArray *aMsgHdrList, nsIMsgFolder *aFolder, nsIMsgWindow *aMsgWindow, nsIMsgOperationListener *aCallback) override { return _to ApplyFilters(aFilterType, aMsgHdrList, aFolder, aMsgWindow, aCallback); } \
  NS_IMETHOD AddCustomAction(nsIMsgFilterCustomAction *aAction) override { return _to AddCustomAction(aAction); } \
  NS_IMETHOD GetCustomActions(nsISimpleEnumerator **_retval) override { return _to GetCustomActions(_retval); } \
  NS_IMETHOD GetCustomAction(const nsACString& id, nsIMsgFilterCustomAction **_retval) override { return _to GetCustomAction(id, _retval); } \
  NS_IMETHOD AddCustomTerm(nsIMsgSearchCustomTerm *aTerm) override { return _to AddCustomTerm(aTerm); } \
  NS_IMETHOD GetCustomTerms(nsISimpleEnumerator **_retval) override { return _to GetCustomTerms(_retval); } \
  NS_IMETHOD GetCustomTerm(const nsACString& id, nsIMsgSearchCustomTerm **_retval) override { return _to GetCustomTerm(id, _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_NSIMSGFILTERSERVICE(_to) \
  NS_IMETHOD OpenFilterList(nsIFile *filterFile, nsIMsgFolder *rootFolder, nsIMsgWindow *msgWindow, nsIMsgFilterList **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenFilterList(filterFile, rootFolder, msgWindow, _retval); } \
  NS_IMETHOD CloseFilterList(nsIMsgFilterList *filterList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseFilterList(filterList); } \
  NS_IMETHOD SaveFilterList(nsIMsgFilterList *filterList, nsIFile *filterFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveFilterList(filterList, filterFile); } \
  NS_IMETHOD CancelFilterList(nsIMsgFilterList *filterList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelFilterList(filterList); } \
  NS_IMETHOD GetTempFilterList(nsIMsgFolder *aFolder, nsIMsgFilterList **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTempFilterList(aFolder, _retval); } \
  NS_IMETHOD ApplyFiltersToFolders(nsIMsgFilterList *aFilterList, nsIArray *aFolders, nsIMsgWindow *aMsgWindow, nsIMsgOperationListener *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ApplyFiltersToFolders(aFilterList, aFolders, aMsgWindow, aCallback); } \
  NS_IMETHOD ApplyFilters(nsMsgFilterTypeType aFilterType, nsIArray *aMsgHdrList, nsIMsgFolder *aFolder, nsIMsgWindow *aMsgWindow, nsIMsgOperationListener *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ApplyFilters(aFilterType, aMsgHdrList, aFolder, aMsgWindow, aCallback); } \
  NS_IMETHOD AddCustomAction(nsIMsgFilterCustomAction *aAction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCustomAction(aAction); } \
  NS_IMETHOD GetCustomActions(nsISimpleEnumerator **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCustomActions(_retval); } \
  NS_IMETHOD GetCustomAction(const nsACString& id, nsIMsgFilterCustomAction **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCustomAction(id, _retval); } \
  NS_IMETHOD AddCustomTerm(nsIMsgSearchCustomTerm *aTerm) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCustomTerm(aTerm); } \
  NS_IMETHOD GetCustomTerms(nsISimpleEnumerator **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCustomTerms(_retval); } \
  NS_IMETHOD GetCustomTerm(const nsACString& id, nsIMsgSearchCustomTerm **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCustomTerm(id, _retval); } 


#endif /* __gen_nsIMsgFilterService_h__ */