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

#ifndef __gen_nsIAbDirectoryQuery_h__
#define __gen_nsIAbDirectoryQuery_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.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 nsIAbDirSearchListener; /* forward declaration */

class nsIAbCard; /* forward declaration */

class nsIAbDirectory; /* forward declaration */


/* starting interface:    nsIAbDirectoryQueryArguments */
#define NS_IABDIRECTORYQUERYARGUMENTS_IID_STR "03af3018-2590-4f4c-a88c-1fff6595ef05"

#define NS_IABDIRECTORYQUERYARGUMENTS_IID \
  {0x03af3018, 0x2590, 0x4f4c, \
    { 0xa8, 0x8c, 0x1f, 0xff, 0x65, 0x95, 0xef, 0x05 }}

class NS_NO_VTABLE nsIAbDirectoryQueryArguments : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABDIRECTORYQUERYARGUMENTS_IID)

  /* attribute nsISupports expression; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetExpression(nsISupports **aExpression) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetExpression(nsISupports *aExpression) = 0;

  /* attribute boolean querySubDirectories; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetQuerySubDirectories(bool *aQuerySubDirectories) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetQuerySubDirectories(bool aQuerySubDirectories) = 0;

  /* attribute nsISupports typeSpecificArg; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTypeSpecificArg(nsISupports **aTypeSpecificArg) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTypeSpecificArg(nsISupports *aTypeSpecificArg) = 0;

  /* attribute AUTF8String filter; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFilter(nsACString& aFilter) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFilter(const nsACString& aFilter) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAbDirectoryQueryArguments, NS_IABDIRECTORYQUERYARGUMENTS_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIABDIRECTORYQUERYARGUMENTS \
  NS_IMETHOD GetExpression(nsISupports **aExpression) override; \
  NS_IMETHOD SetExpression(nsISupports *aExpression) override; \
  NS_IMETHOD GetQuerySubDirectories(bool *aQuerySubDirectories) override; \
  NS_IMETHOD SetQuerySubDirectories(bool aQuerySubDirectories) override; \
  NS_IMETHOD GetTypeSpecificArg(nsISupports **aTypeSpecificArg) override; \
  NS_IMETHOD SetTypeSpecificArg(nsISupports *aTypeSpecificArg) override; \
  NS_IMETHOD GetFilter(nsACString& aFilter) override; \
  NS_IMETHOD SetFilter(const nsACString& aFilter) 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_NSIABDIRECTORYQUERYARGUMENTS \
  nsresult GetExpression(nsISupports **aExpression); \
  nsresult SetExpression(nsISupports *aExpression); \
  nsresult GetQuerySubDirectories(bool *aQuerySubDirectories); \
  nsresult SetQuerySubDirectories(bool aQuerySubDirectories); \
  nsresult GetTypeSpecificArg(nsISupports **aTypeSpecificArg); \
  nsresult SetTypeSpecificArg(nsISupports *aTypeSpecificArg); \
  nsresult GetFilter(nsACString& aFilter); \
  nsresult SetFilter(const nsACString& aFilter); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIABDIRECTORYQUERYARGUMENTS(_to) \
  NS_IMETHOD GetExpression(nsISupports **aExpression) override { return _to GetExpression(aExpression); } \
  NS_IMETHOD SetExpression(nsISupports *aExpression) override { return _to SetExpression(aExpression); } \
  NS_IMETHOD GetQuerySubDirectories(bool *aQuerySubDirectories) override { return _to GetQuerySubDirectories(aQuerySubDirectories); } \
  NS_IMETHOD SetQuerySubDirectories(bool aQuerySubDirectories) override { return _to SetQuerySubDirectories(aQuerySubDirectories); } \
  NS_IMETHOD GetTypeSpecificArg(nsISupports **aTypeSpecificArg) override { return _to GetTypeSpecificArg(aTypeSpecificArg); } \
  NS_IMETHOD SetTypeSpecificArg(nsISupports *aTypeSpecificArg) override { return _to SetTypeSpecificArg(aTypeSpecificArg); } \
  NS_IMETHOD GetFilter(nsACString& aFilter) override { return _to GetFilter(aFilter); } \
  NS_IMETHOD SetFilter(const nsACString& aFilter) override { return _to SetFilter(aFilter); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIABDIRECTORYQUERYARGUMENTS(_to) \
  NS_IMETHOD GetExpression(nsISupports **aExpression) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpression(aExpression); } \
  NS_IMETHOD SetExpression(nsISupports *aExpression) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExpression(aExpression); } \
  NS_IMETHOD GetQuerySubDirectories(bool *aQuerySubDirectories) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQuerySubDirectories(aQuerySubDirectories); } \
  NS_IMETHOD SetQuerySubDirectories(bool aQuerySubDirectories) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetQuerySubDirectories(aQuerySubDirectories); } \
  NS_IMETHOD GetTypeSpecificArg(nsISupports **aTypeSpecificArg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypeSpecificArg(aTypeSpecificArg); } \
  NS_IMETHOD SetTypeSpecificArg(nsISupports *aTypeSpecificArg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTypeSpecificArg(aTypeSpecificArg); } \
  NS_IMETHOD GetFilter(nsACString& aFilter) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilter(aFilter); } \
  NS_IMETHOD SetFilter(const nsACString& aFilter) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFilter(aFilter); } 


/* starting interface:    nsIAbDirectoryQueryPropertyValue */
#define NS_IABDIRECTORYQUERYPROPERTYVALUE_IID_STR "3a6e0c0c-1dd2-11b2-b23d-ea3a8ccb333c"

