/usr/include/thunderbird-11.0.1/nsIAbDirectoryQuery.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mailnews/addrbook/public/nsIAbDirectoryQuery.idl
*/
#ifndef __gen_nsIAbDirectoryQuery_h__
#define __gen_nsIAbDirectoryQuery_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* 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 "d6fcbedd-d574-4357-abf4-81565d867749"
#define NS_IABDIRECTORYQUERYARGUMENTS_IID \
{0xd6fcbedd, 0xd574, 0x4357, \
{ 0xab, 0xf4, 0x81, 0x56, 0x5d, 0x86, 0x77, 0x49 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIAbDirectoryQueryArguments : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABDIRECTORYQUERYARGUMENTS_IID)
/* attribute nsISupports expression; */
NS_SCRIPTABLE NS_IMETHOD GetExpression(nsISupports * *aExpression) = 0;
NS_SCRIPTABLE NS_IMETHOD SetExpression(nsISupports *aExpression) = 0;
/* attribute boolean querySubDirectories; */
NS_SCRIPTABLE NS_IMETHOD GetQuerySubDirectories(bool *aQuerySubDirectories) = 0;
NS_SCRIPTABLE NS_IMETHOD SetQuerySubDirectories(bool aQuerySubDirectories) = 0;
/* attribute nsISupports typeSpecificArg; */
NS_SCRIPTABLE NS_IMETHOD GetTypeSpecificArg(nsISupports * *aTypeSpecificArg) = 0;
NS_SCRIPTABLE NS_IMETHOD SetTypeSpecificArg(nsISupports *aTypeSpecificArg) = 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_SCRIPTABLE NS_IMETHOD GetExpression(nsISupports * *aExpression); \
NS_SCRIPTABLE NS_IMETHOD SetExpression(nsISupports *aExpression); \
NS_SCRIPTABLE NS_IMETHOD GetQuerySubDirectories(bool *aQuerySubDirectories); \
NS_SCRIPTABLE NS_IMETHOD SetQuerySubDirectories(bool aQuerySubDirectories); \
NS_SCRIPTABLE NS_IMETHOD GetTypeSpecificArg(nsISupports * *aTypeSpecificArg); \
NS_SCRIPTABLE NS_IMETHOD SetTypeSpecificArg(nsISupports *aTypeSpecificArg);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIABDIRECTORYQUERYARGUMENTS(_to) \
NS_SCRIPTABLE NS_IMETHOD GetExpression(nsISupports * *aExpression) { return _to GetExpression(aExpression); } \
NS_SCRIPTABLE NS_IMETHOD SetExpression(nsISupports *aExpression) { return _to SetExpression(aExpression); } \
NS_SCRIPTABLE NS_IMETHOD GetQuerySubDirectories(bool *aQuerySubDirectories) { return _to GetQuerySubDirectories(aQuerySubDirectories); } \
NS_SCRIPTABLE NS_IMETHOD SetQuerySubDirectories(bool aQuerySubDirectories) { return _to SetQuerySubDirectories(aQuerySubDirectories); } \
NS_SCRIPTABLE NS_IMETHOD GetTypeSpecificArg(nsISupports * *aTypeSpecificArg) { return _to GetTypeSpecificArg(aTypeSpecificArg); } \
NS_SCRIPTABLE NS_IMETHOD SetTypeSpecificArg(nsISupports *aTypeSpecificArg) { return _to SetTypeSpecificArg(aTypeSpecificArg); }
/* 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_SCRIPTABLE NS_IMETHOD GetExpression(nsISupports * *aExpression) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpression(aExpression); } \
NS_SCRIPTABLE NS_IMETHOD SetExpression(nsISupports *aExpression) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExpression(aExpression); } \
NS_SCRIPTABLE NS_IMETHOD GetQuerySubDirectories(bool *aQuerySubDirectories) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQuerySubDirectories(aQuerySubDirectories); } \
NS_SCRIPTABLE NS_IMETHOD SetQuerySubDirectories(bool aQuerySubDirectories) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetQuerySubDirectories(aQuerySubDirectories); } \
NS_SCRIPTABLE NS_IMETHOD GetTypeSpecificArg(nsISupports * *aTypeSpecificArg) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypeSpecificArg(aTypeSpecificArg); } \
NS_SCRIPTABLE NS_IMETHOD SetTypeSpecificArg(nsISupports *aTypeSpecificArg) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTypeSpecificArg(aTypeSpecificArg); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsAbDirectoryQueryArguments : public nsIAbDirectoryQueryArguments
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIABDIRECTORYQUERYARGUMENTS
nsAbDirectoryQueryArguments();
private:
~nsAbDirectoryQueryArguments();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsAbDirectoryQueryArguments, nsIAbDirectoryQueryArguments)
nsAbDirectoryQueryArguments::nsAbDirectoryQueryArguments()
{
/* member initializers and constructor code */
}
nsAbDirectoryQueryArguments::~nsAbDirectoryQueryArguments()
{
/* destructor code */
}
/* attribute nsISupports expression; */
NS_IMETHODIMP nsAbDirectoryQueryArguments::GetExpression(nsISupports * *aExpression)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbDirectoryQueryArguments::SetExpression(nsISupports *aExpression)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean querySubDirectories; */
NS_IMETHODIMP nsAbDirectoryQueryArguments::GetQuerySubDirectories(bool *aQuerySubDirectories)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbDirectoryQueryArguments::SetQuerySubDirectories(bool aQuerySubDirectories)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsISupports typeSpecificArg; */
NS_IMETHODIMP nsAbDirectoryQueryArguments::GetTypeSpecificArg(nsISupports * *aTypeSpecificArg)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbDirectoryQueryArguments::SetTypeSpecificArg(nsISupports *aTypeSpecificArg)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* 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 NS_SCRIPTABLE nsIAbDirectoryQueryPropertyValue : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABDIRECTORYQUERYPROPERTYVALUE_IID)
/* readonly attribute string name; */
NS_SCRIPTABLE NS_IMETHOD GetName(char * *aName) = 0;
/* readonly attribute wstring value; */
NS_SCRIPTABLE NS_IMETHOD GetValue(PRUnichar * *aValue) = 0;
/* readonly attribute nsISupports valueISupports; */
NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD GetName(char * *aName); \
NS_SCRIPTABLE NS_IMETHOD GetValue(PRUnichar * *aValue); \
NS_SCRIPTABLE NS_IMETHOD 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_SCRIPTABLE NS_IMETHOD GetName(char * *aName) { return _to GetName(aName); } \
NS_SCRIPTABLE NS_IMETHOD GetValue(PRUnichar * *aValue) { return _to GetValue(aValue); } \
NS_SCRIPTABLE NS_IMETHOD GetValueISupports(nsISupports * *aValueISupports) { 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_SCRIPTABLE NS_IMETHOD GetName(char * *aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_SCRIPTABLE NS_IMETHOD GetValue(PRUnichar * *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
NS_SCRIPTABLE NS_IMETHOD GetValueISupports(nsISupports * *aValueISupports) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueISupports(aValueISupports); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsAbDirectoryQueryPropertyValue : public nsIAbDirectoryQueryPropertyValue
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIABDIRECTORYQUERYPROPERTYVALUE
nsAbDirectoryQueryPropertyValue();
private:
~nsAbDirectoryQueryPropertyValue();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsAbDirectoryQueryPropertyValue, nsIAbDirectoryQueryPropertyValue)
nsAbDirectoryQueryPropertyValue::nsAbDirectoryQueryPropertyValue()
{
/* member initializers and constructor code */
}
nsAbDirectoryQueryPropertyValue::~nsAbDirectoryQueryPropertyValue()
{
/* destructor code */
}
/* readonly attribute string name; */
NS_IMETHODIMP nsAbDirectoryQueryPropertyValue::GetName(char * *aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring value; */
NS_IMETHODIMP nsAbDirectoryQueryPropertyValue::GetValue(PRUnichar * *aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsISupports valueISupports; */
NS_IMETHODIMP nsAbDirectoryQueryPropertyValue::GetValueISupports(nsISupports * *aValueISupports)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* 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 NS_SCRIPTABLE nsIAbDirectoryQueryResultListener : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABDIRECTORYQUERYRESULTLISTENER_IID)
/* void onQueryFoundCard (in nsIAbCard aCard); */
NS_SCRIPTABLE NS_IMETHOD OnQueryFoundCard(nsIAbCard *aCard) = 0;
enum {
queryResultMatch = 0,
queryResultComplete = 1,
queryResultStopped = 2,
queryResultError = 3
};
/* void onQueryResult (in long aResult, in long aErrorCode); */
NS_SCRIPTABLE NS_IMETHOD OnQueryResult(PRInt32 aResult, PRInt32 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_SCRIPTABLE NS_IMETHOD OnQueryFoundCard(nsIAbCard *aCard); \
NS_SCRIPTABLE NS_IMETHOD OnQueryResult(PRInt32 aResult, PRInt32 aErrorCode);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIABDIRECTORYQUERYRESULTLISTENER(_to) \
NS_SCRIPTABLE NS_IMETHOD OnQueryFoundCard(nsIAbCard *aCard) { return _to OnQueryFoundCard(aCard); } \
NS_SCRIPTABLE NS_IMETHOD OnQueryResult(PRInt32 aResult, PRInt32 aErrorCode) { 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_SCRIPTABLE NS_IMETHOD OnQueryFoundCard(nsIAbCard *aCard) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnQueryFoundCard(aCard); } \
NS_SCRIPTABLE NS_IMETHOD OnQueryResult(PRInt32 aResult, PRInt32 aErrorCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnQueryResult(aResult, aErrorCode); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsAbDirectoryQueryResultListener : public nsIAbDirectoryQueryResultListener
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIABDIRECTORYQUERYRESULTLISTENER
nsAbDirectoryQueryResultListener();
private:
~nsAbDirectoryQueryResultListener();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsAbDirectoryQueryResultListener, nsIAbDirectoryQueryResultListener)
nsAbDirectoryQueryResultListener::nsAbDirectoryQueryResultListener()
{
/* member initializers and constructor code */
}
nsAbDirectoryQueryResultListener::~nsAbDirectoryQueryResultListener()
{
/* destructor code */
}
/* void onQueryFoundCard (in nsIAbCard aCard); */
NS_IMETHODIMP nsAbDirectoryQueryResultListener::OnQueryFoundCard(nsIAbCard *aCard)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onQueryResult (in long aResult, in long aErrorCode); */
NS_IMETHODIMP nsAbDirectoryQueryResultListener::OnQueryResult(PRInt32 aResult, PRInt32 aErrorCode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* 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 NS_SCRIPTABLE 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); */
NS_SCRIPTABLE NS_IMETHOD DoQuery(nsIAbDirectory *aDirectory, nsIAbDirectoryQueryArguments *aArguments, nsIAbDirSearchListener *aListener, PRInt32 aResultLimit, PRInt32 aTimeOut, PRInt32 *_retval NS_OUTPARAM) = 0;
/* void stopQuery (in long contextID); */
NS_SCRIPTABLE NS_IMETHOD StopQuery(PRInt32 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_SCRIPTABLE NS_IMETHOD DoQuery(nsIAbDirectory *aDirectory, nsIAbDirectoryQueryArguments *aArguments, nsIAbDirSearchListener *aListener, PRInt32 aResultLimit, PRInt32 aTimeOut, PRInt32 *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD StopQuery(PRInt32 contextID);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIABDIRECTORYQUERY(_to) \
NS_SCRIPTABLE NS_IMETHOD DoQuery(nsIAbDirectory *aDirectory, nsIAbDirectoryQueryArguments *aArguments, nsIAbDirSearchListener *aListener, PRInt32 aResultLimit, PRInt32 aTimeOut, PRInt32 *_retval NS_OUTPARAM) { return _to DoQuery(aDirectory, aArguments, aListener, aResultLimit, aTimeOut, _retval); } \
NS_SCRIPTABLE NS_IMETHOD StopQuery(PRInt32 contextID) { 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_SCRIPTABLE NS_IMETHOD DoQuery(nsIAbDirectory *aDirectory, nsIAbDirectoryQueryArguments *aArguments, nsIAbDirSearchListener *aListener, PRInt32 aResultLimit, PRInt32 aTimeOut, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoQuery(aDirectory, aArguments, aListener, aResultLimit, aTimeOut, _retval); } \
NS_SCRIPTABLE NS_IMETHOD StopQuery(PRInt32 contextID) { return !_to ? NS_ERROR_NULL_POINTER : _to->StopQuery(contextID); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsAbDirectoryQuery : public nsIAbDirectoryQuery
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIABDIRECTORYQUERY
nsAbDirectoryQuery();
private:
~nsAbDirectoryQuery();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsAbDirectoryQuery, nsIAbDirectoryQuery)
nsAbDirectoryQuery::nsAbDirectoryQuery()
{
/* member initializers and constructor code */
}
nsAbDirectoryQuery::~nsAbDirectoryQuery()
{
/* destructor code */
}
/* long doQuery (in nsIAbDirectory aDirectory, in nsIAbDirectoryQueryArguments aArguments, in nsIAbDirSearchListener aListener, in long aResultLimit, in long aTimeOut); */
NS_IMETHODIMP nsAbDirectoryQuery::DoQuery(nsIAbDirectory *aDirectory, nsIAbDirectoryQueryArguments *aArguments, nsIAbDirSearchListener *aListener, PRInt32 aResultLimit, PRInt32 aTimeOut, PRInt32 *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void stopQuery (in long contextID); */
NS_IMETHODIMP nsAbDirectoryQuery::StopQuery(PRInt32 contextID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIAbDirectoryQuery_h__ */
|