/usr/include/thunderbird/nsIAbDirectory.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
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 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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 nsIAbDirectory : public nsIAbCollection {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABDIRECTORY_IID)
/* readonly attribute ACString propertiesChromeURI; */
NS_IMETHOD GetPropertiesChromeURI(nsACString & aPropertiesChromeURI) = 0;
/* attribute AString dirName; */
NS_IMETHOD GetDirName(nsAString & aDirName) = 0;
NS_IMETHOD SetDirName(const nsAString & aDirName) = 0;
/* readonly attribute long dirType; */
NS_IMETHOD GetDirType(int32_t *aDirType) = 0;
/* readonly attribute ACString fileName; */
NS_IMETHOD GetFileName(nsACString & aFileName) = 0;
/* readonly attribute ACString URI; */
NS_IMETHOD GetURI(nsACString & aURI) = 0;
/* readonly attribute long position; */
NS_IMETHOD GetPosition(int32_t *aPosition) = 0;
/* attribute unsigned long lastModifiedDate; */
NS_IMETHOD GetLastModifiedDate(uint32_t *aLastModifiedDate) = 0;
NS_IMETHOD SetLastModifiedDate(uint32_t aLastModifiedDate) = 0;
/* attribute boolean isMailList; */
NS_IMETHOD GetIsMailList(bool *aIsMailList) = 0;
NS_IMETHOD SetIsMailList(bool aIsMailList) = 0;
/* readonly attribute nsISimpleEnumerator childNodes; */
NS_IMETHOD GetChildNodes(nsISimpleEnumerator * *aChildNodes) = 0;
/* readonly attribute nsISimpleEnumerator childCards; */
NS_IMETHOD GetChildCards(nsISimpleEnumerator * *aChildCards) = 0;
/* readonly attribute boolean isQuery; */
NS_IMETHOD GetIsQuery(bool *aIsQuery) = 0;
/* void init (in string aURI); */
NS_IMETHOD Init(const char * aURI) = 0;
/* void deleteDirectory (in nsIAbDirectory directory); */
NS_IMETHOD DeleteDirectory(nsIAbDirectory *directory) = 0;
/* boolean hasCard (in nsIAbCard cards); */
NS_IMETHOD HasCard(nsIAbCard *cards, bool *_retval) = 0;
/* boolean hasDirectory (in nsIAbDirectory dir); */
NS_IMETHOD HasDirectory(nsIAbDirectory *dir, bool *_retval) = 0;
/* boolean hasMailListWithName (in wstring aName); */
NS_IMETHOD HasMailListWithName(const char16_t * aName, bool *_retval) = 0;
/* nsIAbCard addCard (in nsIAbCard card); */
NS_IMETHOD AddCard(nsIAbCard *card, nsIAbCard * *_retval) = 0;
/* void modifyCard (in nsIAbCard modifiedCard); */
NS_IMETHOD ModifyCard(nsIAbCard *modifiedCard) = 0;
/* void deleteCards (in nsIArray aCards); */
NS_IMETHOD DeleteCards(nsIArray *aCards) = 0;
/* void dropCard (in nsIAbCard card, in boolean needToCopyCard); */
NS_IMETHOD DropCard(nsIAbCard *card, bool needToCopyCard) = 0;
/* boolean useForAutocomplete (in ACString aIdentityKey); */
NS_IMETHOD UseForAutocomplete(const nsACString & aIdentityKey, bool *_retval) = 0;
/* readonly attribute boolean supportsMailingLists; */
NS_IMETHOD GetSupportsMailingLists(bool *aSupportsMailingLists) = 0;
/* attribute nsIMutableArray addressLists; */
NS_IMETHOD GetAddressLists(nsIMutableArray * *aAddressLists) = 0;
NS_IMETHOD SetAddressLists(nsIMutableArray *aAddressLists) = 0;
/* nsIAbDirectory addMailList (in nsIAbDirectory list); */
NS_IMETHOD AddMailList(nsIAbDirectory *list, nsIAbDirectory * *_retval) = 0;
/* attribute AString listNickName; */
NS_IMETHOD GetListNickName(nsAString & aListNickName) = 0;
NS_IMETHOD SetListNickName(const nsAString & aListNickName) = 0;
/* attribute AString description; */
NS_IMETHOD GetDescription(nsAString & aDescription) = 0;
NS_IMETHOD SetDescription(const nsAString & aDescription) = 0;
/* void editMailListToDatabase (in nsIAbCard listCard); */
NS_IMETHOD EditMailListToDatabase(nsIAbCard *listCard) = 0;
/* void copyMailList (in nsIAbDirectory srcList); */
NS_IMETHOD CopyMailList(nsIAbDirectory *srcList) = 0;
/* ACString createNewDirectory (in AString aDirName, in ACString aURI, in unsigned long aType, in ACString aPrefName); */
NS_IMETHOD CreateNewDirectory(const nsAString & aDirName, const nsACString & aURI, uint32_t aType, const nsACString & aPrefName, nsACString & _retval) = 0;
/* void createDirectoryByURI (in AString displayName, in ACString aURI); */
NS_IMETHOD CreateDirectoryByURI(const nsAString & displayName, const nsACString & aURI) = 0;
/* attribute ACString dirPrefId; */
NS_IMETHOD GetDirPrefId(nsACString & aDirPrefId) = 0;
NS_IMETHOD SetDirPrefId(const nsACString & aDirPrefId) = 0;
/* long getIntValue (in string aName, in long aDefaultValue); */
NS_IMETHOD GetIntValue(const char * aName, int32_t aDefaultValue, int32_t *_retval) = 0;
/* boolean getBoolValue (in string aName, in boolean aDefaultValue); */
NS_IMETHOD GetBoolValue(const char * aName, bool aDefaultValue, bool *_retval) = 0;
/* ACString getStringValue (in string aName, in ACString aDefaultValue); */
NS_IMETHOD GetStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval) = 0;
/* AUTF8String getLocalizedStringValue (in string aName, in AUTF8String aDefaultValue); */
NS_IMETHOD GetLocalizedStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval) = 0;
/* void setIntValue (in string aName, in long aValue); */
NS_IMETHOD SetIntValue(const char * aName, int32_t aValue) = 0;
/* void setBoolValue (in string aName, in boolean aValue); */
NS_IMETHOD SetBoolValue(const char * aName, bool aValue) = 0;
/* void setStringValue (in string aName, in ACString aValue); */
NS_IMETHOD SetStringValue(const char * aName, const nsACString & aValue) = 0;
/* void setLocalizedStringValue (in string aName, in AUTF8String aValue); */
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_IMETHOD GetPropertiesChromeURI(nsACString & aPropertiesChromeURI) override; \
NS_IMETHOD GetDirName(nsAString & aDirName) override; \
NS_IMETHOD SetDirName(const nsAString & aDirName) override; \
NS_IMETHOD GetDirType(int32_t *aDirType) override; \
NS_IMETHOD GetFileName(nsACString & aFileName) override; \
NS_IMETHOD GetURI(nsACString & aURI) override; \
NS_IMETHOD GetPosition(int32_t *aPosition) override; \
NS_IMETHOD GetLastModifiedDate(uint32_t *aLastModifiedDate) override; \
NS_IMETHOD SetLastModifiedDate(uint32_t aLastModifiedDate) override; \
NS_IMETHOD GetIsMailList(bool *aIsMailList) override; \
NS_IMETHOD SetIsMailList(bool aIsMailList) override; \
NS_IMETHOD GetChildNodes(nsISimpleEnumerator * *aChildNodes) override; \
NS_IMETHOD GetChildCards(nsISimpleEnumerator * *aChildCards) override; \
NS_IMETHOD GetIsQuery(bool *aIsQuery) override; \
NS_IMETHOD Init(const char * aURI) override; \
NS_IMETHOD DeleteDirectory(nsIAbDirectory *directory) override; \
NS_IMETHOD HasCard(nsIAbCard *cards, bool *_retval) override; \
NS_IMETHOD HasDirectory(nsIAbDirectory *dir, bool *_retval) override; \
NS_IMETHOD HasMailListWithName(const char16_t * aName, bool *_retval) override; \
NS_IMETHOD AddCard(nsIAbCard *card, nsIAbCard * *_retval) override; \
NS_IMETHOD ModifyCard(nsIAbCard *modifiedCard) override; \
NS_IMETHOD DeleteCards(nsIArray *aCards) override; \
NS_IMETHOD DropCard(nsIAbCard *card, bool needToCopyCard) override; \
NS_IMETHOD UseForAutocomplete(const nsACString & aIdentityKey, bool *_retval) override; \
NS_IMETHOD GetSupportsMailingLists(bool *aSupportsMailingLists) override; \
NS_IMETHOD GetAddressLists(nsIMutableArray * *aAddressLists) override; \
NS_IMETHOD SetAddressLists(nsIMutableArray *aAddressLists) override; \
NS_IMETHOD AddMailList(nsIAbDirectory *list, nsIAbDirectory * *_retval) override; \
NS_IMETHOD GetListNickName(nsAString & aListNickName) override; \
NS_IMETHOD SetListNickName(const nsAString & aListNickName) override; \
NS_IMETHOD GetDescription(nsAString & aDescription) override; \
NS_IMETHOD SetDescription(const nsAString & aDescription) override; \
NS_IMETHOD EditMailListToDatabase(nsIAbCard *listCard) override; \
NS_IMETHOD CopyMailList(nsIAbDirectory *srcList) override; \
NS_IMETHOD CreateNewDirectory(const nsAString & aDirName, const nsACString & aURI, uint32_t aType, const nsACString & aPrefName, nsACString & _retval) override; \
NS_IMETHOD CreateDirectoryByURI(const nsAString & displayName, const nsACString & aURI) override; \
NS_IMETHOD GetDirPrefId(nsACString & aDirPrefId) override; \
NS_IMETHOD SetDirPrefId(const nsACString & aDirPrefId) override; \
NS_IMETHOD GetIntValue(const char * aName, int32_t aDefaultValue, int32_t *_retval) override; \
NS_IMETHOD GetBoolValue(const char * aName, bool aDefaultValue, bool *_retval) override; \
NS_IMETHOD GetStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval) override; \
NS_IMETHOD GetLocalizedStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval) override; \
NS_IMETHOD SetIntValue(const char * aName, int32_t aValue) override; \
NS_IMETHOD SetBoolValue(const char * aName, bool aValue) override; \
NS_IMETHOD SetStringValue(const char * aName, const nsACString & aValue) override; \
NS_IMETHOD SetLocalizedStringValue(const char * aName, const nsACString & aValue) 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_NSIABDIRECTORY \
NS_METHOD GetPropertiesChromeURI(nsACString & aPropertiesChromeURI); \
NS_METHOD GetDirName(nsAString & aDirName); \
NS_METHOD SetDirName(const nsAString & aDirName); \
NS_METHOD GetDirType(int32_t *aDirType); \
NS_METHOD GetFileName(nsACString & aFileName); \
NS_METHOD GetURI(nsACString & aURI); \
NS_METHOD GetPosition(int32_t *aPosition); \
NS_METHOD GetLastModifiedDate(uint32_t *aLastModifiedDate); \
NS_METHOD SetLastModifiedDate(uint32_t aLastModifiedDate); \
NS_METHOD GetIsMailList(bool *aIsMailList); \
NS_METHOD SetIsMailList(bool aIsMailList); \
NS_METHOD GetChildNodes(nsISimpleEnumerator * *aChildNodes); \
NS_METHOD GetChildCards(nsISimpleEnumerator * *aChildCards); \
NS_METHOD GetIsQuery(bool *aIsQuery); \
NS_METHOD Init(const char * aURI); \
NS_METHOD DeleteDirectory(nsIAbDirectory *directory); \
NS_METHOD HasCard(nsIAbCard *cards, bool *_retval); \
NS_METHOD HasDirectory(nsIAbDirectory *dir, bool *_retval); \
NS_METHOD HasMailListWithName(const char16_t * aName, bool *_retval); \
NS_METHOD AddCard(nsIAbCard *card, nsIAbCard * *_retval); \
NS_METHOD ModifyCard(nsIAbCard *modifiedCard); \
NS_METHOD DeleteCards(nsIArray *aCards); \
NS_METHOD DropCard(nsIAbCard *card, bool needToCopyCard); \
NS_METHOD UseForAutocomplete(const nsACString & aIdentityKey, bool *_retval); \
NS_METHOD GetSupportsMailingLists(bool *aSupportsMailingLists); \
NS_METHOD GetAddressLists(nsIMutableArray * *aAddressLists); \
NS_METHOD SetAddressLists(nsIMutableArray *aAddressLists); \
NS_METHOD AddMailList(nsIAbDirectory *list, nsIAbDirectory * *_retval); \
NS_METHOD GetListNickName(nsAString & aListNickName); \
NS_METHOD SetListNickName(const nsAString & aListNickName); \
NS_METHOD GetDescription(nsAString & aDescription); \
NS_METHOD SetDescription(const nsAString & aDescription); \
NS_METHOD EditMailListToDatabase(nsIAbCard *listCard); \
NS_METHOD CopyMailList(nsIAbDirectory *srcList); \
NS_METHOD CreateNewDirectory(const nsAString & aDirName, const nsACString & aURI, uint32_t aType, const nsACString & aPrefName, nsACString & _retval); \
NS_METHOD CreateDirectoryByURI(const nsAString & displayName, const nsACString & aURI); \
NS_METHOD GetDirPrefId(nsACString & aDirPrefId); \
NS_METHOD SetDirPrefId(const nsACString & aDirPrefId); \
NS_METHOD GetIntValue(const char * aName, int32_t aDefaultValue, int32_t *_retval); \
NS_METHOD GetBoolValue(const char * aName, bool aDefaultValue, bool *_retval); \
NS_METHOD GetStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval); \
NS_METHOD GetLocalizedStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval); \
NS_METHOD SetIntValue(const char * aName, int32_t aValue); \
NS_METHOD SetBoolValue(const char * aName, bool aValue); \
NS_METHOD SetStringValue(const char * aName, const nsACString & aValue); \
NS_METHOD 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_IMETHOD GetPropertiesChromeURI(nsACString & aPropertiesChromeURI) override { return _to GetPropertiesChromeURI(aPropertiesChromeURI); } \
NS_IMETHOD GetDirName(nsAString & aDirName) override { return _to GetDirName(aDirName); } \
NS_IMETHOD SetDirName(const nsAString & aDirName) override { return _to SetDirName(aDirName); } \
NS_IMETHOD GetDirType(int32_t *aDirType) override { return _to GetDirType(aDirType); } \
NS_IMETHOD GetFileName(nsACString & aFileName) override { return _to GetFileName(aFileName); } \
NS_IMETHOD GetURI(nsACString & aURI) override { return _to GetURI(aURI); } \
NS_IMETHOD GetPosition(int32_t *aPosition) override { return _to GetPosition(aPosition); } \
NS_IMETHOD GetLastModifiedDate(uint32_t *aLastModifiedDate) override { return _to GetLastModifiedDate(aLastModifiedDate); } \
NS_IMETHOD SetLastModifiedDate(uint32_t aLastModifiedDate) override { return _to SetLastModifiedDate(aLastModifiedDate); } \
NS_IMETHOD GetIsMailList(bool *aIsMailList) override { return _to GetIsMailList(aIsMailList); } \
NS_IMETHOD SetIsMailList(bool aIsMailList) override { return _to SetIsMailList(aIsMailList); } \
NS_IMETHOD GetChildNodes(nsISimpleEnumerator * *aChildNodes) override { return _to GetChildNodes(aChildNodes); } \
NS_IMETHOD GetChildCards(nsISimpleEnumerator * *aChildCards) override { return _to GetChildCards(aChildCards); } \
NS_IMETHOD GetIsQuery(bool *aIsQuery) override { return _to GetIsQuery(aIsQuery); } \
NS_IMETHOD Init(const char * aURI) override { return _to Init(aURI); } \
NS_IMETHOD DeleteDirectory(nsIAbDirectory *directory) override { return _to DeleteDirectory(directory); } \
NS_IMETHOD HasCard(nsIAbCard *cards, bool *_retval) override { return _to HasCard(cards, _retval); } \
NS_IMETHOD HasDirectory(nsIAbDirectory *dir, bool *_retval) override { return _to HasDirectory(dir, _retval); } \
NS_IMETHOD HasMailListWithName(const char16_t * aName, bool *_retval) override { return _to HasMailListWithName(aName, _retval); } \
NS_IMETHOD AddCard(nsIAbCard *card, nsIAbCard * *_retval) override { return _to AddCard(card, _retval); } \
NS_IMETHOD ModifyCard(nsIAbCard *modifiedCard) override { return _to ModifyCard(modifiedCard); } \
NS_IMETHOD DeleteCards(nsIArray *aCards) override { return _to DeleteCards(aCards); } \
NS_IMETHOD DropCard(nsIAbCard *card, bool needToCopyCard) override { return _to DropCard(card, needToCopyCard); } \
NS_IMETHOD UseForAutocomplete(const nsACString & aIdentityKey, bool *_retval) override { return _to UseForAutocomplete(aIdentityKey, _retval); } \
NS_IMETHOD GetSupportsMailingLists(bool *aSupportsMailingLists) override { return _to GetSupportsMailingLists(aSupportsMailingLists); } \
NS_IMETHOD GetAddressLists(nsIMutableArray * *aAddressLists) override { return _to GetAddressLists(aAddressLists); } \
NS_IMETHOD SetAddressLists(nsIMutableArray *aAddressLists) override { return _to SetAddressLists(aAddressLists); } \
NS_IMETHOD AddMailList(nsIAbDirectory *list, nsIAbDirectory * *_retval) override { return _to AddMailList(list, _retval); } \
NS_IMETHOD GetListNickName(nsAString & aListNickName) override { return _to GetListNickName(aListNickName); } \
NS_IMETHOD SetListNickName(const nsAString & aListNickName) override { return _to SetListNickName(aListNickName); } \
NS_IMETHOD GetDescription(nsAString & aDescription) override { return _to GetDescription(aDescription); } \
NS_IMETHOD SetDescription(const nsAString & aDescription) override { return _to SetDescription(aDescription); } \
NS_IMETHOD EditMailListToDatabase(nsIAbCard *listCard) override { return _to EditMailListToDatabase(listCard); } \
NS_IMETHOD CopyMailList(nsIAbDirectory *srcList) override { return _to CopyMailList(srcList); } \
NS_IMETHOD CreateNewDirectory(const nsAString & aDirName, const nsACString & aURI, uint32_t aType, const nsACString & aPrefName, nsACString & _retval) override { return _to CreateNewDirectory(aDirName, aURI, aType, aPrefName, _retval); } \
NS_IMETHOD CreateDirectoryByURI(const nsAString & displayName, const nsACString & aURI) override { return _to CreateDirectoryByURI(displayName, aURI); } \
NS_IMETHOD GetDirPrefId(nsACString & aDirPrefId) override { return _to GetDirPrefId(aDirPrefId); } \
NS_IMETHOD SetDirPrefId(const nsACString & aDirPrefId) override { return _to SetDirPrefId(aDirPrefId); } \
NS_IMETHOD GetIntValue(const char * aName, int32_t aDefaultValue, int32_t *_retval) override { return _to GetIntValue(aName, aDefaultValue, _retval); } \
NS_IMETHOD GetBoolValue(const char * aName, bool aDefaultValue, bool *_retval) override { return _to GetBoolValue(aName, aDefaultValue, _retval); } \
NS_IMETHOD GetStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval) override { return _to GetStringValue(aName, aDefaultValue, _retval); } \
NS_IMETHOD GetLocalizedStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval) override { return _to GetLocalizedStringValue(aName, aDefaultValue, _retval); } \
NS_IMETHOD SetIntValue(const char * aName, int32_t aValue) override { return _to SetIntValue(aName, aValue); } \
NS_IMETHOD SetBoolValue(const char * aName, bool aValue) override { return _to SetBoolValue(aName, aValue); } \
NS_IMETHOD SetStringValue(const char * aName, const nsACString & aValue) override { return _to SetStringValue(aName, aValue); } \
NS_IMETHOD SetLocalizedStringValue(const char * aName, const nsACString & aValue) override { 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_IMETHOD GetPropertiesChromeURI(nsACString & aPropertiesChromeURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertiesChromeURI(aPropertiesChromeURI); } \
NS_IMETHOD GetDirName(nsAString & aDirName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirName(aDirName); } \
NS_IMETHOD SetDirName(const nsAString & aDirName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDirName(aDirName); } \
NS_IMETHOD GetDirType(int32_t *aDirType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirType(aDirType); } \
NS_IMETHOD GetFileName(nsACString & aFileName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileName(aFileName); } \
NS_IMETHOD GetURI(nsACString & aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
NS_IMETHOD GetPosition(int32_t *aPosition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPosition(aPosition); } \
NS_IMETHOD GetLastModifiedDate(uint32_t *aLastModifiedDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModifiedDate(aLastModifiedDate); } \
NS_IMETHOD SetLastModifiedDate(uint32_t aLastModifiedDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLastModifiedDate(aLastModifiedDate); } \
NS_IMETHOD GetIsMailList(bool *aIsMailList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMailList(aIsMailList); } \
NS_IMETHOD SetIsMailList(bool aIsMailList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsMailList(aIsMailList); } \
NS_IMETHOD GetChildNodes(nsISimpleEnumerator * *aChildNodes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildNodes(aChildNodes); } \
NS_IMETHOD GetChildCards(nsISimpleEnumerator * *aChildCards) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildCards(aChildCards); } \
NS_IMETHOD GetIsQuery(bool *aIsQuery) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsQuery(aIsQuery); } \
NS_IMETHOD Init(const char * aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aURI); } \
NS_IMETHOD DeleteDirectory(nsIAbDirectory *directory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteDirectory(directory); } \
NS_IMETHOD HasCard(nsIAbCard *cards, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasCard(cards, _retval); } \
NS_IMETHOD HasDirectory(nsIAbDirectory *dir, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasDirectory(dir, _retval); } \
NS_IMETHOD HasMailListWithName(const char16_t * aName, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasMailListWithName(aName, _retval); } \
NS_IMETHOD AddCard(nsIAbCard *card, nsIAbCard * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCard(card, _retval); } \
NS_IMETHOD ModifyCard(nsIAbCard *modifiedCard) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ModifyCard(modifiedCard); } \
NS_IMETHOD DeleteCards(nsIArray *aCards) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCards(aCards); } \
NS_IMETHOD DropCard(nsIAbCard *card, bool needToCopyCard) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DropCard(card, needToCopyCard); } \
NS_IMETHOD UseForAutocomplete(const nsACString & aIdentityKey, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UseForAutocomplete(aIdentityKey, _retval); } \
NS_IMETHOD GetSupportsMailingLists(bool *aSupportsMailingLists) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportsMailingLists(aSupportsMailingLists); } \
NS_IMETHOD GetAddressLists(nsIMutableArray * *aAddressLists) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddressLists(aAddressLists); } \
NS_IMETHOD SetAddressLists(nsIMutableArray *aAddressLists) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAddressLists(aAddressLists); } \
NS_IMETHOD AddMailList(nsIAbDirectory *list, nsIAbDirectory * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddMailList(list, _retval); } \
NS_IMETHOD GetListNickName(nsAString & aListNickName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListNickName(aListNickName); } \
NS_IMETHOD SetListNickName(const nsAString & aListNickName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListNickName(aListNickName); } \
NS_IMETHOD GetDescription(nsAString & aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
NS_IMETHOD SetDescription(const nsAString & aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDescription(aDescription); } \
NS_IMETHOD EditMailListToDatabase(nsIAbCard *listCard) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EditMailListToDatabase(listCard); } \
NS_IMETHOD CopyMailList(nsIAbDirectory *srcList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyMailList(srcList); } \
NS_IMETHOD CreateNewDirectory(const nsAString & aDirName, const nsACString & aURI, uint32_t aType, const nsACString & aPrefName, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateNewDirectory(aDirName, aURI, aType, aPrefName, _retval); } \
NS_IMETHOD CreateDirectoryByURI(const nsAString & displayName, const nsACString & aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateDirectoryByURI(displayName, aURI); } \
NS_IMETHOD GetDirPrefId(nsACString & aDirPrefId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirPrefId(aDirPrefId); } \
NS_IMETHOD SetDirPrefId(const nsACString & aDirPrefId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDirPrefId(aDirPrefId); } \
NS_IMETHOD GetIntValue(const char * aName, int32_t aDefaultValue, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIntValue(aName, aDefaultValue, _retval); } \
NS_IMETHOD GetBoolValue(const char * aName, bool aDefaultValue, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoolValue(aName, aDefaultValue, _retval); } \
NS_IMETHOD GetStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringValue(aName, aDefaultValue, _retval); } \
NS_IMETHOD GetLocalizedStringValue(const char * aName, const nsACString & aDefaultValue, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalizedStringValue(aName, aDefaultValue, _retval); } \
NS_IMETHOD SetIntValue(const char * aName, int32_t aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIntValue(aName, aValue); } \
NS_IMETHOD SetBoolValue(const char * aName, bool aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBoolValue(aName, aValue); } \
NS_IMETHOD SetStringValue(const char * aName, const nsACString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringValue(aName, aValue); } \
NS_IMETHOD SetLocalizedStringValue(const char * aName, const nsACString & aValue) override { 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_ISUPPORTS(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(int32_t *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(int32_t *aPosition)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long lastModifiedDate; */
NS_IMETHODIMP nsAbDirectory::GetLastModifiedDate(uint32_t *aLastModifiedDate)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsAbDirectory::SetLastModifiedDate(uint32_t 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)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean hasDirectory (in nsIAbDirectory dir); */
NS_IMETHODIMP nsAbDirectory::HasDirectory(nsIAbDirectory *dir, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean hasMailListWithName (in wstring aName); */
NS_IMETHODIMP nsAbDirectory::HasMailListWithName(const char16_t * aName, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAbCard addCard (in nsIAbCard card); */
NS_IMETHODIMP nsAbDirectory::AddCard(nsIAbCard *card, nsIAbCard * *_retval)
{
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)
{
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)
{
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, uint32_t aType, const nsACString & aPrefName, nsACString & _retval)
{
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, int32_t aDefaultValue, int32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean getBoolValue (in string aName, in boolean aDefaultValue); */
NS_IMETHODIMP nsAbDirectory::GetBoolValue(const char * aName, bool aDefaultValue, bool *_retval)
{
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)
{
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)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setIntValue (in string aName, in long aValue); */
NS_IMETHODIMP nsAbDirectory::SetIntValue(const char * aName, int32_t 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__ */
|