#define NS_IABDIRECTORYQUERYPROPERTYVALUE_IID \
  {0x3a6e0c0c, 0x1dd2, 0x11b2, \
    { 0xb2, 0x3d, 0xea, 0x3a, 0x8c, 0xcb, 0x33, 0x3c }}

class NS_NO_VTABLE nsIAbDirectoryQueryPropertyValue : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABDIRECTORYQUERYPROPERTYVALUE_IID)

  /* readonly attribute string name; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetName(char * *aName) = 0;

  /* readonly attribute wstring value; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetValue(char16_t * *aValue) = 0;

  /* readonly attribute nsISupports valueISupports; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetValueISupports(nsISupports **aValueISupports) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAbDirectoryQueryPropertyValue, NS_IABDIRECTORYQUERYPROPERTYVALUE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIABDIRECTORYQUERYPROPERTYVALUE \
  NS_IMETHOD GetName(char * *aName) override; \
  NS_IMETHOD GetValue(char16_t * *aValue) override; \
  NS_IMETHOD GetValueISupports(nsISupports **aValueISupports) 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_NSIABDIRECTORYQUERYPROPERTYVALUE \
  nsresult GetName(char * *aName); \
  nsresult GetValue(char16_t * *aValue); \
  nsresult GetValueISupports(nsISupports **aValueISupports); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIABDIRECTORYQUERYPROPERTYVALUE(_to) \
  NS_IMETHOD GetName(char * *aName) override { return _to GetName(aName); } \
  NS_IMETHOD GetValue(char16_t * *aValue) override { return _to GetValue(aValue); } \
  NS_IMETHOD GetValueISupports(nsISupports **aValueISupports) override { return _to GetValueISupports(aValueISupports); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIABDIRECTORYQUERYPROPERTYVALUE(_to) \
  NS_IMETHOD GetName(char * *aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD GetValue(char16_t * *aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  NS_IMETHOD GetValueISupports(nsISupports **aValueISupports) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueISupports(aValueISupports); } 


/* starting interface:    nsIAbDirectoryQueryResultListener */
#define NS_IABDIRECTORYQUERYRESULTLISTENER_IID_STR "516e7ffa-69bc-41db-a493-dfb4895832f3"

#define NS_IABDIRECTORYQUERYRESULTLISTENER_IID \
  {0x516e7ffa, 0x69bc, 0x41db, \
    { 0xa4, 0x93, 0xdf, 0xb4, 0x89, 0x58, 0x32, 0xf3 }}

