/usr/include/thunderbird-11.0.1/nsIAbDirectory.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 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mailnews/addrbook/public/nsIAbDirectory.idl
*/
#ifndef __gen_nsIAbDirectory_h__
#define __gen_nsIAbDirectory_h__
#ifndef __gen_nsIAbCollection_h__
#include "nsIAbCollection.h"
#endif
#ifndef __gen_nsIAbCard_h__
#include "nsIAbCard.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsISimpleEnumerator; /* forward declaration */
class nsIArray; /* forward declaration */
class nsIMutableArray; /* forward declaration */
#define kAllDirectoryRoot "moz-abdirectory://"
#define kPersonalAddressbook "abook.mab"
#define kPersonalAddressbookUri "moz-abmdbdirectory://abook.mab"
#define kCollectedAddressbook "history.mab"
#define kCollectedAddressbookUri "moz-abmdbdirectory://history.mab"
#define kABFileName_PreviousSuffix ".na2" /* final v2 address book format */
#define kABFileName_PreviousSuffixLen 4
#define kABFileName_CurrentSuffix ".mab" /* v3 address book extension */
/* starting interface: nsIAbDirectory */
#define NS_IABDIRECTORY_IID_STR "72dc868b-db5b-4daa-b6c6-071be4a05d02"
#define NS_IABDIRECTORY_IID \
{0x72dc868b, 0xdb5b, 0x4daa, \
{ 0xb6, 0xc6, 0x07, 0x1b, 0xe4, 0xa0, 0x5d, 0x02 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIAbDirectory : public nsIAbCollection {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABDIRECTORY_IID)
/* readonly attribute ACString propertiesChromeURI; */
NS_SCRIPTABLE NS_IMETHOD GetPropertiesChromeURI(nsACString & aPropertiesChromeURI) = 0;
/* attribute AString dirName; */
NS_SCRIPTABLE NS_IMETHOD GetDirName(nsAString & aDirName) = 0;
NS_SCRIPTABLE NS_IMETHOD SetDirName(const nsAString & aDirName) = 0;
/* readonly attribute long dirType; */
NS_SCRIPTABLE NS_IMETHOD GetDirType(PRInt32 *aDirType) = 0;
/* readonly attribute ACString fileName; */
NS_SCRIPTABLE NS_IMETHOD GetFileName(nsACString & aFileName) = 0;
/* readonly attribute ACString URI; */
NS_SCRIPTABLE NS_IMETHOD GetURI(nsACString & aURI) = 0;
/* readonly attribute long position; */
NS_SCRIPTABLE NS_IMETHOD GetPosition(PRInt32 *aPosition) = 0;
/* attribute unsigned long lastModifiedDate; */
NS_SCRIPTABLE NS_IMETHOD GetLastModifiedDate(PRUint32 *aLastModifiedDate) = 0;
NS_SCRIPTABLE NS_IMETHOD SetLastModifiedDate(PRUint32 aLastModifiedDate) = 0;
/* attribute boolean isMailList; */
NS_SCRIPTABLE NS_IMETHOD GetIsMailList(bool *aIsMailList) = 0;
NS_SCRIPTABLE NS_IMETHOD SetIsMailList(bool aIsMailList) = 0;
/* readonly attribute nsISimpleEnumerator childNodes; */
NS_SCRIPTABLE NS_IMETHOD GetChildNodes(nsISimpleEnumerator * *aChildNodes) = 0;
/* readonly attribute nsISimpleEnumerator childCards; */
NS_SCRIPTABLE NS_IMETHOD GetChildCards(nsISimpleEnumerator * *aChildCards) = 0;
/* readonly attribute boolean isQuery; */
NS_SCRIPTABLE NS_IMETHOD GetIsQuery(bool *aIsQuery) = 0;
/* void init (in string aURI); */
NS_SCRIPTABLE NS_IMETHOD Init(const char * aURI) = 0;
/* void deleteDirectory (in nsIAbDirectory directory); */
NS_SCRIPTABLE NS_IMETHOD DeleteDirectory(nsIAbDirectory *directory) = 0;
/* boolean hasCard (in nsIAbCard cards); */
NS_SCRIPTABLE NS_IMETHOD HasCard(nsIAbCard *cards, bool *_retval NS_OUTPARAM) = 0;
/* boolean hasDirectory (in nsIAbDirectory dir); */
NS_SCRIPTABLE NS_IMETHOD HasDirectory(nsIAbDirectory *dir, bool *_retval NS_OUTPARAM) = 0;
/* nsIAbCard addCard (in nsIAbCard card); */
NS_SCRIPTABLE NS_IMETHOD AddCard(nsIAbCard *card, nsIAbCard * *_retval NS_OUTPARAM) = 0;
/* void modifyCard (in nsIAbCard modifiedCard); */
NS_SCRIPTABLE NS_IMETHOD ModifyCard(nsIAbCard *modifiedCard) = 0;
/* void deleteCards (in nsIArray aCards); */
NS_SCRIPTABLE NS_IMETHOD DeleteCards(nsIArray *aCards) = 0;
/* void dropCard (in nsIAbCard card, in boolean needToCopyCard); */
NS_SCRIPTABLE NS_IMETHOD DropCard(nsIAbCard *card, bool needToCopyCard) = 0;
/* boolean useForAutocomplete (in ACString aIdentityKey); */
NS_SCRIPTABLE NS_IMETHOD UseForAutocomplete(const nsACString & aIdentityKey, bool *_retval NS_OUTPARAM) = 0;
/* readonly attribute boolean supportsMailingLists; */
NS_SCRIPTABLE NS_IMETHOD GetSupportsMailingLists(bool *aSupportsMailingLists) = 0;
/* attribute nsIMutableArray addressLists; */
NS_SCRIPTABLE NS_IMETHOD GetAddressLists(nsIMutableArray * *aAddressLists) = 0;
NS_SCRIPTABLE NS_IMETHOD SetAddressLists(nsIMutableArray *aAddressLists) = 0;
/* nsIAbDirectory addMailList (in nsIAbDirectory list); */
NS_SCRIPTABLE NS_IMETHOD AddMailList(nsIAbDirectory *list, nsIAbDirectory * *_retval NS_OUTPARAM) = 0;
/* attribute AString listNickName; */
NS_SCRIPTABLE NS_IMETHOD GetListNickName(nsAString & aListNickName) = 0;
NS_SCRIPTABLE NS_IMETHOD SetListNickName(const nsAString & aListNickName) = 0;
/* attribute AString description; */
NS_SCRIPTABLE NS_IMETHOD GetDescription(nsAString & aDescription) = 0;
NS_SCRIPTABLE NS_IMETHOD SetDescription(const nsAString & aDescription) = 0;
/* void editMailListToDatabase (in nsIAbCard listCard); */
NS_SCRIPTABLE NS_IMETHOD EditMailListToDatabase(nsIAbCard *listCard) = 0;
/* void copyMailList (in nsIAbDirectory srcList); */
NS_SCRIPTABLE NS_IMETHOD CopyMailList(nsIAbDirectory *srcList) = 0;
/* ACString createNewDirectory (in AString aDirName, in ACString aURI, in unsigned long aType, in ACString aPrefName); */
NS_SCRIPTABLE NS_IMETHOD CreateNewDirectory(const nsAString & aDirName, const nsACString & aURI, PRUint32 aType, const nsACString & aPrefName, nsACString & _retval NS_OUTPARAM) = 0;
/* void createDirectoryByURI (in AString displayName, in ACString aURI); */
NS_SCRIPTABLE NS_IMETHOD CreateDirectoryByURI(const nsAString & displayName, const nsACString & aURI) = 0;
/* attribute ACString dirPrefId; */
NS_SCRIPTABLE NS_IMETHOD GetDirPrefId(nsACString & aDirPrefId) = 0;
NS_SCRIPTABLE NS_IMETHOD SetDirPrefId(const nsACString & aDirPrefId) = 0;
/* long getIntValue (in string aName, in long aDefaultValue); */
NS_SCRIPTABLE NS_IMETHOD GetIntValue(const char * aName, PRInt32 aDefaultValue, PRInt32 *_retval NS_OUTPARAM) = 0;
/* boolean getBoolValue (in string aName, in boolean aDefaultValue); */
NS_SCRIPTABLE NS_IMETHOD GetBoolValue(const char * aName, bool aDefaultValue, bool *_retval NS_OUTPARAM) = 0;
/* ACString getStringValue (in string aName, in ACString aDefaultValue); */
NS_SCRIPTABLE NS_IMETHOD GetStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval NS_OUTPARAM) = 0;
/* AUTF8String getLocalizedStringValue (in string aName, in AUTF8String aDefaultValue); */
NS_SCRIPTABLE NS_IMETHOD GetLocalizedStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval NS_OUTPARAM) = 0;
/* void setIntValue (in string aName, in long aValue); */
NS_SCRIPTABLE NS_IMETHOD SetIntValue(const char * aName, PRInt32 aValue) = 0;
/* void setBoolValue (in string aName, in boolean aValue); */
NS_SCRIPTABLE NS_IMETHOD SetBoolValue(const char * aName, bool aValue) = 0;
/* void setStringValue (in string aName, in ACString aValue); */
NS_SCRIPTABLE NS_IMETHOD SetStringValue(const char * aName, const nsACString & aValue) = 0;
/* void setLocalizedStringValue (in string aName, in AUTF8String aValue); */
NS_SCRIPTABLE NS_IMETHOD SetLocalizedStringValue(const char * aName, const nsACString & aValue) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAbDirectory, NS_IABDIRECTORY_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIABDIRECTORY \
NS_SCRIPTABLE NS_IMETHOD GetPropertiesChromeURI(nsACString & aPropertiesChromeURI); \
NS_SCRIPTABLE NS_IMETHOD GetDirName(nsAString & aDirName); \
NS_SCRIPTABLE NS_IMETHOD SetDirName(const nsAString & aDirName); \
NS_SCRIPTABLE NS_IMETHOD GetDirType(PRInt32 *aDirType); \
NS_SCRIPTABLE NS_IMETHOD GetFileName(nsACString & aFileName); \
NS_SCRIPTABLE NS_IMETHOD GetURI(nsACString & aURI); \
NS_SCRIPTABLE NS_IMETHOD GetPosition(PRInt32 *aPosition); \
NS_SCRIPTABLE NS_IMETHOD GetLastModifiedDate(PRUint32 *aLastModifiedDate); \
NS_SCRIPTABLE NS_IMETHOD SetLastModifiedDate(PRUint32 aLastModifiedDate); \
NS_SCRIPTABLE NS_IMETHOD GetIsMailList(bool *aIsMailList); \
NS_SCRIPTABLE NS_IMETHOD SetIsMailList(bool aIsMailList); \
NS_SCRIPTABLE NS_IMETHOD GetChildNodes(nsISimpleEnumerator * *aChildNodes); \
NS_SCRIPTABLE NS_IMETHOD GetChildCards(nsISimpleEnumerator * *aChildCards); \
NS_SCRIPTABLE NS_IMETHOD GetIsQuery(bool *aIsQuery); \
NS_SCRIPTABLE NS_IMETHOD Init(const char * aURI); \
NS_SCRIPTABLE NS_IMETHOD DeleteDirectory(nsIAbDirectory *directory); \
NS_SCRIPTABLE NS_IMETHOD HasCard(nsIAbCard *cards, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD HasDirectory(nsIAbDirectory *dir, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD AddCard(nsIAbCard *card, nsIAbCard * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD ModifyCard(nsIAbCard *modifiedCard); \
NS_SCRIPTABLE NS_IMETHOD DeleteCards(nsIArray *aCards); \
NS_SCRIPTABLE NS_IMETHOD DropCard(nsIAbCard *card, bool needToCopyCard); \
NS_SCRIPTABLE NS_IMETHOD UseForAutocomplete(const nsACString & aIdentityKey, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetSupportsMailingLists(bool *aSupportsMailingLists); \
NS_SCRIPTABLE NS_IMETHOD GetAddressLists(nsIMutableArray * *aAddressLists); \
NS_SCRIPTABLE NS_IMETHOD SetAddressLists(nsIMutableArray *aAddressLists); \
NS_SCRIPTABLE NS_IMETHOD AddMailList(nsIAbDirectory *list, nsIAbDirectory * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetListNickName(nsAString & aListNickName); \
NS_SCRIPTABLE NS_IMETHOD SetListNickName(const nsAString & aListNickName); \
NS_SCRIPTABLE NS_IMETHOD GetDescription(nsAString & aDescription); \
NS_SCRIPTABLE NS_IMETHOD SetDescription(const nsAString & aDescription); \
NS_SCRIPTABLE NS_IMETHOD EditMailListToDatabase(nsIAbCard *listCard); \
NS_SCRIPTABLE NS_IMETHOD CopyMailList(nsIAbDirectory *srcList); \
NS_SCRIPTABLE NS_IMETHOD CreateNewDirectory(const nsAString & aDirName, const nsACString & aURI, PRUint32 aType, const nsACString & aPrefName, nsACString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD CreateDirectoryByURI(const nsAString & displayName, const nsACString & aURI); \
NS_SCRIPTABLE NS_IMETHOD GetDirPrefId(nsACString & aDirPrefId); \
NS_SCRIPTABLE NS_IMETHOD SetDirPrefId(const nsACString & aDirPrefId); \
NS_SCRIPTABLE NS_IMETHOD GetIntValue(const char * aName, PRInt32 aDefaultValue, PRInt32 *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetBoolValue(const char * aName, bool aDefaultValue, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetLocalizedStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD SetIntValue(const char * aName, PRInt32 aValue); \
NS_SCRIPTABLE NS_IMETHOD SetBoolValue(const char * aName, bool aValue); \
NS_SCRIPTABLE NS_IMETHOD SetStringValue(const char * aName, const nsACString & aValue); \
NS_SCRIPTABLE NS_IMETHOD SetLocalizedStringValue(const char * aName, const nsACString & aValue);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIABDIRECTORY(_to) \
NS_SCRIPTABLE NS_IMETHOD GetPropertiesChromeURI(nsACString & aPropertiesChromeURI) { return _to GetPropertiesChromeURI(aPropertiesChromeURI); } \
NS_SCRIPTABLE NS_IMETHOD GetDirName(nsAString & aDirName) { return _to GetDirName(aDirName); } \
NS_SCRIPTABLE NS_IMETHOD SetDirName(const nsAString & aDirName) { return _to SetDirName(aDirName); } \
NS_SCRIPTABLE NS_IMETHOD GetDirType(PRInt32 *aDirType) { return _to GetDirType(aDirType); } \
NS_SCRIPTABLE NS_IMETHOD GetFileName(nsACString & aFileName) { return _to GetFileName(aFileName); } \
NS_SCRIPTABLE NS_IMETHOD GetURI(nsACString & aURI) { return _to GetURI(aURI); } \
NS_SCRIPTABLE NS_IMETHOD GetPosition(PRInt32 *aPosition) { return _to GetPosition(aPosition); } \
NS_SCRIPTABLE NS_IMETHOD GetLastModifiedDate(PRUint32 *aLastModifiedDate) { return _to GetLastModifiedDate(aLastModifiedDate); } \
NS_SCRIPTABLE NS_IMETHOD SetLastModifiedDate(PRUint32 aLastModifiedDate) { return _to SetLastModifiedDate(aLastModifiedDate); } \
NS_SCRIPTABLE NS_IMETHOD GetIsMailList(bool *aIsMailList) { return _to GetIsMailList(aIsMailList); } \
NS_SCRIPTABLE NS_IMETHOD SetIsMailList(bool aIsMailList) { return _to SetIsMailList(aIsMailList); } \
NS_SCRIPTABLE NS_IMETHOD GetChildNodes(nsISimpleEnumerator * *aChildNodes) { return _to GetChildNodes(aChildNodes); } \
NS_SCRIPTABLE NS_IMETHOD GetChildCards(nsISimpleEnumerator * *aChildCards) { return _to GetChildCards(aChildCards); } \
NS_SCRIPTABLE NS_IMETHOD GetIsQuery(bool *aIsQuery) { return _to GetIsQuery(aIsQuery); } \
NS_SCRIPTABLE NS_IMETHOD Init(const char * aURI) { return _to Init(aURI); } \
NS_SCRIPTABLE NS_IMETHOD DeleteDirectory(nsIAbDirectory *directory) { return _to DeleteDirectory(directory); } \
NS_SCRIPTABLE NS_IMETHOD HasCard(nsIAbCard *cards, bool *_retval NS_OUTPARAM) { return _to HasCard(cards, _retval); } \
NS_SCRIPTABLE NS_IMETHOD HasDirectory(nsIAbDirectory *dir, bool *_retval NS_OUTPARAM) { return _to HasDirectory(dir, _retval); } \
NS_SCRIPTABLE NS_IMETHOD AddCard(nsIAbCard *card, nsIAbCard * *_retval NS_OUTPARAM) { return _to AddCard(card, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ModifyCard(nsIAbCard *modifiedCard) { return _to ModifyCard(modifiedCard); } \
NS_SCRIPTABLE NS_IMETHOD DeleteCards(nsIArray *aCards) { return _to DeleteCards(aCards); } \
NS_SCRIPTABLE NS_IMETHOD DropCard(nsIAbCard *card, bool needToCopyCard) { return _to DropCard(card, needToCopyCard); } \
NS_SCRIPTABLE NS_IMETHOD UseForAutocomplete(const nsACString & aIdentityKey, bool *_retval NS_OUTPARAM) { return _to UseForAutocomplete(aIdentityKey, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetSupportsMailingLists(bool *aSupportsMailingLists) { return _to GetSupportsMailingLists(aSupportsMailingLists); } \
NS_SCRIPTABLE NS_IMETHOD GetAddressLists(nsIMutableArray * *aAddressLists) { return _to GetAddressLists(aAddressLists); } \
NS_SCRIPTABLE NS_IMETHOD SetAddressLists(nsIMutableArray *aAddressLists) { return _to SetAddressLists(aAddressLists); } \
NS_SCRIPTABLE NS_IMETHOD AddMailList(nsIAbDirectory *list, nsIAbDirectory * *_retval NS_OUTPARAM) { return _to AddMailList(list, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetListNickName(nsAString & aListNickName) { return _to GetListNickName(aListNickName); } \
NS_SCRIPTABLE NS_IMETHOD SetListNickName(const nsAString & aListNickName) { return _to SetListNickName(aListNickName); } \
NS_SCRIPTABLE NS_IMETHOD GetDescription(nsAString & aDescription) { return _to GetDescription(aDescription); } \
NS_SCRIPTABLE NS_IMETHOD SetDescription(const nsAString & aDescription) { return _to SetDescription(aDescription); } \
NS_SCRIPTABLE NS_IMETHOD EditMailListToDatabase(nsIAbCard *listCard) { return _to EditMailListToDatabase(listCard); } \
NS_SCRIPTABLE NS_IMETHOD CopyMailList(nsIAbDirectory *srcList) { return _to CopyMailList(srcList); } \
NS_SCRIPTABLE NS_IMETHOD CreateNewDirectory(const nsAString & aDirName, const nsACString & aURI, PRUint32 aType, const nsACString & aPrefName, nsACString & _retval NS_OUTPARAM) { return _to CreateNewDirectory(aDirName, aURI, aType, aPrefName, _retval); } \
NS_SCRIPTABLE NS_IMETHOD CreateDirectoryByURI(const nsAString & displayName, const nsACString & aURI) { return _to CreateDirectoryByURI(displayName, aURI); } \
NS_SCRIPTABLE NS_IMETHOD GetDirPrefId(nsACString & aDirPrefId) { return _to GetDirPrefId(aDirPrefId); } \
NS_SCRIPTABLE NS_IMETHOD SetDirPrefId(const nsACString & aDirPrefId) { return _to SetDirPrefId(aDirPrefId); } \
NS_SCRIPTABLE NS_IMETHOD GetIntValue(const char * aName, PRInt32 aDefaultValue, PRInt32 *_retval NS_OUTPARAM) { return _to GetIntValue(aName, aDefaultValue, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetBoolValue(const char * aName, bool aDefaultValue, bool *_retval NS_OUTPARAM) { return _to GetBoolValue(aName, aDefaultValue, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval NS_OUTPARAM) { return _to GetStringValue(aName, aDefaultValue, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetLocalizedStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval NS_OUTPARAM) { return _to GetLocalizedStringValue(aName, aDefaultValue, _retval); } \
NS_SCRIPTABLE NS_IMETHOD SetIntValue(const char * aName, PRInt32 aValue) { return _to SetIntValue(aName, aValue); } \
NS_SCRIPTABLE NS_IMETHOD SetBoolValue(const char * aName, bool aValue) { return _to SetBoolValue(aName, aValue); } \
NS_SCRIPTABLE NS_IMETHOD SetStringValue(const char * aName, const nsACString & aValue) { return _to SetStringValue(aName, aValue); } \
NS_SCRIPTABLE NS_IMETHOD SetLocalizedStringValue(const char * aName, const nsACString & aValue) { return _to SetLocalizedStringValue(aName, aValue); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIABDIRECTORY(_to) \
NS_SCRIPTABLE NS_IMETHOD GetPropertiesChromeURI(nsACString & aPropertiesChromeURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertiesChromeURI(aPropertiesChromeURI); } \
NS_SCRIPTABLE NS_IMETHOD GetDirName(nsAString & aDirName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirName(aDirName); } \
NS_SCRIPTABLE NS_IMETHOD SetDirName(const nsAString & aDirName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDirName(aDirName); } \
NS_SCRIPTABLE NS_IMETHOD GetDirType(PRInt32 *aDirType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirType(aDirType); } \
NS_SCRIPTABLE NS_IMETHOD GetFileName(nsACString & aFileName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileName(aFileName); } \
NS_SCRIPTABLE NS_IMETHOD GetURI(nsACString & aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
NS_SCRIPTABLE NS_IMETHOD GetPosition(PRInt32 *aPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPosition(aPosition); } \
NS_SCRIPTABLE NS_IMETHOD GetLastModifiedDate(PRUint32 *aLastModifiedDate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModifiedDate(aLastModifiedDate); } \
NS_SCRIPTABLE NS_IMETHOD SetLastModifiedDate(PRUint32 aLastModifiedDate) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLastModifiedDate(aLastModifiedDate); } \
NS_SCRIPTABLE NS_IMETHOD GetIsMailList(bool *aIsMailList) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMailList(aIsMailList); } \
NS_SCRIPTABLE NS_IMETHOD SetIsMailList(bool aIsMailList) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsMailList(aIsMailList); } \
NS_SCRIPTABLE NS_IMETHOD GetChildNodes(nsISimpleEnumerator * *aChildNodes) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildNodes(aChildNodes); } \
NS_SCRIPTABLE NS_IMETHOD GetChildCards(nsISimpleEnumerator * *aChildCards) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildCards(aChildCards); } \
NS_SCRIPTABLE NS_IMETHOD GetIsQuery(bool *aIsQuery) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsQuery(aIsQuery); } \
NS_SCRIPTABLE NS_IMETHOD Init(const char * aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aURI); } \
NS_SCRIPTABLE NS_IMETHOD DeleteDirectory(nsIAbDirectory *directory) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteDirectory(directory); } \
NS_SCRIPTABLE NS_IMETHOD HasCard(nsIAbCard *cards, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasCard(cards, _retval); } \
NS_SCRIPTABLE NS_IMETHOD HasDirectory(nsIAbDirectory *dir, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasDirectory(dir, _retval); } \
NS_SCRIPTABLE NS_IMETHOD AddCard(nsIAbCard *card, nsIAbCard * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCard(card, _retval); } \
NS_SCRIPTABLE NS_IMETHOD ModifyCard(nsIAbCard *modifiedCard) { return !_to ? NS_ERROR_NULL_POINTER : _to->ModifyCard(modifiedCard); } \
NS_SCRIPTABLE NS_IMETHOD DeleteCards(nsIArray *aCards) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCards(aCards); } \
NS_SCRIPTABLE NS_IMETHOD DropCard(nsIAbCard *card, bool needToCopyCard) { return !_to ? NS_ERROR_NULL_POINTER : _to->DropCard(card, needToCopyCard); } \
NS_SCRIPTABLE NS_IMETHOD UseForAutocomplete(const nsACString & aIdentityKey, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->UseForAutocomplete(aIdentityKey, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetSupportsMailingLists(bool *aSupportsMailingLists) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportsMailingLists(aSupportsMailingLists); } \
NS_SCRIPTABLE NS_IMETHOD GetAddressLists(nsIMutableArray * *aAddressLists) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddressLists(aAddressLists); } \
NS_SCRIPTABLE NS_IMETHOD SetAddressLists(nsIMutableArray *aAddressLists) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAddressLists(aAddressLists); } \
NS_SCRIPTABLE NS_IMETHOD AddMailList(nsIAbDirectory *list, nsIAbDirectory * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddMailList(list, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetListNickName(nsAString & aListNickName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListNickName(aListNickName); } \
NS_SCRIPTABLE NS_IMETHOD SetListNickName(const nsAString & aListNickName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListNickName(aListNickName); } \
NS_SCRIPTABLE NS_IMETHOD GetDescription(nsAString & aDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
NS_SCRIPTABLE NS_IMETHOD SetDescription(const nsAString & aDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDescription(aDescription); } \
NS_SCRIPTABLE NS_IMETHOD EditMailListToDatabase(nsIAbCard *listCard) { return !_to ? NS_ERROR_NULL_POINTER : _to->EditMailListToDatabase(listCard); } \
NS_SCRIPTABLE NS_IMETHOD CopyMailList(nsIAbDirectory *srcList) { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyMailList(srcList); } \
NS_SCRIPTABLE NS_IMETHOD CreateNewDirectory(const nsAString & aDirName, const nsACString & aURI, PRUint32 aType, const nsACString & aPrefName, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateNewDirectory(aDirName, aURI, aType, aPrefName, _retval); } \
NS_SCRIPTABLE NS_IMETHOD CreateDirectoryByURI(const nsAString & displayName, const nsACString & aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateDirectoryByURI(displayName, aURI); } \
NS_SCRIPTABLE NS_IMETHOD GetDirPrefId(nsACString & aDirPrefId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirPrefId(aDirPrefId); } \
NS_SCRIPTABLE NS_IMETHOD SetDirPrefId(const nsACString & aDirPrefId) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDirPrefId(aDirPrefId); } \
NS_SCRIPTABLE NS_IMETHOD GetIntValue(const char * aName, PRInt32 aDefaultValue, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIntValue(aName, aDefaultValue, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetBoolValue(const char * aName, bool aDefaultValue, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoolValue(aName, aDefaultValue, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringValue(aName, aDefaultValue, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetLocalizedStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalizedStringValue(aName, aDefaultValue, _retval); } \
NS_SCRIPTABLE NS_IMETHOD SetIntValue(const char * aName, PRInt32 aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIntValue(aName, aValue); } \
NS_SCRIPTABLE NS_IMETHOD SetBoolValue(const char * aName, bool aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBoolValue(aName, aValue); } \
NS_SCRIPTABLE NS_IMETHOD SetStringValue(const char * aName, const nsACString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringValue(aName, aValue); } \
NS_SCRIPTABLE NS_IMETHOD SetLocalizedStringValue(const char * aName, const nsACString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLocalizedStringValue(aName, aValue); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsAbDirectory : public nsIAbDirectory
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIABDIRECTORY
nsAbDirectory();
private:
~nsAbDirectory();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsAbDirectory, nsIAbDirectory)
nsAbDirectory::nsAbDirectory()
{
/* member initializers and constructor code */
}
nsAbDirectory::~nsAbDirectory()
{
/* destructor code */
}
/* readonly attribute ACString propertiesChromeURI; */
NS_IMETHODIMP nsAbDirectory::GetPropertiesChromeURI(nsACString & aPropertiesChromeURI)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute AString dirName; */
NS_IMETHODIMP nsAbDirectory::GetDirName(nsAString & aDirName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbDirectory::SetDirName(const nsAString & aDirName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long dirType; */
NS_IMETHODIMP nsAbDirectory::GetDirType(PRInt32 *aDirType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute ACString fileName; */
NS_IMETHODIMP nsAbDirectory::GetFileName(nsACString & aFileName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute ACString URI; */
NS_IMETHODIMP nsAbDirectory::GetURI(nsACString & aURI)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long position; */
NS_IMETHODIMP nsAbDirectory::GetPosition(PRInt32 *aPosition)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long lastModifiedDate; */
NS_IMETHODIMP nsAbDirectory::GetLastModifiedDate(PRUint32 *aLastModifiedDate)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbDirectory::SetLastModifiedDate(PRUint32 aLastModifiedDate)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean isMailList; */
NS_IMETHODIMP nsAbDirectory::GetIsMailList(bool *aIsMailList)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbDirectory::SetIsMailList(bool aIsMailList)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsISimpleEnumerator childNodes; */
NS_IMETHODIMP nsAbDirectory::GetChildNodes(nsISimpleEnumerator * *aChildNodes)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsISimpleEnumerator childCards; */
NS_IMETHODIMP nsAbDirectory::GetChildCards(nsISimpleEnumerator * *aChildCards)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean isQuery; */
NS_IMETHODIMP nsAbDirectory::GetIsQuery(bool *aIsQuery)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void init (in string aURI); */
NS_IMETHODIMP nsAbDirectory::Init(const char * aURI)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void deleteDirectory (in nsIAbDirectory directory); */
NS_IMETHODIMP nsAbDirectory::DeleteDirectory(nsIAbDirectory *directory)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean hasCard (in nsIAbCard cards); */
NS_IMETHODIMP nsAbDirectory::HasCard(nsIAbCard *cards, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean hasDirectory (in nsIAbDirectory dir); */
NS_IMETHODIMP nsAbDirectory::HasDirectory(nsIAbDirectory *dir, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAbCard addCard (in nsIAbCard card); */
NS_IMETHODIMP nsAbDirectory::AddCard(nsIAbCard *card, nsIAbCard * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void modifyCard (in nsIAbCard modifiedCard); */
NS_IMETHODIMP nsAbDirectory::ModifyCard(nsIAbCard *modifiedCard)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void deleteCards (in nsIArray aCards); */
NS_IMETHODIMP nsAbDirectory::DeleteCards(nsIArray *aCards)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void dropCard (in nsIAbCard card, in boolean needToCopyCard); */
NS_IMETHODIMP nsAbDirectory::DropCard(nsIAbCard *card, bool needToCopyCard)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean useForAutocomplete (in ACString aIdentityKey); */
NS_IMETHODIMP nsAbDirectory::UseForAutocomplete(const nsACString & aIdentityKey, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean supportsMailingLists; */
NS_IMETHODIMP nsAbDirectory::GetSupportsMailingLists(bool *aSupportsMailingLists)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIMutableArray addressLists; */
NS_IMETHODIMP nsAbDirectory::GetAddressLists(nsIMutableArray * *aAddressLists)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbDirectory::SetAddressLists(nsIMutableArray *aAddressLists)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAbDirectory addMailList (in nsIAbDirectory list); */
NS_IMETHODIMP nsAbDirectory::AddMailList(nsIAbDirectory *list, nsIAbDirectory * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute AString listNickName; */
NS_IMETHODIMP nsAbDirectory::GetListNickName(nsAString & aListNickName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbDirectory::SetListNickName(const nsAString & aListNickName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute AString description; */
NS_IMETHODIMP nsAbDirectory::GetDescription(nsAString & aDescription)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbDirectory::SetDescription(const nsAString & aDescription)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void editMailListToDatabase (in nsIAbCard listCard); */
NS_IMETHODIMP nsAbDirectory::EditMailListToDatabase(nsIAbCard *listCard)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void copyMailList (in nsIAbDirectory srcList); */
NS_IMETHODIMP nsAbDirectory::CopyMailList(nsIAbDirectory *srcList)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* ACString createNewDirectory (in AString aDirName, in ACString aURI, in unsigned long aType, in ACString aPrefName); */
NS_IMETHODIMP nsAbDirectory::CreateNewDirectory(const nsAString & aDirName, const nsACString & aURI, PRUint32 aType, const nsACString & aPrefName, nsACString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void createDirectoryByURI (in AString displayName, in ACString aURI); */
NS_IMETHODIMP nsAbDirectory::CreateDirectoryByURI(const nsAString & displayName, const nsACString & aURI)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute ACString dirPrefId; */
NS_IMETHODIMP nsAbDirectory::GetDirPrefId(nsACString & aDirPrefId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbDirectory::SetDirPrefId(const nsACString & aDirPrefId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long getIntValue (in string aName, in long aDefaultValue); */
NS_IMETHODIMP nsAbDirectory::GetIntValue(const char * aName, PRInt32 aDefaultValue, PRInt32 *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean getBoolValue (in string aName, in boolean aDefaultValue); */
NS_IMETHODIMP nsAbDirectory::GetBoolValue(const char * aName, bool aDefaultValue, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* ACString getStringValue (in string aName, in ACString aDefaultValue); */
NS_IMETHODIMP nsAbDirectory::GetStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AUTF8String getLocalizedStringValue (in string aName, in AUTF8String aDefaultValue); */
NS_IMETHODIMP nsAbDirectory::GetLocalizedStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setIntValue (in string aName, in long aValue); */
NS_IMETHODIMP nsAbDirectory::SetIntValue(const char * aName, PRInt32 aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setBoolValue (in string aName, in boolean aValue); */
NS_IMETHODIMP nsAbDirectory::SetBoolValue(const char * aName, bool aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setStringValue (in string aName, in ACString aValue); */
NS_IMETHODIMP nsAbDirectory::SetStringValue(const char * aName, const nsACString & aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setLocalizedStringValue (in string aName, in AUTF8String aValue); */
NS_IMETHODIMP nsAbDirectory::SetLocalizedStringValue(const char * aName, const nsACString & aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIAbDirectory_h__ */
|