/usr/include/thunderbird/imIContactsService.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 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/imIContactsService.idl
*/
#ifndef __gen_imIContactsService_h__
#define __gen_imIContactsService_h__
#ifndef __gen_imIStatusInfo_h__
#include "imIStatusInfo.h"
#endif
#ifndef __gen_imITagsService_h__
#include "imITagsService.h"
#endif
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIObserver_h__
#include "nsIObserver.h"
#endif
#ifndef __gen_nsISimpleEnumerator_h__
#include "nsISimpleEnumerator.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class imIContact; /* forward declaration */
class imIBuddy; /* forward declaration */
class prplIAccountBuddy; /* forward declaration */
class imIAccount; /* forward declaration */
class prplIProtocol; /* forward declaration */
/* starting interface: imIContactsService */
#define IMICONTACTSSERVICE_IID_STR "45ce33d9-d335-4cce-b904-44821987e048"
#define IMICONTACTSSERVICE_IID \
{0x45ce33d9, 0xd335, 0x4cce, \
{ 0xb9, 0x04, 0x44, 0x82, 0x19, 0x87, 0xe0, 0x48 }}
class NS_NO_VTABLE imIContactsService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(IMICONTACTSSERVICE_IID)
/* void initContacts (); */
NS_IMETHOD InitContacts(void) = 0;
/* void unInitContacts (); */
NS_IMETHOD UnInitContacts(void) = 0;
/* imIContact getContactById (in long aId); */
NS_IMETHOD GetContactById(int32_t aId, imIContact * *_retval) = 0;
/* void getContacts ([optional] out unsigned long contactCount, [array, size_is (contactCount), retval] out imIContact contacts); */
NS_IMETHOD GetContacts(uint32_t *contactCount, imIContact * **contacts) = 0;
/* imIBuddy getBuddyById (in long aId); */
NS_IMETHOD GetBuddyById(int32_t aId, imIBuddy * *_retval) = 0;
/* imIBuddy getBuddyByNameAndProtocol (in AUTF8String aNormalizedName, in prplIProtocol aPrpl); */
NS_IMETHOD GetBuddyByNameAndProtocol(const nsACString & aNormalizedName, prplIProtocol *aPrpl, imIBuddy * *_retval) = 0;
/* prplIAccountBuddy getAccountBuddyByNameAndAccount (in AUTF8String aNormalizedName, in imIAccount aAccount); */
NS_IMETHOD GetAccountBuddyByNameAndAccount(const nsACString & aNormalizedName, imIAccount *aAccount, prplIAccountBuddy * *_retval) = 0;
/* void accountBuddyAdded (in prplIAccountBuddy aAccountBuddy); */
NS_IMETHOD AccountBuddyAdded(prplIAccountBuddy *aAccountBuddy) = 0;
/* void accountBuddyRemoved (in prplIAccountBuddy aAccountBuddy); */
NS_IMETHOD AccountBuddyRemoved(prplIAccountBuddy *aAccountBuddy) = 0;
/* void accountBuddyMoved (in prplIAccountBuddy aAccountBuddy, in imITag aOldTag, in imITag aNewTag); */
NS_IMETHOD AccountBuddyMoved(prplIAccountBuddy *aAccountBuddy, imITag *aOldTag, imITag *aNewTag) = 0;
/* void storeAccount (in unsigned long aId, in AUTF8String aUserName, in AUTF8String aPrplId); */
NS_IMETHOD StoreAccount(uint32_t aId, const nsACString & aUserName, const nsACString & aPrplId) = 0;
/* boolean accountIdExists (in unsigned long aId); */
NS_IMETHOD AccountIdExists(uint32_t aId, bool *_retval) = 0;
/* void forgetAccount (in unsigned long aId); */
NS_IMETHOD ForgetAccount(uint32_t aId) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(imIContactsService, IMICONTACTSSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMICONTACTSSERVICE \
NS_IMETHOD InitContacts(void) override; \
NS_IMETHOD UnInitContacts(void) override; \
NS_IMETHOD GetContactById(int32_t aId, imIContact * *_retval) override; \
NS_IMETHOD GetContacts(uint32_t *contactCount, imIContact * **contacts) override; \
NS_IMETHOD GetBuddyById(int32_t aId, imIBuddy * *_retval) override; \
NS_IMETHOD GetBuddyByNameAndProtocol(const nsACString & aNormalizedName, prplIProtocol *aPrpl, imIBuddy * *_retval) override; \
NS_IMETHOD GetAccountBuddyByNameAndAccount(const nsACString & aNormalizedName, imIAccount *aAccount, prplIAccountBuddy * *_retval) override; \
NS_IMETHOD AccountBuddyAdded(prplIAccountBuddy *aAccountBuddy) override; \
NS_IMETHOD AccountBuddyRemoved(prplIAccountBuddy *aAccountBuddy) override; \
NS_IMETHOD AccountBuddyMoved(prplIAccountBuddy *aAccountBuddy, imITag *aOldTag, imITag *aNewTag) override; \
NS_IMETHOD StoreAccount(uint32_t aId, const nsACString & aUserName, const nsACString & aPrplId) override; \
NS_IMETHOD AccountIdExists(uint32_t aId, bool *_retval) override; \
NS_IMETHOD ForgetAccount(uint32_t aId) 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_IMICONTACTSSERVICE \
NS_METHOD InitContacts(void); \
NS_METHOD UnInitContacts(void); \
NS_METHOD GetContactById(int32_t aId, imIContact * *_retval); \
NS_METHOD GetContacts(uint32_t *contactCount, imIContact * **contacts); \
NS_METHOD GetBuddyById(int32_t aId, imIBuddy * *_retval); \
NS_METHOD GetBuddyByNameAndProtocol(const nsACString & aNormalizedName, prplIProtocol *aPrpl, imIBuddy * *_retval); \
NS_METHOD GetAccountBuddyByNameAndAccount(const nsACString & aNormalizedName, imIAccount *aAccount, prplIAccountBuddy * *_retval); \
NS_METHOD AccountBuddyAdded(prplIAccountBuddy *aAccountBuddy); \
NS_METHOD AccountBuddyRemoved(prplIAccountBuddy *aAccountBuddy); \
NS_METHOD AccountBuddyMoved(prplIAccountBuddy *aAccountBuddy, imITag *aOldTag, imITag *aNewTag); \
NS_METHOD StoreAccount(uint32_t aId, const nsACString & aUserName, const nsACString & aPrplId); \
NS_METHOD AccountIdExists(uint32_t aId, bool *_retval); \
NS_METHOD ForgetAccount(uint32_t aId);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMICONTACTSSERVICE(_to) \
NS_IMETHOD InitContacts(void) override { return _to InitContacts(); } \
NS_IMETHOD UnInitContacts(void) override { return _to UnInitContacts(); } \
NS_IMETHOD GetContactById(int32_t aId, imIContact * *_retval) override { return _to GetContactById(aId, _retval); } \
NS_IMETHOD GetContacts(uint32_t *contactCount, imIContact * **contacts) override { return _to GetContacts(contactCount, contacts); } \
NS_IMETHOD GetBuddyById(int32_t aId, imIBuddy * *_retval) override { return _to GetBuddyById(aId, _retval); } \
NS_IMETHOD GetBuddyByNameAndProtocol(const nsACString & aNormalizedName, prplIProtocol *aPrpl, imIBuddy * *_retval) override { return _to GetBuddyByNameAndProtocol(aNormalizedName, aPrpl, _retval); } \
NS_IMETHOD GetAccountBuddyByNameAndAccount(const nsACString & aNormalizedName, imIAccount *aAccount, prplIAccountBuddy * *_retval) override { return _to GetAccountBuddyByNameAndAccount(aNormalizedName, aAccount, _retval); } \
NS_IMETHOD AccountBuddyAdded(prplIAccountBuddy *aAccountBuddy) override { return _to AccountBuddyAdded(aAccountBuddy); } \
NS_IMETHOD AccountBuddyRemoved(prplIAccountBuddy *aAccountBuddy) override { return _to AccountBuddyRemoved(aAccountBuddy); } \
NS_IMETHOD AccountBuddyMoved(prplIAccountBuddy *aAccountBuddy, imITag *aOldTag, imITag *aNewTag) override { return _to AccountBuddyMoved(aAccountBuddy, aOldTag, aNewTag); } \
NS_IMETHOD StoreAccount(uint32_t aId, const nsACString & aUserName, const nsACString & aPrplId) override { return _to StoreAccount(aId, aUserName, aPrplId); } \
NS_IMETHOD AccountIdExists(uint32_t aId, bool *_retval) override { return _to AccountIdExists(aId, _retval); } \
NS_IMETHOD ForgetAccount(uint32_t aId) override { return _to ForgetAccount(aId); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMICONTACTSSERVICE(_to) \
NS_IMETHOD InitContacts(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitContacts(); } \
NS_IMETHOD UnInitContacts(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnInitContacts(); } \
NS_IMETHOD GetContactById(int32_t aId, imIContact * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContactById(aId, _retval); } \
NS_IMETHOD GetContacts(uint32_t *contactCount, imIContact * **contacts) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContacts(contactCount, contacts); } \
NS_IMETHOD GetBuddyById(int32_t aId, imIBuddy * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuddyById(aId, _retval); } \
NS_IMETHOD GetBuddyByNameAndProtocol(const nsACString & aNormalizedName, prplIProtocol *aPrpl, imIBuddy * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuddyByNameAndProtocol(aNormalizedName, aPrpl, _retval); } \
NS_IMETHOD GetAccountBuddyByNameAndAccount(const nsACString & aNormalizedName, imIAccount *aAccount, prplIAccountBuddy * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccountBuddyByNameAndAccount(aNormalizedName, aAccount, _retval); } \
NS_IMETHOD AccountBuddyAdded(prplIAccountBuddy *aAccountBuddy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AccountBuddyAdded(aAccountBuddy); } \
NS_IMETHOD AccountBuddyRemoved(prplIAccountBuddy *aAccountBuddy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AccountBuddyRemoved(aAccountBuddy); } \
NS_IMETHOD AccountBuddyMoved(prplIAccountBuddy *aAccountBuddy, imITag *aOldTag, imITag *aNewTag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AccountBuddyMoved(aAccountBuddy, aOldTag, aNewTag); } \
NS_IMETHOD StoreAccount(uint32_t aId, const nsACString & aUserName, const nsACString & aPrplId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StoreAccount(aId, aUserName, aPrplId); } \
NS_IMETHOD AccountIdExists(uint32_t aId, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AccountIdExists(aId, _retval); } \
NS_IMETHOD ForgetAccount(uint32_t aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForgetAccount(aId); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class imContactsService : public imIContactsService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IMICONTACTSSERVICE
imContactsService();
private:
~imContactsService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(imContactsService, imIContactsService)
imContactsService::imContactsService()
{
/* member initializers and constructor code */
}
imContactsService::~imContactsService()
{
/* destructor code */
}
/* void initContacts (); */
NS_IMETHODIMP imContactsService::InitContacts()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unInitContacts (); */
NS_IMETHODIMP imContactsService::UnInitContacts()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* imIContact getContactById (in long aId); */
NS_IMETHODIMP imContactsService::GetContactById(int32_t aId, imIContact * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getContacts ([optional] out unsigned long contactCount, [array, size_is (contactCount), retval] out imIContact contacts); */
NS_IMETHODIMP imContactsService::GetContacts(uint32_t *contactCount, imIContact * **contacts)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* imIBuddy getBuddyById (in long aId); */
NS_IMETHODIMP imContactsService::GetBuddyById(int32_t aId, imIBuddy * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* imIBuddy getBuddyByNameAndProtocol (in AUTF8String aNormalizedName, in prplIProtocol aPrpl); */
NS_IMETHODIMP imContactsService::GetBuddyByNameAndProtocol(const nsACString & aNormalizedName, prplIProtocol *aPrpl, imIBuddy * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* prplIAccountBuddy getAccountBuddyByNameAndAccount (in AUTF8String aNormalizedName, in imIAccount aAccount); */
NS_IMETHODIMP imContactsService::GetAccountBuddyByNameAndAccount(const nsACString & aNormalizedName, imIAccount *aAccount, prplIAccountBuddy * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accountBuddyAdded (in prplIAccountBuddy aAccountBuddy); */
NS_IMETHODIMP imContactsService::AccountBuddyAdded(prplIAccountBuddy *aAccountBuddy)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accountBuddyRemoved (in prplIAccountBuddy aAccountBuddy); */
NS_IMETHODIMP imContactsService::AccountBuddyRemoved(prplIAccountBuddy *aAccountBuddy)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accountBuddyMoved (in prplIAccountBuddy aAccountBuddy, in imITag aOldTag, in imITag aNewTag); */
NS_IMETHODIMP imContactsService::AccountBuddyMoved(prplIAccountBuddy *aAccountBuddy, imITag *aOldTag, imITag *aNewTag)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void storeAccount (in unsigned long aId, in AUTF8String aUserName, in AUTF8String aPrplId); */
NS_IMETHODIMP imContactsService::StoreAccount(uint32_t aId, const nsACString & aUserName, const nsACString & aPrplId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean accountIdExists (in unsigned long aId); */
NS_IMETHODIMP imContactsService::AccountIdExists(uint32_t aId, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void forgetAccount (in unsigned long aId); */
NS_IMETHODIMP imContactsService::ForgetAccount(uint32_t aId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: imIContact */
#define IMICONTACT_IID_STR "f585b0df-f6ad-40d5-9de4-c58b14af13e4"
#define IMICONTACT_IID \
{0xf585b0df, 0xf6ad, 0x40d5, \
{ 0x9d, 0xe4, 0xc5, 0x8b, 0x14, 0xaf, 0x13, 0xe4 }}
class NS_NO_VTABLE imIContact : public imIStatusInfo {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(IMICONTACT_IID)
/* readonly attribute long id; */
NS_IMETHOD GetId(int32_t *aId) = 0;
/* attribute AUTF8String alias; */
NS_IMETHOD GetAlias(nsACString & aAlias) = 0;
NS_IMETHOD SetAlias(const nsACString & aAlias) = 0;
/* void getTags ([optional] out unsigned long tagCount, [array, size_is (tagCount), retval] out imITag tags); */
NS_IMETHOD GetTags(uint32_t *tagCount, imITag * **tags) = 0;
/* void addTag (in imITag aTag); */
NS_IMETHOD AddTag(imITag *aTag) = 0;
/* void removeTag (in imITag aTag); */
NS_IMETHOD RemoveTag(imITag *aTag) = 0;
/* readonly attribute imIBuddy preferredBuddy; */
NS_IMETHOD GetPreferredBuddy(imIBuddy * *aPreferredBuddy) = 0;
/* void getBuddies ([optional] out unsigned long buddyCount, [array, size_is (buddyCount), retval] out imIBuddy buddies); */
NS_IMETHOD GetBuddies(uint32_t *buddyCount, imIBuddy * **buddies) = 0;
/* void mergeContact (in imIContact aContact); */
NS_IMETHOD MergeContact(imIContact *aContact) = 0;
/* void moveBuddyBefore (in imIBuddy aBuddy, [optional] in imIBuddy aBeforeBuddy); */
NS_IMETHOD MoveBuddyBefore(imIBuddy *aBuddy, imIBuddy *aBeforeBuddy) = 0;
/* void adoptBuddy (in imIBuddy aBuddy); */
NS_IMETHOD AdoptBuddy(imIBuddy *aBuddy) = 0;
/* imIContact detachBuddy (in imIBuddy aBuddy); */
NS_IMETHOD DetachBuddy(imIBuddy *aBuddy, imIContact * *_retval) = 0;
/* void remove (); */
NS_IMETHOD Remove(void) = 0;
/* void addObserver (in nsIObserver aObserver); */
NS_IMETHOD AddObserver(nsIObserver *aObserver) = 0;
/* void removeObserver (in nsIObserver aObserver); */
NS_IMETHOD RemoveObserver(nsIObserver *aObserver) = 0;
/* void notifyObservers (in nsISupports aObj, in string aEvent, [optional] in wstring aData); */
NS_IMETHOD NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(imIContact, IMICONTACT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMICONTACT \
NS_IMETHOD GetId(int32_t *aId) override; \
NS_IMETHOD GetAlias(nsACString & aAlias) override; \
NS_IMETHOD SetAlias(const nsACString & aAlias) override; \
NS_IMETHOD GetTags(uint32_t *tagCount, imITag * **tags) override; \
NS_IMETHOD AddTag(imITag *aTag) override; \
NS_IMETHOD RemoveTag(imITag *aTag) override; \
NS_IMETHOD GetPreferredBuddy(imIBuddy * *aPreferredBuddy) override; \
NS_IMETHOD GetBuddies(uint32_t *buddyCount, imIBuddy * **buddies) override; \
NS_IMETHOD MergeContact(imIContact *aContact) override; \
NS_IMETHOD MoveBuddyBefore(imIBuddy *aBuddy, imIBuddy *aBeforeBuddy) override; \
NS_IMETHOD AdoptBuddy(imIBuddy *aBuddy) override; \
NS_IMETHOD DetachBuddy(imIBuddy *aBuddy, imIContact * *_retval) override; \
NS_IMETHOD Remove(void) override; \
NS_IMETHOD AddObserver(nsIObserver *aObserver) override; \
NS_IMETHOD RemoveObserver(nsIObserver *aObserver) override; \
NS_IMETHOD NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData) 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_IMICONTACT \
NS_METHOD GetId(int32_t *aId); \
NS_METHOD GetAlias(nsACString & aAlias); \
NS_METHOD SetAlias(const nsACString & aAlias); \
NS_METHOD GetTags(uint32_t *tagCount, imITag * **tags); \
NS_METHOD AddTag(imITag *aTag); \
NS_METHOD RemoveTag(imITag *aTag); \
NS_METHOD GetPreferredBuddy(imIBuddy * *aPreferredBuddy); \
NS_METHOD GetBuddies(uint32_t *buddyCount, imIBuddy * **buddies); \
NS_METHOD MergeContact(imIContact *aContact); \
NS_METHOD MoveBuddyBefore(imIBuddy *aBuddy, imIBuddy *aBeforeBuddy); \
NS_METHOD AdoptBuddy(imIBuddy *aBuddy); \
NS_METHOD DetachBuddy(imIBuddy *aBuddy, imIContact * *_retval); \
NS_METHOD Remove(void); \
NS_METHOD AddObserver(nsIObserver *aObserver); \
NS_METHOD RemoveObserver(nsIObserver *aObserver); \
NS_METHOD NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMICONTACT(_to) \
NS_IMETHOD GetId(int32_t *aId) override { return _to GetId(aId); } \
NS_IMETHOD GetAlias(nsACString & aAlias) override { return _to GetAlias(aAlias); } \
NS_IMETHOD SetAlias(const nsACString & aAlias) override { return _to SetAlias(aAlias); } \
NS_IMETHOD GetTags(uint32_t *tagCount, imITag * **tags) override { return _to GetTags(tagCount, tags); } \
NS_IMETHOD AddTag(imITag *aTag) override { return _to AddTag(aTag); } \
NS_IMETHOD RemoveTag(imITag *aTag) override { return _to RemoveTag(aTag); } \
NS_IMETHOD GetPreferredBuddy(imIBuddy * *aPreferredBuddy) override { return _to GetPreferredBuddy(aPreferredBuddy); } \
NS_IMETHOD GetBuddies(uint32_t *buddyCount, imIBuddy * **buddies) override { return _to GetBuddies(buddyCount, buddies); } \
NS_IMETHOD MergeContact(imIContact *aContact) override { return _to MergeContact(aContact); } \
NS_IMETHOD MoveBuddyBefore(imIBuddy *aBuddy, imIBuddy *aBeforeBuddy) override { return _to MoveBuddyBefore(aBuddy, aBeforeBuddy); } \
NS_IMETHOD AdoptBuddy(imIBuddy *aBuddy) override { return _to AdoptBuddy(aBuddy); } \
NS_IMETHOD DetachBuddy(imIBuddy *aBuddy, imIContact * *_retval) override { return _to DetachBuddy(aBuddy, _retval); } \
NS_IMETHOD Remove(void) override { return _to Remove(); } \
NS_IMETHOD AddObserver(nsIObserver *aObserver) override { return _to AddObserver(aObserver); } \
NS_IMETHOD RemoveObserver(nsIObserver *aObserver) override { return _to RemoveObserver(aObserver); } \
NS_IMETHOD NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData) override { return _to NotifyObservers(aObj, aEvent, aData); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMICONTACT(_to) \
NS_IMETHOD GetId(int32_t *aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
NS_IMETHOD GetAlias(nsACString & aAlias) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlias(aAlias); } \
NS_IMETHOD SetAlias(const nsACString & aAlias) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlias(aAlias); } \
NS_IMETHOD GetTags(uint32_t *tagCount, imITag * **tags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTags(tagCount, tags); } \
NS_IMETHOD AddTag(imITag *aTag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddTag(aTag); } \
NS_IMETHOD RemoveTag(imITag *aTag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveTag(aTag); } \
NS_IMETHOD GetPreferredBuddy(imIBuddy * *aPreferredBuddy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreferredBuddy(aPreferredBuddy); } \
NS_IMETHOD GetBuddies(uint32_t *buddyCount, imIBuddy * **buddies) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuddies(buddyCount, buddies); } \
NS_IMETHOD MergeContact(imIContact *aContact) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MergeContact(aContact); } \
NS_IMETHOD MoveBuddyBefore(imIBuddy *aBuddy, imIBuddy *aBeforeBuddy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveBuddyBefore(aBuddy, aBeforeBuddy); } \
NS_IMETHOD AdoptBuddy(imIBuddy *aBuddy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AdoptBuddy(aBuddy); } \
NS_IMETHOD DetachBuddy(imIBuddy *aBuddy, imIContact * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DetachBuddy(aBuddy, _retval); } \
NS_IMETHOD Remove(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(); } \
NS_IMETHOD AddObserver(nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aObserver); } \
NS_IMETHOD RemoveObserver(nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aObserver); } \
NS_IMETHOD NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyObservers(aObj, aEvent, aData); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class imContact : public imIContact
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IMICONTACT
imContact();
private:
~imContact();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(imContact, imIContact)
imContact::imContact()
{
/* member initializers and constructor code */
}
imContact::~imContact()
{
/* destructor code */
}
/* readonly attribute long id; */
NS_IMETHODIMP imContact::GetId(int32_t *aId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute AUTF8String alias; */
NS_IMETHODIMP imContact::GetAlias(nsACString & aAlias)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP imContact::SetAlias(const nsACString & aAlias)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getTags ([optional] out unsigned long tagCount, [array, size_is (tagCount), retval] out imITag tags); */
NS_IMETHODIMP imContact::GetTags(uint32_t *tagCount, imITag * **tags)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addTag (in imITag aTag); */
NS_IMETHODIMP imContact::AddTag(imITag *aTag)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeTag (in imITag aTag); */
NS_IMETHODIMP imContact::RemoveTag(imITag *aTag)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute imIBuddy preferredBuddy; */
NS_IMETHODIMP imContact::GetPreferredBuddy(imIBuddy * *aPreferredBuddy)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getBuddies ([optional] out unsigned long buddyCount, [array, size_is (buddyCount), retval] out imIBuddy buddies); */
NS_IMETHODIMP imContact::GetBuddies(uint32_t *buddyCount, imIBuddy * **buddies)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void mergeContact (in imIContact aContact); */
NS_IMETHODIMP imContact::MergeContact(imIContact *aContact)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void moveBuddyBefore (in imIBuddy aBuddy, [optional] in imIBuddy aBeforeBuddy); */
NS_IMETHODIMP imContact::MoveBuddyBefore(imIBuddy *aBuddy, imIBuddy *aBeforeBuddy)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void adoptBuddy (in imIBuddy aBuddy); */
NS_IMETHODIMP imContact::AdoptBuddy(imIBuddy *aBuddy)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* imIContact detachBuddy (in imIBuddy aBuddy); */
NS_IMETHODIMP imContact::DetachBuddy(imIBuddy *aBuddy, imIContact * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void remove (); */
NS_IMETHODIMP imContact::Remove()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addObserver (in nsIObserver aObserver); */
NS_IMETHODIMP imContact::AddObserver(nsIObserver *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeObserver (in nsIObserver aObserver); */
NS_IMETHODIMP imContact::RemoveObserver(nsIObserver *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyObservers (in nsISupports aObj, in string aEvent, [optional] in wstring aData); */
NS_IMETHODIMP imContact::NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: imIBuddy */
#define IMIBUDDY_IID_STR "c56520ba-d923-4b95-8416-ca6733c4a38e"
#define IMIBUDDY_IID \
{0xc56520ba, 0xd923, 0x4b95, \
{ 0x84, 0x16, 0xca, 0x67, 0x33, 0xc4, 0xa3, 0x8e }}
class NS_NO_VTABLE imIBuddy : public imIStatusInfo {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(IMIBUDDY_IID)
/* readonly attribute long id; */
NS_IMETHOD GetId(int32_t *aId) = 0;
/* readonly attribute prplIProtocol protocol; */
NS_IMETHOD GetProtocol(prplIProtocol * *aProtocol) = 0;
/* readonly attribute AUTF8String userName; */
NS_IMETHOD GetUserName(nsACString & aUserName) = 0;
/* readonly attribute AUTF8String normalizedName; */
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) = 0;
/* readonly attribute imIContact contact; */
NS_IMETHOD GetContact(imIContact * *aContact) = 0;
/* readonly attribute prplIAccountBuddy preferredAccountBuddy; */
NS_IMETHOD GetPreferredAccountBuddy(prplIAccountBuddy * *aPreferredAccountBuddy) = 0;
/* void getAccountBuddies ([optional] out unsigned long accountBuddyCount, [array, size_is (accountBuddyCount), retval] out prplIAccountBuddy accountBuddies); */
NS_IMETHOD GetAccountBuddies(uint32_t *accountBuddyCount, prplIAccountBuddy * **accountBuddies) = 0;
/* void remove (); */
NS_IMETHOD Remove(void) = 0;
/* void addObserver (in nsIObserver aObserver); */
NS_IMETHOD AddObserver(nsIObserver *aObserver) = 0;
/* void removeObserver (in nsIObserver aObserver); */
NS_IMETHOD RemoveObserver(nsIObserver *aObserver) = 0;
/* void notifyObservers (in nsISupports aObj, in string aEvent, [optional] in wstring aData); */
NS_IMETHOD NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData) = 0;
/* void observe (in nsISupports aObj, in string aEvent, [optional] in wstring aData); */
NS_IMETHOD Observe(nsISupports *aObj, const char * aEvent, const char16_t * aData) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(imIBuddy, IMIBUDDY_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMIBUDDY \
NS_IMETHOD GetId(int32_t *aId) override; \
NS_IMETHOD GetProtocol(prplIProtocol * *aProtocol) override; \
NS_IMETHOD GetUserName(nsACString & aUserName) override; \
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) override; \
NS_IMETHOD GetContact(imIContact * *aContact) override; \
NS_IMETHOD GetPreferredAccountBuddy(prplIAccountBuddy * *aPreferredAccountBuddy) override; \
NS_IMETHOD GetAccountBuddies(uint32_t *accountBuddyCount, prplIAccountBuddy * **accountBuddies) override; \
NS_IMETHOD Remove(void) override; \
NS_IMETHOD AddObserver(nsIObserver *aObserver) override; \
NS_IMETHOD RemoveObserver(nsIObserver *aObserver) override; \
NS_IMETHOD NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData) override; \
NS_IMETHOD Observe(nsISupports *aObj, const char * aEvent, const char16_t * aData) 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_IMIBUDDY \
NS_METHOD GetId(int32_t *aId); \
NS_METHOD GetProtocol(prplIProtocol * *aProtocol); \
NS_METHOD GetUserName(nsACString & aUserName); \
NS_METHOD GetNormalizedName(nsACString & aNormalizedName); \
NS_METHOD GetContact(imIContact * *aContact); \
NS_METHOD GetPreferredAccountBuddy(prplIAccountBuddy * *aPreferredAccountBuddy); \
NS_METHOD GetAccountBuddies(uint32_t *accountBuddyCount, prplIAccountBuddy * **accountBuddies); \
NS_METHOD Remove(void); \
NS_METHOD AddObserver(nsIObserver *aObserver); \
NS_METHOD RemoveObserver(nsIObserver *aObserver); \
NS_METHOD NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData); \
NS_METHOD Observe(nsISupports *aObj, const char * aEvent, const char16_t * aData);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMIBUDDY(_to) \
NS_IMETHOD GetId(int32_t *aId) override { return _to GetId(aId); } \
NS_IMETHOD GetProtocol(prplIProtocol * *aProtocol) override { return _to GetProtocol(aProtocol); } \
NS_IMETHOD GetUserName(nsACString & aUserName) override { return _to GetUserName(aUserName); } \
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) override { return _to GetNormalizedName(aNormalizedName); } \
NS_IMETHOD GetContact(imIContact * *aContact) override { return _to GetContact(aContact); } \
NS_IMETHOD GetPreferredAccountBuddy(prplIAccountBuddy * *aPreferredAccountBuddy) override { return _to GetPreferredAccountBuddy(aPreferredAccountBuddy); } \
NS_IMETHOD GetAccountBuddies(uint32_t *accountBuddyCount, prplIAccountBuddy * **accountBuddies) override { return _to GetAccountBuddies(accountBuddyCount, accountBuddies); } \
NS_IMETHOD Remove(void) override { return _to Remove(); } \
NS_IMETHOD AddObserver(nsIObserver *aObserver) override { return _to AddObserver(aObserver); } \
NS_IMETHOD RemoveObserver(nsIObserver *aObserver) override { return _to RemoveObserver(aObserver); } \
NS_IMETHOD NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData) override { return _to NotifyObservers(aObj, aEvent, aData); } \
NS_IMETHOD Observe(nsISupports *aObj, const char * aEvent, const char16_t * aData) override { return _to Observe(aObj, aEvent, aData); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMIBUDDY(_to) \
NS_IMETHOD GetId(int32_t *aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
NS_IMETHOD GetProtocol(prplIProtocol * *aProtocol) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProtocol(aProtocol); } \
NS_IMETHOD GetUserName(nsACString & aUserName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserName(aUserName); } \
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNormalizedName(aNormalizedName); } \
NS_IMETHOD GetContact(imIContact * *aContact) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContact(aContact); } \
NS_IMETHOD GetPreferredAccountBuddy(prplIAccountBuddy * *aPreferredAccountBuddy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreferredAccountBuddy(aPreferredAccountBuddy); } \
NS_IMETHOD GetAccountBuddies(uint32_t *accountBuddyCount, prplIAccountBuddy * **accountBuddies) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccountBuddies(accountBuddyCount, accountBuddies); } \
NS_IMETHOD Remove(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(); } \
NS_IMETHOD AddObserver(nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aObserver); } \
NS_IMETHOD RemoveObserver(nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aObserver); } \
NS_IMETHOD NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyObservers(aObj, aEvent, aData); } \
NS_IMETHOD Observe(nsISupports *aObj, const char * aEvent, const char16_t * aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Observe(aObj, aEvent, aData); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class imBuddy : public imIBuddy
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IMIBUDDY
imBuddy();
private:
~imBuddy();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(imBuddy, imIBuddy)
imBuddy::imBuddy()
{
/* member initializers and constructor code */
}
imBuddy::~imBuddy()
{
/* destructor code */
}
/* readonly attribute long id; */
NS_IMETHODIMP imBuddy::GetId(int32_t *aId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute prplIProtocol protocol; */
NS_IMETHODIMP imBuddy::GetProtocol(prplIProtocol * *aProtocol)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String userName; */
NS_IMETHODIMP imBuddy::GetUserName(nsACString & aUserName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String normalizedName; */
NS_IMETHODIMP imBuddy::GetNormalizedName(nsACString & aNormalizedName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute imIContact contact; */
NS_IMETHODIMP imBuddy::GetContact(imIContact * *aContact)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute prplIAccountBuddy preferredAccountBuddy; */
NS_IMETHODIMP imBuddy::GetPreferredAccountBuddy(prplIAccountBuddy * *aPreferredAccountBuddy)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getAccountBuddies ([optional] out unsigned long accountBuddyCount, [array, size_is (accountBuddyCount), retval] out prplIAccountBuddy accountBuddies); */
NS_IMETHODIMP imBuddy::GetAccountBuddies(uint32_t *accountBuddyCount, prplIAccountBuddy * **accountBuddies)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void remove (); */
NS_IMETHODIMP imBuddy::Remove()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addObserver (in nsIObserver aObserver); */
NS_IMETHODIMP imBuddy::AddObserver(nsIObserver *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeObserver (in nsIObserver aObserver); */
NS_IMETHODIMP imBuddy::RemoveObserver(nsIObserver *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyObservers (in nsISupports aObj, in string aEvent, [optional] in wstring aData); */
NS_IMETHODIMP imBuddy::NotifyObservers(nsISupports *aObj, const char * aEvent, const char16_t * aData)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void observe (in nsISupports aObj, in string aEvent, [optional] in wstring aData); */
NS_IMETHODIMP imBuddy::Observe(nsISupports *aObj, const char * aEvent, const char16_t * aData)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: prplIAccountBuddy */
#define PRPLIACCOUNTBUDDY_IID_STR "0c5021ac-7acd-4118-bf4f-c0dd9cb3ddef"
#define PRPLIACCOUNTBUDDY_IID \
{0x0c5021ac, 0x7acd, 0x4118, \
{ 0xbf, 0x4f, 0xc0, 0xdd, 0x9c, 0xb3, 0xdd, 0xef }}
class NS_NO_VTABLE prplIAccountBuddy : public imIStatusInfo {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(PRPLIACCOUNTBUDDY_IID)
/* attribute imIBuddy buddy; */
NS_IMETHOD GetBuddy(imIBuddy * *aBuddy) = 0;
NS_IMETHOD SetBuddy(imIBuddy *aBuddy) = 0;
/* readonly attribute imIAccount account; */
NS_IMETHOD GetAccount(imIAccount * *aAccount) = 0;
/* attribute imITag tag; */
NS_IMETHOD GetTag(imITag * *aTag) = 0;
NS_IMETHOD SetTag(imITag *aTag) = 0;
/* readonly attribute AUTF8String userName; */
NS_IMETHOD GetUserName(nsACString & aUserName) = 0;
/* readonly attribute AUTF8String normalizedName; */
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) = 0;
/* attribute AUTF8String serverAlias; */
NS_IMETHOD GetServerAlias(nsACString & aServerAlias) = 0;
NS_IMETHOD SetServerAlias(const nsACString & aServerAlias) = 0;
/* void remove (); */
NS_IMETHOD Remove(void) = 0;
/* void unInit (); */
NS_IMETHOD UnInit(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(prplIAccountBuddy, PRPLIACCOUNTBUDDY_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_PRPLIACCOUNTBUDDY \
NS_IMETHOD GetBuddy(imIBuddy * *aBuddy) override; \
NS_IMETHOD SetBuddy(imIBuddy *aBuddy) override; \
NS_IMETHOD GetAccount(imIAccount * *aAccount) override; \
NS_IMETHOD GetTag(imITag * *aTag) override; \
NS_IMETHOD SetTag(imITag *aTag) override; \
NS_IMETHOD GetUserName(nsACString & aUserName) override; \
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) override; \
NS_IMETHOD GetServerAlias(nsACString & aServerAlias) override; \
NS_IMETHOD SetServerAlias(const nsACString & aServerAlias) override; \
NS_IMETHOD Remove(void) override; \
NS_IMETHOD UnInit(void) 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_PRPLIACCOUNTBUDDY \
NS_METHOD GetBuddy(imIBuddy * *aBuddy); \
NS_METHOD SetBuddy(imIBuddy *aBuddy); \
NS_METHOD GetAccount(imIAccount * *aAccount); \
NS_METHOD GetTag(imITag * *aTag); \
NS_METHOD SetTag(imITag *aTag); \
NS_METHOD GetUserName(nsACString & aUserName); \
NS_METHOD GetNormalizedName(nsACString & aNormalizedName); \
NS_METHOD GetServerAlias(nsACString & aServerAlias); \
NS_METHOD SetServerAlias(const nsACString & aServerAlias); \
NS_METHOD Remove(void); \
NS_METHOD UnInit(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_PRPLIACCOUNTBUDDY(_to) \
NS_IMETHOD GetBuddy(imIBuddy * *aBuddy) override { return _to GetBuddy(aBuddy); } \
NS_IMETHOD SetBuddy(imIBuddy *aBuddy) override { return _to SetBuddy(aBuddy); } \
NS_IMETHOD GetAccount(imIAccount * *aAccount) override { return _to GetAccount(aAccount); } \
NS_IMETHOD GetTag(imITag * *aTag) override { return _to GetTag(aTag); } \
NS_IMETHOD SetTag(imITag *aTag) override { return _to SetTag(aTag); } \
NS_IMETHOD GetUserName(nsACString & aUserName) override { return _to GetUserName(aUserName); } \
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) override { return _to GetNormalizedName(aNormalizedName); } \
NS_IMETHOD GetServerAlias(nsACString & aServerAlias) override { return _to GetServerAlias(aServerAlias); } \
NS_IMETHOD SetServerAlias(const nsACString & aServerAlias) override { return _to SetServerAlias(aServerAlias); } \
NS_IMETHOD Remove(void) override { return _to Remove(); } \
NS_IMETHOD UnInit(void) override { return _to UnInit(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_PRPLIACCOUNTBUDDY(_to) \
NS_IMETHOD GetBuddy(imIBuddy * *aBuddy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuddy(aBuddy); } \
NS_IMETHOD SetBuddy(imIBuddy *aBuddy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBuddy(aBuddy); } \
NS_IMETHOD GetAccount(imIAccount * *aAccount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccount(aAccount); } \
NS_IMETHOD GetTag(imITag * *aTag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTag(aTag); } \
NS_IMETHOD SetTag(imITag *aTag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTag(aTag); } \
NS_IMETHOD GetUserName(nsACString & aUserName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserName(aUserName); } \
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNormalizedName(aNormalizedName); } \
NS_IMETHOD GetServerAlias(nsACString & aServerAlias) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerAlias(aServerAlias); } \
NS_IMETHOD SetServerAlias(const nsACString & aServerAlias) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetServerAlias(aServerAlias); } \
NS_IMETHOD Remove(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(); } \
NS_IMETHOD UnInit(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnInit(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public prplIAccountBuddy
{
public:
NS_DECL_ISUPPORTS
NS_DECL_PRPLIACCOUNTBUDDY
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, prplIAccountBuddy)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* attribute imIBuddy buddy; */
NS_IMETHODIMP _MYCLASS_::GetBuddy(imIBuddy * *aBuddy)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetBuddy(imIBuddy *aBuddy)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute imIAccount account; */
NS_IMETHODIMP _MYCLASS_::GetAccount(imIAccount * *aAccount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute imITag tag; */
NS_IMETHODIMP _MYCLASS_::GetTag(imITag * *aTag)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetTag(imITag *aTag)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String userName; */
NS_IMETHODIMP _MYCLASS_::GetUserName(nsACString & aUserName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String normalizedName; */
NS_IMETHODIMP _MYCLASS_::GetNormalizedName(nsACString & aNormalizedName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute AUTF8String serverAlias; */
NS_IMETHODIMP _MYCLASS_::GetServerAlias(nsACString & aServerAlias)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetServerAlias(const nsACString & aServerAlias)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void remove (); */
NS_IMETHODIMP _MYCLASS_::Remove()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unInit (); */
NS_IMETHODIMP _MYCLASS_::UnInit()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_imIContactsService_h__ */
|