class NS_NO_VTABLE nsIAbDirectoryQueryResultListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABDIRECTORYQUERYRESULTLISTENER_IID)

  /* void onQueryFoundCard (in nsIAbCard aCard); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnQueryFoundCard(nsIAbCard *aCard) = 0;

  enum {
    queryResultMatch = 0,
    queryResultComplete = 1,
    queryResultStopped = 2,
    queryResultError = 3
  };

  /* void onQueryResult (in long aResult, in long aErrorCode); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnQueryResult(int32_t aResult, int32_t aErrorCode) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAbDirectoryQueryResultListener, NS_IABDIRECTORYQUERYRESULTLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIABDIRECTORYQUERYRESULTLISTENER \
  NS_IMETHOD OnQueryFoundCard(nsIAbCard *aCard) override; \
  NS_IMETHOD OnQueryResult(int32_t aResult, int32_t aErrorCode) 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_NSIABDIRECTORYQUERYRESULTLISTENER \
  nsresult OnQueryFoundCard(nsIAbCard *aCard); \
  nsresult OnQueryResult(int32_t aResult, int32_t aErrorCode); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIABDIRECTORYQUERYRESULTLISTENER(_to) \
  NS_IMETHOD OnQueryFoundCard(nsIAbCard *aCard) override { return _to OnQueryFoundCard(aCard); } \
  NS_IMETHOD OnQueryResult(int32_t aResult, int32_t aErrorCode) override { return _to OnQueryResult(aResult, aErrorCode); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIABDIRECTORYQUERYRESULTLISTENER(_to) \
  NS_IMETHOD OnQueryFoundCard(nsIAbCard *aCard) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnQueryFoundCard(aCard); } \
  NS_IMETHOD OnQueryResult(int32_t aResult, int32_t aErrorCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnQueryResult(aResult, aErrorCode); } 


/* starting interface:    nsIAbDirectoryQuery */
#define NS_IABDIRECTORYQUERY_IID_STR "60b5961c-ce61-47b3-aa99-6d865f734dee"

#define NS_IABDIRECTORYQUERY_IID \
  {0x60b5961c, 0xce61, 0x47b3, \
    { 0xaa, 0x99, 0x6d, 0x86, 0x5f, 0x73, 0x4d, 0xee }}

class NS_NO_VTABLE nsIAbDirectoryQuery : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABDIRECTORYQUERY_IID)

  /* long doQuery (in nsIAbDirectory aDirectory, in nsIAbDirectoryQueryArguments aArguments, in nsIAbDirSearchListener aListener, in long aResultLimit, in long aTimeOut); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DoQuery(nsIAbDirectory *aDirectory, nsIAbDirectoryQueryArguments *aArguments, nsIAbDirSearchListener *aListener, int32_t aResultLimit, int32_t aTimeOut, int32_t *_retval) = 0;

  /* void stopQuery (in long contextID); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StopQuery(int32_t contextID) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAbDirectoryQuery, NS_IABDIRECTORYQUERY_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIABDIRECTORYQUERY \
  NS_IMETHOD DoQuery(nsIAbDirectory *aDirectory, nsIAbDirectoryQueryArguments *aArguments, nsIAbDirSearchListener *aListener, int32_t aResultLimit, int32_t aTimeOut, int32_t *_retval) override; \
  NS_IMETHOD StopQuery(int32_t contextID) 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_NSIABDIRECTORYQUERY \
  nsresult DoQuery(nsIAbDirectory *aDirectory, nsIAbDirectoryQueryArguments *aArguments, nsIAbDirSearchListener *aListener, int32_t aResultLimit, int32_t aTimeOut, int32_t *_retval); \
  nsresult StopQuery(int32_t contextID); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIABDIRECTORYQUERY(_to) \
  NS_IMETHOD DoQuery(nsIAbDirectory *aDirectory, nsIAbDirectoryQueryArguments *aArguments, nsIAbDirSearchListener *aListener, int32_t aResultLimit, int32_t aTimeOut, int32_t *_retval) override { return _to DoQuery(aDirectory, aArguments, aListener, aResultLimit, aTimeOut, _retval); } \
  NS_IMETHOD StopQuery(int32_t contextID) override { return _to StopQuery(contextID); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIABDIRECTORYQUERY(_to) \
  NS_IMETHOD DoQuery(nsIAbDirectory *aDirectory, nsIAbDirectoryQueryArguments *aArguments, nsIAbDirSearchListener *aListener, int32_t aResultLimit, int32_t aTimeOut, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoQuery(aDirectory, aArguments, aListener, aResultLimit, aTimeOut, _retval); } \
  NS_IMETHOD StopQuery(int32_t contextID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopQuery(contextID); } 


#endif /* __gen_nsIAbDirectoryQuery_h__ */