DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/chat/components/public/imIAccount.idl
 */

#ifndef __gen_imIAccount_h__
#define __gen_imIAccount_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_prplIConversation_h__
#include "prplIConversation.h"
#endif

#ifndef __gen_imIUserStatusInfo_h__
#include "imIUserStatusInfo.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class imITag; /* forward declaration */

class imIBuddy; /* forward declaration */

class prplIAccountBuddy; /* forward declaration */

class imIAccount; /* forward declaration */

class prplIAccount; /* forward declaration */

class prplIProtocol; /* forward declaration */

class nsIScriptError; /* forward declaration */

class nsISSLStatus; /* forward declaration */


/* starting interface:    prplIChatRoomFieldValues */
#define PRPLICHATROOMFIELDVALUES_IID_STR "7e91accd-f04c-4787-9954-c7db4fb235fb"

#define PRPLICHATROOMFIELDVALUES_IID \
  {0x7e91accd, 0xf04c, 0x4787, \
    { 0x99, 0x54, 0xc7, 0xdb, 0x4f, 0xb2, 0x35, 0xfb }}

class NS_NO_VTABLE prplIChatRoomFieldValues : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(PRPLICHATROOMFIELDVALUES_IID)

  /* AUTF8String getValue (in AUTF8String aIdentifier); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetValue(const nsACString& aIdentifier, nsACString& _retval) = 0;

  /* void setValue (in AUTF8String aIdentifier, in AUTF8String aValue); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetValue(const nsACString& aIdentifier, const nsACString& aValue) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(prplIChatRoomFieldValues, PRPLICHATROOMFIELDVALUES_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_PRPLICHATROOMFIELDVALUES \
  NS_IMETHOD GetValue(const nsACString& aIdentifier, nsACString& _retval) override; \
  NS_IMETHOD SetValue(const nsACString& aIdentifier, 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_PRPLICHATROOMFIELDVALUES \
  nsresult GetValue(const nsACString& aIdentifier, nsACString& _retval); \
  nsresult SetValue(const nsACString& aIdentifier, const nsACString& aValue); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_PRPLICHATROOMFIELDVALUES(_to) \
  NS_IMETHOD GetValue(const nsACString& aIdentifier, nsACString& _retval) override { return _to GetValue(aIdentifier, _retval); } \
  NS_IMETHOD SetValue(const nsACString& aIdentifier, const nsACString& aValue) override { return _to SetValue(aIdentifier, 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_PRPLICHATROOMFIELDVALUES(_to) \
  NS_IMETHOD GetValue(const nsACString& aIdentifier, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aIdentifier, _retval); } \
  NS_IMETHOD SetValue(const nsACString& aIdentifier, const nsACString& aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aIdentifier, aValue); } 


/* starting interface:    prplIChatRoomField */
#define PRPLICHATROOMFIELD_IID_STR "19dff981-b125-4a70-bc1a-efc783d07137"

#define PRPLICHATROOMFIELD_IID \
  {0x19dff981, 0xb125, 0x4a70, \
    { 0xbc, 0x1a, 0xef, 0xc7, 0x83, 0xd0, 0x71, 0x37 }}

class NS_NO_VTABLE prplIChatRoomField : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(PRPLICHATROOMFIELD_IID)

  /* readonly attribute AUTF8String label; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLabel(nsACString& aLabel) = 0;

  /* readonly attribute AUTF8String identifier; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIdentifier(nsACString& aIdentifier) = 0;

  /* readonly attribute boolean required; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRequired(bool *aRequired) = 0;

  enum {
    TYPE_TEXT = 0,
    TYPE_PASSWORD = 1,
    TYPE_INT = 2
  };

  /* readonly attribute short type; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetType(int16_t *aType) = 0;

  /* readonly attribute long min; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMin(int32_t *aMin) = 0;

  /* readonly attribute long max; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMax(int32_t *aMax) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(prplIChatRoomField, PRPLICHATROOMFIELD_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_PRPLICHATROOMFIELD \
  NS_IMETHOD GetLabel(nsACString& aLabel) override; \
  NS_IMETHOD GetIdentifier(nsACString& aIdentifier) override; \
  NS_IMETHOD GetRequired(bool *aRequired) override; \
  NS_IMETHOD GetType(int16_t *aType) override; \
  NS_IMETHOD GetMin(int32_t *aMin) override; \
  NS_IMETHOD GetMax(int32_t *aMax) 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_PRPLICHATROOMFIELD \
  nsresult GetLabel(nsACString& aLabel); \
  nsresult GetIdentifier(nsACString& aIdentifier); \
  nsresult GetRequired(bool *aRequired); \
  nsresult GetType(int16_t *aType); \
  nsresult GetMin(int32_t *aMin); \
  nsresult GetMax(int32_t *aMax); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_PRPLICHATROOMFIELD(_to) \
  NS_IMETHOD GetLabel(nsACString& aLabel) override { return _to GetLabel(aLabel); } \
  NS_IMETHOD GetIdentifier(nsACString& aIdentifier) override { return _to GetIdentifier(aIdentifier); } \
  NS_IMETHOD GetRequired(bool *aRequired) override { return _to GetRequired(aRequired); } \
  NS_IMETHOD GetType(int16_t *aType) override { return _to GetType(aType); } \
  NS_IMETHOD GetMin(int32_t *aMin) override { return _to GetMin(aMin); } \
  NS_IMETHOD GetMax(int32_t *aMax) override { return _to GetMax(aMax); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_PRPLICHATROOMFIELD(_to) \
  NS_IMETHOD GetLabel(nsACString& aLabel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLabel(aLabel); } \
  NS_IMETHOD GetIdentifier(nsACString& aIdentifier) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdentifier(aIdentifier); } \
  NS_IMETHOD GetRequired(bool *aRequired) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequired(aRequired); } \
  NS_IMETHOD GetType(int16_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  NS_IMETHOD GetMin(int32_t *aMin) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMin(aMin); } \
  NS_IMETHOD GetMax(int32_t *aMax) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMax(aMax); } 


/* starting interface:    prplIRoomInfo */
#define PRPLIROOMINFO_IID_STR "017d5951-fdd0-4f26-b697-fcc138cd2861"

#define PRPLIROOMINFO_IID \
  {0x017d5951, 0xfdd0, 0x4f26, \
    { 0xb6, 0x97, 0xfc, 0xc1, 0x38, 0xcd, 0x28, 0x61 }}

class NS_NO_VTABLE prplIRoomInfo : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(PRPLIROOMINFO_IID)

  /* readonly attribute AUTF8String name; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetName(nsACString& aName) = 0;

  /* readonly attribute AUTF8String topic; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTopic(nsACString& aTopic) = 0;

  enum {
    NO_PARTICIPANT_COUNT = -1
  };

  /* readonly attribute long participantCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetParticipantCount(int32_t *aParticipantCount) = 0;

  /* readonly attribute prplIChatRoomFieldValues chatRoomFieldValues; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetChatRoomFieldValues(prplIChatRoomFieldValues **aChatRoomFieldValues) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(prplIRoomInfo, PRPLIROOMINFO_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_PRPLIROOMINFO \
  NS_IMETHOD GetName(nsACString& aName) override; \
  NS_IMETHOD GetTopic(nsACString& aTopic) override; \
  NS_IMETHOD GetParticipantCount(int32_t *aParticipantCount) override; \
  NS_IMETHOD GetChatRoomFieldValues(prplIChatRoomFieldValues **aChatRoomFieldValues) 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_PRPLIROOMINFO \
  nsresult GetName(nsACString& aName); \
  nsresult GetTopic(nsACString& aTopic); \
  nsresult GetParticipantCount(int32_t *aParticipantCount); \
  nsresult GetChatRoomFieldValues(prplIChatRoomFieldValues **aChatRoomFieldValues); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_PRPLIROOMINFO(_to) \
  NS_IMETHOD GetName(nsACString& aName) override { return _to GetName(aName); } \
  NS_IMETHOD GetTopic(nsACString& aTopic) override { return _to GetTopic(aTopic); } \
  NS_IMETHOD GetParticipantCount(int32_t *aParticipantCount) override { return _to GetParticipantCount(aParticipantCount); } \
  NS_IMETHOD GetChatRoomFieldValues(prplIChatRoomFieldValues **aChatRoomFieldValues) override { return _to GetChatRoomFieldValues(aChatRoomFieldValues); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_PRPLIROOMINFO(_to) \
  NS_IMETHOD GetName(nsACString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD GetTopic(nsACString& aTopic) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTopic(aTopic); } \
  NS_IMETHOD GetParticipantCount(int32_t *aParticipantCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParticipantCount(aParticipantCount); } \
  NS_IMETHOD GetChatRoomFieldValues(prplIChatRoomFieldValues **aChatRoomFieldValues) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChatRoomFieldValues(aChatRoomFieldValues); } 


/* starting interface:    prplIRoomInfoCallback */
#define PRPLIROOMINFOCALLBACK_IID_STR "43102a36-883a-421d-a6ac-126aafee5a28"

#define PRPLIROOMINFOCALLBACK_IID \
  {0x43102a36, 0x883a, 0x421d, \
    { 0xa6, 0xac, 0x12, 0x6a, 0xaf, 0xee, 0x5a, 0x28 }}

class NS_NO_VTABLE prplIRoomInfoCallback : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(PRPLIROOMINFOCALLBACK_IID)

  /* void onRoomInfoAvailable ([array, size_is (aCount)] in wstring aRooms, in boolean aCompleted, in unsigned long aCount); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnRoomInfoAvailable(const char16_t * *aRooms, bool aCompleted, uint32_t aCount) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(prplIRoomInfoCallback, PRPLIROOMINFOCALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_PRPLIROOMINFOCALLBACK \
  NS_IMETHOD OnRoomInfoAvailable(const char16_t * *aRooms, bool aCompleted, uint32_t aCount) 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_PRPLIROOMINFOCALLBACK \
  nsresult OnRoomInfoAvailable(const char16_t * *aRooms, bool aCompleted, uint32_t aCount); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_PRPLIROOMINFOCALLBACK(_to) \
  NS_IMETHOD OnRoomInfoAvailable(const char16_t * *aRooms, bool aCompleted, uint32_t aCount) override { return _to OnRoomInfoAvailable(aRooms, aCompleted, aCount); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_PRPLIROOMINFOCALLBACK(_to) \
  NS_IMETHOD OnRoomInfoAvailable(const char16_t * *aRooms, bool aCompleted, uint32_t aCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnRoomInfoAvailable(aRooms, aCompleted, aCount); } 


/* starting interface:    prplIAccount */
#define PRPLIACCOUNT_IID_STR "3ce02a3c-f38b-4a1e-9050-a19bea1cb6c1"

#define PRPLIACCOUNT_IID \
  {0x3ce02a3c, 0xf38b, 0x4a1e, \
    { 0x90, 0x50, 0xa1, 0x9b, 0xea, 0x1c, 0xb6, 0xc1 }}

class NS_NO_VTABLE prplIAccount : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(PRPLIACCOUNT_IID)

  /* readonly attribute imIAccount imAccount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetImAccount(imIAccount **aImAccount) = 0;

  /* void observe (in nsISupports aObj, in string aEvent, [optional] in wstring aData); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Observe(nsISupports *aObj, const char * aEvent, const char16_t * aData) = 0;

  /* void remove (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Remove(void) = 0;

  /* void unInit (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UnInit(void) = 0;

  /* void connect (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Connect(void) = 0;

  /* void disconnect (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Disconnect(void) = 0;

  /* prplIConversation createConversation (in AUTF8String aName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateConversation(const nsACString& aName, prplIConversation **_retval) = 0;

  /* void addBuddy (in imITag aTag, in AUTF8String aName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddBuddy(imITag *aTag, const nsACString& aName) = 0;

  /* prplIAccountBuddy loadBuddy (in imIBuddy aBuddy, in imITag aTag); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LoadBuddy(imIBuddy *aBuddy, imITag *aTag, prplIAccountBuddy **_retval) = 0;

  /* void requestBuddyInfo (in AUTF8String aBuddyName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RequestBuddyInfo(const nsACString& aBuddyName) = 0;

  /* readonly attribute boolean canJoinChat; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCanJoinChat(bool *aCanJoinChat) = 0;

  /* nsISimpleEnumerator getChatRoomFields (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetChatRoomFields(nsISimpleEnumerator **_retval) = 0;

  /* prplIChatRoomFieldValues getChatRoomDefaultFieldValues ([optional] in AUTF8String aDefaultChatName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetChatRoomDefaultFieldValues(const nsACString& aDefaultChatName, prplIChatRoomFieldValues **_retval) = 0;

  /* void requestRoomInfo (in prplIRoomInfoCallback aCallback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RequestRoomInfo(prplIRoomInfoCallback *aCallback) = 0;

  /* prplIRoomInfo getRoomInfo (in AUTF8String aRoomName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRoomInfo(const nsACString& aRoomName, prplIRoomInfo **_retval) = 0;

  /* readonly attribute boolean isRoomInfoStale; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsRoomInfoStale(bool *aIsRoomInfoStale) = 0;

  /* void joinChat (in prplIChatRoomFieldValues aComponents); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD JoinChat(prplIChatRoomFieldValues *aComponents) = 0;

  /* readonly attribute AUTF8String normalizedName; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNormalizedName(nsACString& aNormalizedName) = 0;

  /* AUTF8String normalize (in AUTF8String aName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Normalize(const nsACString& aName, nsACString& _retval) = 0;

  /* void setBool (in string aName, in boolean aVal); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetBool(const char * aName, bool aVal) = 0;

  /* void setInt (in string aName, in long aVal); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetInt(const char * aName, int32_t aVal) = 0;

  /* void setString (in string aName, in AUTF8String aVal); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetString(const char * aName, const nsACString& aVal) = 0;

  /* readonly attribute short connectionErrorReason; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetConnectionErrorReason(int16_t *aConnectionErrorReason) = 0;

  /* readonly attribute AUTF8String connectionTarget; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetConnectionTarget(nsACString& aConnectionTarget) = 0;

  /* readonly attribute nsISSLStatus sslStatus; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSslStatus(nsISSLStatus **aSslStatus) = 0;

  enum {
    NO_ERROR = -1,
    ERROR_NETWORK_ERROR = 0,
    ERROR_INVALID_USERNAME = 1,
    ERROR_AUTHENTICATION_FAILED = 2,
    ERROR_AUTHENTICATION_IMPOSSIBLE = 3,
    ERROR_NO_SSL_SUPPORT = 4,
    ERROR_ENCRYPTION_ERROR = 5,
    ERROR_NAME_IN_USE = 6,
    ERROR_INVALID_SETTINGS = 7,
    ERROR_CERT_NOT_PROVIDED = 8,
    ERROR_CERT_UNTRUSTED = 9,
    ERROR_CERT_EXPIRED = 10,
    ERROR_CERT_NOT_ACTIVATED = 11,
    ERROR_CERT_HOSTNAME_MISMATCH = 12,
    ERROR_CERT_FINGERPRINT_MISMATCH = 13,
    ERROR_CERT_SELF_SIGNED = 14,
    ERROR_CERT_OTHER_ERROR = 15,
    ERROR_OTHER_ERROR = 16
  };

  /* readonly attribute boolean HTMLEnabled; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHTMLEnabled(bool *aHTMLEnabled) = 0;

  /* readonly attribute boolean HTMLEscapePlainText; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHTMLEscapePlainText(bool *aHTMLEscapePlainText) = 0;

  /* readonly attribute boolean noBackgroundColors; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNoBackgroundColors(bool *aNoBackgroundColors) = 0;

  /* readonly attribute boolean autoResponses; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAutoResponses(bool *aAutoResponses) = 0;

  /* readonly attribute boolean singleFormatting; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSingleFormatting(bool *aSingleFormatting) = 0;

  /* readonly attribute boolean noFontSizes; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNoFontSizes(bool *aNoFontSizes) = 0;

  /* readonly attribute boolean noUrlDesc; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNoUrlDesc(bool *aNoUrlDesc) = 0;

  /* readonly attribute boolean noImages; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNoImages(bool *aNoImages) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(prplIAccount, PRPLIACCOUNT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_PRPLIACCOUNT \
  NS_IMETHOD GetImAccount(imIAccount **aImAccount) override; \
  NS_IMETHOD Observe(nsISupports *aObj, const char * aEvent, const char16_t * aData) override; \
  NS_IMETHOD Remove(void) override; \
  NS_IMETHOD UnInit(void) override; \
  NS_IMETHOD Connect(void) override; \
  NS_IMETHOD Disconnect(void) override; \
  NS_IMETHOD CreateConversation(const nsACString& aName, prplIConversation **_retval) override; \
  NS_IMETHOD AddBuddy(imITag *aTag, const nsACString& aName) override; \
  NS_IMETHOD LoadBuddy(imIBuddy *aBuddy, imITag *aTag, prplIAccountBuddy **_retval) override; \
  NS_IMETHOD RequestBuddyInfo(const nsACString& aBuddyName) override; \
  NS_IMETHOD GetCanJoinChat(bool *aCanJoinChat) override; \
  NS_IMETHOD GetChatRoomFields(nsISimpleEnumerator **_retval) override; \
  NS_IMETHOD GetChatRoomDefaultFieldValues(const nsACString& aDefaultChatName, prplIChatRoomFieldValues **_retval) override; \
  NS_IMETHOD RequestRoomInfo(prplIRoomInfoCallback *aCallback) override; \
  NS_IMETHOD GetRoomInfo(const nsACString& aRoomName, prplIRoomInfo **_retval) override; \
  NS_IMETHOD GetIsRoomInfoStale(bool *aIsRoomInfoStale) override; \
  NS_IMETHOD JoinChat(prplIChatRoomFieldValues *aComponents) override; \
  NS_IMETHOD GetNormalizedName(nsACString& aNormalizedName) override; \
  NS_IMETHOD Normalize(const nsACString& aName, nsACString& _retval) override; \
  NS_IMETHOD SetBool(const char * aName, bool aVal) override; \
  NS_IMETHOD SetInt(const char * aName, int32_t aVal) override; \
  NS_IMETHOD SetString(const char * aName, const nsACString& aVal) override; \
  NS_IMETHOD GetConnectionErrorReason(int16_t *aConnectionErrorReason) override; \
  NS_IMETHOD GetConnectionTarget(nsACString& aConnectionTarget) override; \
  NS_IMETHOD GetSslStatus(nsISSLStatus **aSslStatus) override; \
  NS_IMETHOD GetHTMLEnabled(bool *aHTMLEnabled) override; \
  NS_IMETHOD GetHTMLEscapePlainText(bool *aHTMLEscapePlainText) override; \
  NS_IMETHOD GetNoBackgroundColors(bool *aNoBackgroundColors) override; \
  NS_IMETHOD GetAutoResponses(bool *aAutoResponses) override; \
  NS_IMETHOD GetSingleFormatting(bool *aSingleFormatting) override; \
  NS_IMETHOD GetNoFontSizes(bool *aNoFontSizes) override; \
  NS_IMETHOD GetNoUrlDesc(bool *aNoUrlDesc) override; \
  NS_IMETHOD GetNoImages(bool *aNoImages) 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_PRPLIACCOUNT \
  nsresult GetImAccount(imIAccount **aImAccount); \
  nsresult Observe(nsISupports *aObj, const char * aEvent, const char16_t * aData); \
  nsresult Remove(void); \
  nsresult UnInit(void); \
  nsresult Connect(void); \
  nsresult Disconnect(void); \
  nsresult CreateConversation(const nsACString& aName, prplIConversation **_retval); \
  nsresult AddBuddy(imITag *aTag, const nsACString& aName); \
  nsresult LoadBuddy(imIBuddy *aBuddy, imITag *aTag, prplIAccountBuddy **_retval); \
  nsresult RequestBuddyInfo(const nsACString& aBuddyName); \
  nsresult GetCanJoinChat(bool *aCanJoinChat); \
  nsresult GetChatRoomFields(nsISimpleEnumerator **_retval); \
  nsresult GetChatRoomDefaultFieldValues(const nsACString& aDefaultChatName, prplIChatRoomFieldValues **_retval); \
  nsresult RequestRoomInfo(prplIRoomInfoCallback *aCallback); \
  nsresult GetRoomInfo(const nsACString& aRoomName, prplIRoomInfo **_retval); \
  nsresult GetIsRoomInfoStale(bool *aIsRoomInfoStale); \
  nsresult JoinChat(prplIChatRoomFieldValues *aComponents); \
  nsresult GetNormalizedName(nsACString& aNormalizedName); \
  nsresult Normalize(const nsACString& aName, nsACString& _retval); \
  nsresult SetBool(const char * aName, bool aVal); \
  nsresult SetInt(const char * aName, int32_t aVal); \
  nsresult SetString(const char * aName, const nsACString& aVal); \
  nsresult GetConnectionErrorReason(int16_t *aConnectionErrorReason); \
  nsresult GetConnectionTarget(nsACString& aConnectionTarget); \
  nsresult GetSslStatus(nsISSLStatus **aSslStatus); \
  nsresult GetHTMLEnabled(bool *aHTMLEnabled); \
  nsresult GetHTMLEscapePlainText(bool *aHTMLEscapePlainText); \
  nsresult GetNoBackgroundColors(bool *aNoBackgroundColors); \
  nsresult GetAutoResponses(bool *aAutoResponses); \
  nsresult GetSingleFormatting(bool *aSingleFormatting); \
  nsresult GetNoFontSizes(bool *aNoFontSizes); \
  nsresult GetNoUrlDesc(bool *aNoUrlDesc); \
  nsresult GetNoImages(bool *aNoImages); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_PRPLIACCOUNT(_to) \
  NS_IMETHOD GetImAccount(imIAccount **aImAccount) override { return _to GetImAccount(aImAccount); } \
  NS_IMETHOD Observe(nsISupports *aObj, const char * aEvent, const char16_t * aData) override { return _to Observe(aObj, aEvent, aData); } \
  NS_IMETHOD Remove(void) override { return _to Remove(); } \
  NS_IMETHOD UnInit(void) override { return _to UnInit(); } \
  NS_IMETHOD Connect(void) override { return _to Connect(); } \
  NS_IMETHOD Disconnect(void) override { return _to Disconnect(); } \
  NS_IMETHOD CreateConversation(const nsACString& aName, prplIConversation **_retval) override { return _to CreateConversation(aName, _retval); } \
  NS_IMETHOD AddBuddy(imITag *aTag, const nsACString& aName) override { return _to AddBuddy(aTag, aName); } \
  NS_IMETHOD LoadBuddy(imIBuddy *aBuddy, imITag *aTag, prplIAccountBuddy **_retval) override { return _to LoadBuddy(aBuddy, aTag, _retval); } \
  NS_IMETHOD RequestBuddyInfo(const nsACString& aBuddyName) override { return _to RequestBuddyInfo(aBuddyName); } \
  NS_IMETHOD GetCanJoinChat(bool *aCanJoinChat) override { return _to GetCanJoinChat(aCanJoinChat); } \
  NS_IMETHOD GetChatRoomFields(nsISimpleEnumerator **_retval) override { return _to GetChatRoomFields(_retval); } \
  NS_IMETHOD GetChatRoomDefaultFieldValues(const nsACString& aDefaultChatName, prplIChatRoomFieldValues **_retval) override { return _to GetChatRoomDefaultFieldValues(aDefaultChatName, _retval); } \
  NS_IMETHOD RequestRoomInfo(prplIRoomInfoCallback *aCallback) override { return _to RequestRoomInfo(aCallback); } \
  NS_IMETHOD GetRoomInfo(const nsACString& aRoomName, prplIRoomInfo **_retval) override { return _to GetRoomInfo(aRoomName, _retval); } \
  NS_IMETHOD GetIsRoomInfoStale(bool *aIsRoomInfoStale) override { return _to GetIsRoomInfoStale(aIsRoomInfoStale); } \
  NS_IMETHOD JoinChat(prplIChatRoomFieldValues *aComponents) override { return _to JoinChat(aComponents); } \
  NS_IMETHOD GetNormalizedName(nsACString& aNormalizedName) override { return _to GetNormalizedName(aNormalizedName); } \
  NS_IMETHOD Normalize(const nsACString& aName, nsACString& _retval) override { return _to Normalize(aName, _retval); } \
  NS_IMETHOD SetBool(const char * aName, bool aVal) override { return _to SetBool(aName, aVal); } \
  NS_IMETHOD SetInt(const char * aName, int32_t aVal) override { return _to SetInt(aName, aVal); } \
  NS_IMETHOD SetString(const char * aName, const nsACString& aVal) override { return _to SetString(aName, aVal); } \
  NS_IMETHOD GetConnectionErrorReason(int16_t *aConnectionErrorReason) override { return _to GetConnectionErrorReason(aConnectionErrorReason); } \
  NS_IMETHOD GetConnectionTarget(nsACString& aConnectionTarget) override { return _to GetConnectionTarget(aConnectionTarget); } \
  NS_IMETHOD GetSslStatus(nsISSLStatus **aSslStatus) override { return _to GetSslStatus(aSslStatus); } \
  NS_IMETHOD GetHTMLEnabled(bool *aHTMLEnabled) override { return _to GetHTMLEnabled(aHTMLEnabled); } \
  NS_IMETHOD GetHTMLEscapePlainText(bool *aHTMLEscapePlainText) override { return _to GetHTMLEscapePlainText(aHTMLEscapePlainText); } \
  NS_IMETHOD GetNoBackgroundColors(bool *aNoBackgroundColors) override { return _to GetNoBackgroundColors(aNoBackgroundColors); } \
  NS_IMETHOD GetAutoResponses(bool *aAutoResponses) override { return _to GetAutoResponses(aAutoResponses); } \
  NS_IMETHOD GetSingleFormatting(bool *aSingleFormatting) override { return _to GetSingleFormatting(aSingleFormatting); } \
  NS_IMETHOD GetNoFontSizes(bool *aNoFontSizes) override { return _to GetNoFontSizes(aNoFontSizes); } \
  NS_IMETHOD GetNoUrlDesc(bool *aNoUrlDesc) override { return _to GetNoUrlDesc(aNoUrlDesc); } \
  NS_IMETHOD GetNoImages(bool *aNoImages) override { return _to GetNoImages(aNoImages); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_PRPLIACCOUNT(_to) \
  NS_IMETHOD GetImAccount(imIAccount **aImAccount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImAccount(aImAccount); } \
  NS_IMETHOD Observe(nsISupports *aObj, const char * aEvent, const char16_t * aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Observe(aObj, aEvent, aData); } \
  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(); } \
  NS_IMETHOD Connect(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Connect(); } \
  NS_IMETHOD Disconnect(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Disconnect(); } \
  NS_IMETHOD CreateConversation(const nsACString& aName, prplIConversation **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateConversation(aName, _retval); } \
  NS_IMETHOD AddBuddy(imITag *aTag, const nsACString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddBuddy(aTag, aName); } \
  NS_IMETHOD LoadBuddy(imIBuddy *aBuddy, imITag *aTag, prplIAccountBuddy **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadBuddy(aBuddy, aTag, _retval); } \
  NS_IMETHOD RequestBuddyInfo(const nsACString& aBuddyName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestBuddyInfo(aBuddyName); } \
  NS_IMETHOD GetCanJoinChat(bool *aCanJoinChat) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanJoinChat(aCanJoinChat); } \
  NS_IMETHOD GetChatRoomFields(nsISimpleEnumerator **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChatRoomFields(_retval); } \
  NS_IMETHOD GetChatRoomDefaultFieldValues(const nsACString& aDefaultChatName, prplIChatRoomFieldValues **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChatRoomDefaultFieldValues(aDefaultChatName, _retval); } \
  NS_IMETHOD RequestRoomInfo(prplIRoomInfoCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestRoomInfo(aCallback); } \
  NS_IMETHOD GetRoomInfo(const nsACString& aRoomName, prplIRoomInfo **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRoomInfo(aRoomName, _retval); } \
  NS_IMETHOD GetIsRoomInfoStale(bool *aIsRoomInfoStale) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsRoomInfoStale(aIsRoomInfoStale); } \
  NS_IMETHOD JoinChat(prplIChatRoomFieldValues *aComponents) override { return !_to ? NS_ERROR_NULL_POINTER : _to->JoinChat(aComponents); } \
  NS_IMETHOD GetNormalizedName(nsACString& aNormalizedName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNormalizedName(aNormalizedName); } \
  NS_IMETHOD Normalize(const nsACString& aName, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Normalize(aName, _retval); } \
  NS_IMETHOD SetBool(const char * aName, bool aVal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBool(aName, aVal); } \
  NS_IMETHOD SetInt(const char * aName, int32_t aVal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInt(aName, aVal); } \
  NS_IMETHOD SetString(const char * aName, const nsACString& aVal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetString(aName, aVal); } \
  NS_IMETHOD GetConnectionErrorReason(int16_t *aConnectionErrorReason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConnectionErrorReason(aConnectionErrorReason); } \
  NS_IMETHOD GetConnectionTarget(nsACString& aConnectionTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConnectionTarget(aConnectionTarget); } \
  NS_IMETHOD GetSslStatus(nsISSLStatus **aSslStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSslStatus(aSslStatus); } \
  NS_IMETHOD GetHTMLEnabled(bool *aHTMLEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHTMLEnabled(aHTMLEnabled); } \
  NS_IMETHOD GetHTMLEscapePlainText(bool *aHTMLEscapePlainText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHTMLEscapePlainText(aHTMLEscapePlainText); } \
  NS_IMETHOD GetNoBackgroundColors(bool *aNoBackgroundColors) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNoBackgroundColors(aNoBackgroundColors); } \
  NS_IMETHOD GetAutoResponses(bool *aAutoResponses) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAutoResponses(aAutoResponses); } \
  NS_IMETHOD GetSingleFormatting(bool *aSingleFormatting) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSingleFormatting(aSingleFormatting); } \
  NS_IMETHOD GetNoFontSizes(bool *aNoFontSizes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNoFontSizes(aNoFontSizes); } \
  NS_IMETHOD GetNoUrlDesc(bool *aNoUrlDesc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNoUrlDesc(aNoUrlDesc); } \
  NS_IMETHOD GetNoImages(bool *aNoImages) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNoImages(aNoImages); } 


/* starting interface:    imIDebugMessage */
#define IMIDEBUGMESSAGE_IID_STR "488959b4-992e-4626-ae96-beaf6adc4a77"

#define IMIDEBUGMESSAGE_IID \
  {0x488959b4, 0x992e, 0x4626, \
    { 0xae, 0x96, 0xbe, 0xaf, 0x6a, 0xdc, 0x4a, 0x77 }}

class NS_NO_VTABLE imIDebugMessage : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(IMIDEBUGMESSAGE_IID)

  enum {
    LEVEL_DEBUG = 1,
    LEVEL_LOG = 2,
    LEVEL_WARNING = 3,
    LEVEL_ERROR = 4
  };

  /* readonly attribute short logLevel; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLogLevel(int16_t *aLogLevel) = 0;

  /* readonly attribute nsIScriptError message; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMessage(nsIScriptError **aMessage) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(imIDebugMessage, IMIDEBUGMESSAGE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMIDEBUGMESSAGE \
  NS_IMETHOD GetLogLevel(int16_t *aLogLevel) override; \
  NS_IMETHOD GetMessage(nsIScriptError **aMessage) 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_IMIDEBUGMESSAGE \
  nsresult GetLogLevel(int16_t *aLogLevel); \
  nsresult GetMessage(nsIScriptError **aMessage); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMIDEBUGMESSAGE(_to) \
  NS_IMETHOD GetLogLevel(int16_t *aLogLevel) override { return _to GetLogLevel(aLogLevel); } \
  NS_IMETHOD GetMessage(nsIScriptError **aMessage) override { return _to GetMessage(aMessage); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMIDEBUGMESSAGE(_to) \
  NS_IMETHOD GetLogLevel(int16_t *aLogLevel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLogLevel(aLogLevel); } \
  NS_IMETHOD GetMessage(nsIScriptError **aMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessage(aMessage); } 


/* starting interface:    imIAccount */
#define IMIACCOUNT_IID_STR "20a85b44-e220-4f23-85bf-f8523d1a2b08"

#define IMIACCOUNT_IID \
  {0x20a85b44, 0xe220, 0x4f23, \
    { 0x85, 0xbf, 0xf8, 0x52, 0x3d, 0x1a, 0x2b, 0x08 }}

class NS_NO_VTABLE imIAccount : public prplIAccount {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(IMIACCOUNT_IID)

  /* void checkAutoLogin (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CheckAutoLogin(void) = 0;

  /* void cancelReconnection (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CancelReconnection(void) = 0;

  /* readonly attribute AUTF8String name; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetName(nsACString& aName) = 0;

  /* readonly attribute AUTF8String id; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetId(nsACString& aId) = 0;

  /* readonly attribute unsigned long numericId; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNumericId(uint32_t *aNumericId) = 0;

  /* readonly attribute prplIProtocol protocol; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetProtocol(prplIProtocol **aProtocol) = 0;

  /* readonly attribute prplIAccount prplAccount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPrplAccount(prplIAccount **aPrplAccount) = 0;

  /* void save (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Save(void) = 0;

  /* attribute boolean autoLogin; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAutoLogin(bool *aAutoLogin) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAutoLogin(bool aAutoLogin) = 0;

  enum {
    FIRST_CONNECTION_OK = 0,
    FIRST_CONNECTION_UNKNOWN = 1,
    FIRST_CONNECTION_PENDING = 2,
    FIRST_CONNECTION_CRASHED = 4
  };

  /* attribute short firstConnectionState; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFirstConnectionState(int16_t *aFirstConnectionState) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFirstConnectionState(int16_t aFirstConnectionState) = 0;

  /* attribute AUTF8String password; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPassword(nsACString& aPassword) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetPassword(const nsACString& aPassword) = 0;

  /* attribute AUTF8String alias; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAlias(nsACString& aAlias) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAlias(const nsACString& aAlias) = 0;

  /* readonly attribute AUTF8String connectionStateMsg; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetConnectionStateMsg(nsACString& aConnectionStateMsg) = 0;

  /* readonly attribute unsigned short reconnectAttempt; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetReconnectAttempt(uint16_t *aReconnectAttempt) = 0;

  /* readonly attribute long long timeOfNextReconnect; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTimeOfNextReconnect(int64_t *aTimeOfNextReconnect) = 0;

  /* readonly attribute long long timeOfLastConnect; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTimeOfLastConnect(int64_t *aTimeOfLastConnect) = 0;

  enum {
    ERROR_UNKNOWN_PRPL = 42,
    ERROR_CRASHED = 43,
    ERROR_MISSING_PASSWORD = 44
  };

  /* readonly attribute AUTF8String connectionErrorMessage; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetConnectionErrorMessage(nsACString& aConnectionErrorMessage) = 0;

  enum {
    STATE_DISCONNECTED = 0,
    STATE_CONNECTED = 1,
    STATE_CONNECTING = 2,
    STATE_DISCONNECTING = 3
  };

  /* readonly attribute short connectionState; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetConnectionState(int16_t *aConnectionState) = 0;

  /* readonly attribute boolean disconnected; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDisconnected(bool *aDisconnected) = 0;

  /* readonly attribute boolean connected; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetConnected(bool *aConnected) = 0;

  /* readonly attribute boolean connecting; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetConnecting(bool *aConnecting) = 0;

  /* readonly attribute boolean disconnecting; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDisconnecting(bool *aDisconnecting) = 0;

  /* void logDebugMessage (in nsIScriptError aMessage, in short aLevel); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LogDebugMessage(nsIScriptError *aMessage, int16_t aLevel) = 0;

  /* void getDebugMessages ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out imIDebugMessage aMessages); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDebugMessages(uint32_t *aCount, imIDebugMessage ***aMessages) = 0;

  /* attribute imIUserStatusInfo observedStatusInfo; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetObservedStatusInfo(imIUserStatusInfo **aObservedStatusInfo) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetObservedStatusInfo(imIUserStatusInfo *aObservedStatusInfo) = 0;

  /* attribute imIUserStatusInfo statusInfo; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStatusInfo(imIUserStatusInfo **aStatusInfo) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetStatusInfo(imIUserStatusInfo *aStatusInfo) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(imIAccount, IMIACCOUNT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMIACCOUNT \
  NS_IMETHOD CheckAutoLogin(void) override; \
  NS_IMETHOD CancelReconnection(void) override; \
  NS_IMETHOD GetName(nsACString& aName) override; \
  NS_IMETHOD GetId(nsACString& aId) override; \
  NS_IMETHOD GetNumericId(uint32_t *aNumericId) override; \
  NS_IMETHOD GetProtocol(prplIProtocol **aProtocol) override; \
  NS_IMETHOD GetPrplAccount(prplIAccount **aPrplAccount) override; \
  NS_IMETHOD Save(void) override; \
  NS_IMETHOD GetAutoLogin(bool *aAutoLogin) override; \
  NS_IMETHOD SetAutoLogin(bool aAutoLogin) override; \
  NS_IMETHOD GetFirstConnectionState(int16_t *aFirstConnectionState) override; \
  NS_IMETHOD SetFirstConnectionState(int16_t aFirstConnectionState) override; \
  NS_IMETHOD GetPassword(nsACString& aPassword) override; \
  NS_IMETHOD SetPassword(const nsACString& aPassword) override; \
  NS_IMETHOD GetAlias(nsACString& aAlias) override; \
  NS_IMETHOD SetAlias(const nsACString& aAlias) override; \
  NS_IMETHOD GetConnectionStateMsg(nsACString& aConnectionStateMsg) override; \
  NS_IMETHOD GetReconnectAttempt(uint16_t *aReconnectAttempt) override; \
  NS_IMETHOD GetTimeOfNextReconnect(int64_t *aTimeOfNextReconnect) override; \
  NS_IMETHOD GetTimeOfLastConnect(int64_t *aTimeOfLastConnect) override; \
  NS_IMETHOD GetConnectionErrorMessage(nsACString& aConnectionErrorMessage) override; \
  NS_IMETHOD GetConnectionState(int16_t *aConnectionState) override; \
  NS_IMETHOD GetDisconnected(bool *aDisconnected) override; \
  NS_IMETHOD GetConnected(bool *aConnected) override; \
  NS_IMETHOD GetConnecting(bool *aConnecting) override; \
  NS_IMETHOD GetDisconnecting(bool *aDisconnecting) override; \
  NS_IMETHOD LogDebugMessage(nsIScriptError *aMessage, int16_t aLevel) override; \
  NS_IMETHOD GetDebugMessages(uint32_t *aCount, imIDebugMessage ***aMessages) override; \
  NS_IMETHOD GetObservedStatusInfo(imIUserStatusInfo **aObservedStatusInfo) override; \
  NS_IMETHOD SetObservedStatusInfo(imIUserStatusInfo *aObservedStatusInfo) override; \
  NS_IMETHOD GetStatusInfo(imIUserStatusInfo **aStatusInfo) override; \
  NS_IMETHOD SetStatusInfo(imIUserStatusInfo *aStatusInfo) 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_IMIACCOUNT \
  nsresult CheckAutoLogin(void); \
  nsresult CancelReconnection(void); \
  nsresult GetName(nsACString& aName); \
  nsresult GetId(nsACString& aId); \
  nsresult GetNumericId(uint32_t *aNumericId); \
  nsresult GetProtocol(prplIProtocol **aProtocol); \
  nsresult GetPrplAccount(prplIAccount **aPrplAccount); \
  nsresult Save(void); \
  nsresult GetAutoLogin(bool *aAutoLogin); \
  nsresult SetAutoLogin(bool aAutoLogin); \
  nsresult GetFirstConnectionState(int16_t *aFirstConnectionState); \
  nsresult SetFirstConnectionState(int16_t aFirstConnectionState); \
  nsresult GetPassword(nsACString& aPassword); \
  nsresult SetPassword(const nsACString& aPassword); \
  nsresult GetAlias(nsACString& aAlias); \
  nsresult SetAlias(const nsACString& aAlias); \
  nsresult GetConnectionStateMsg(nsACString& aConnectionStateMsg); \
  nsresult GetReconnectAttempt(uint16_t *aReconnectAttempt); \
  nsresult GetTimeOfNextReconnect(int64_t *aTimeOfNextReconnect); \
  nsresult GetTimeOfLastConnect(int64_t *aTimeOfLastConnect); \
  nsresult GetConnectionErrorMessage(nsACString& aConnectionErrorMessage); \
  nsresult GetConnectionState(int16_t *aConnectionState); \
  nsresult GetDisconnected(bool *aDisconnected); \
  nsresult GetConnected(bool *aConnected); \
  nsresult GetConnecting(bool *aConnecting); \
  nsresult GetDisconnecting(bool *aDisconnecting); \
  nsresult LogDebugMessage(nsIScriptError *aMessage, int16_t aLevel); \
  nsresult GetDebugMessages(uint32_t *aCount, imIDebugMessage ***aMessages); \
  nsresult GetObservedStatusInfo(imIUserStatusInfo **aObservedStatusInfo); \
  nsresult SetObservedStatusInfo(imIUserStatusInfo *aObservedStatusInfo); \
  nsresult GetStatusInfo(imIUserStatusInfo **aStatusInfo); \
  nsresult SetStatusInfo(imIUserStatusInfo *aStatusInfo); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMIACCOUNT(_to) \
  NS_IMETHOD CheckAutoLogin(void) override { return _to CheckAutoLogin(); } \
  NS_IMETHOD CancelReconnection(void) override { return _to CancelReconnection(); } \
  NS_IMETHOD GetName(nsACString& aName) override { return _to GetName(aName); } \
  NS_IMETHOD GetId(nsACString& aId) override { return _to GetId(aId); } \
  NS_IMETHOD GetNumericId(uint32_t *aNumericId) override { return _to GetNumericId(aNumericId); } \
  NS_IMETHOD GetProtocol(prplIProtocol **aProtocol) override { return _to GetProtocol(aProtocol); } \
  NS_IMETHOD GetPrplAccount(prplIAccount **aPrplAccount) override { return _to GetPrplAccount(aPrplAccount); } \
  NS_IMETHOD Save(void) override { return _to Save(); } \
  NS_IMETHOD GetAutoLogin(bool *aAutoLogin) override { return _to GetAutoLogin(aAutoLogin); } \
  NS_IMETHOD SetAutoLogin(bool aAutoLogin) override { return _to SetAutoLogin(aAutoLogin); } \
  NS_IMETHOD GetFirstConnectionState(int16_t *aFirstConnectionState) override { return _to GetFirstConnectionState(aFirstConnectionState); } \
  NS_IMETHOD SetFirstConnectionState(int16_t aFirstConnectionState) override { return _to SetFirstConnectionState(aFirstConnectionState); } \
  NS_IMETHOD GetPassword(nsACString& aPassword) override { return _to GetPassword(aPassword); } \
  NS_IMETHOD SetPassword(const nsACString& aPassword) override { return _to SetPassword(aPassword); } \
  NS_IMETHOD GetAlias(nsACString& aAlias) override { return _to GetAlias(aAlias); } \
  NS_IMETHOD SetAlias(const nsACString& aAlias) override { return _to SetAlias(aAlias); } \
  NS_IMETHOD GetConnectionStateMsg(nsACString& aConnectionStateMsg) override { return _to GetConnectionStateMsg(aConnectionStateMsg); } \
  NS_IMETHOD GetReconnectAttempt(uint16_t *aReconnectAttempt) override { return _to GetReconnectAttempt(aReconnectAttempt); } \
  NS_IMETHOD GetTimeOfNextReconnect(int64_t *aTimeOfNextReconnect) override { return _to GetTimeOfNextReconnect(aTimeOfNextReconnect); } \
  NS_IMETHOD GetTimeOfLastConnect(int64_t *aTimeOfLastConnect) override { return _to GetTimeOfLastConnect(aTimeOfLastConnect); } \
  NS_IMETHOD GetConnectionErrorMessage(nsACString& aConnectionErrorMessage) override { return _to GetConnectionErrorMessage(aConnectionErrorMessage); } \
  NS_IMETHOD GetConnectionState(int16_t *aConnectionState) override { return _to GetConnectionState(aConnectionState); } \
  NS_IMETHOD GetDisconnected(bool *aDisconnected) override { return _to GetDisconnected(aDisconnected); } \
  NS_IMETHOD GetConnected(bool *aConnected) override { return _to GetConnected(aConnected); } \
  NS_IMETHOD GetConnecting(bool *aConnecting) override { return _to GetConnecting(aConnecting); } \
  NS_IMETHOD GetDisconnecting(bool *aDisconnecting) override { return _to GetDisconnecting(aDisconnecting); } \
  NS_IMETHOD LogDebugMessage(nsIScriptError *aMessage, int16_t aLevel) override { return _to LogDebugMessage(aMessage, aLevel); } \
  NS_IMETHOD GetDebugMessages(uint32_t *aCount, imIDebugMessage ***aMessages) override { return _to GetDebugMessages(aCount, aMessages); } \
  NS_IMETHOD GetObservedStatusInfo(imIUserStatusInfo **aObservedStatusInfo) override { return _to GetObservedStatusInfo(aObservedStatusInfo); } \
  NS_IMETHOD SetObservedStatusInfo(imIUserStatusInfo *aObservedStatusInfo) override { return _to SetObservedStatusInfo(aObservedStatusInfo); } \
  NS_IMETHOD GetStatusInfo(imIUserStatusInfo **aStatusInfo) override { return _to GetStatusInfo(aStatusInfo); } \
  NS_IMETHOD SetStatusInfo(imIUserStatusInfo *aStatusInfo) override { return _to SetStatusInfo(aStatusInfo); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMIACCOUNT(_to) \
  NS_IMETHOD CheckAutoLogin(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckAutoLogin(); } \
  NS_IMETHOD CancelReconnection(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelReconnection(); } \
  NS_IMETHOD GetName(nsACString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD GetId(nsACString& aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
  NS_IMETHOD GetNumericId(uint32_t *aNumericId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumericId(aNumericId); } \
  NS_IMETHOD GetProtocol(prplIProtocol **aProtocol) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProtocol(aProtocol); } \
  NS_IMETHOD GetPrplAccount(prplIAccount **aPrplAccount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrplAccount(aPrplAccount); } \
  NS_IMETHOD Save(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Save(); } \
  NS_IMETHOD GetAutoLogin(bool *aAutoLogin) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAutoLogin(aAutoLogin); } \
  NS_IMETHOD SetAutoLogin(bool aAutoLogin) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAutoLogin(aAutoLogin); } \
  NS_IMETHOD GetFirstConnectionState(int16_t *aFirstConnectionState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstConnectionState(aFirstConnectionState); } \
  NS_IMETHOD SetFirstConnectionState(int16_t aFirstConnectionState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFirstConnectionState(aFirstConnectionState); } \
  NS_IMETHOD GetPassword(nsACString& aPassword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPassword(aPassword); } \
  NS_IMETHOD SetPassword(const nsACString& aPassword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPassword(aPassword); } \
  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 GetConnectionStateMsg(nsACString& aConnectionStateMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConnectionStateMsg(aConnectionStateMsg); } \
  NS_IMETHOD GetReconnectAttempt(uint16_t *aReconnectAttempt) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReconnectAttempt(aReconnectAttempt); } \
  NS_IMETHOD GetTimeOfNextReconnect(int64_t *aTimeOfNextReconnect) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimeOfNextReconnect(aTimeOfNextReconnect); } \
  NS_IMETHOD GetTimeOfLastConnect(int64_t *aTimeOfLastConnect) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimeOfLastConnect(aTimeOfLastConnect); } \
  NS_IMETHOD GetConnectionErrorMessage(nsACString& aConnectionErrorMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConnectionErrorMessage(aConnectionErrorMessage); } \
  NS_IMETHOD GetConnectionState(int16_t *aConnectionState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConnectionState(aConnectionState); } \
  NS_IMETHOD GetDisconnected(bool *aDisconnected) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisconnected(aDisconnected); } \
  NS_IMETHOD GetConnected(bool *aConnected) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConnected(aConnected); } \
  NS_IMETHOD GetConnecting(bool *aConnecting) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConnecting(aConnecting); } \
  NS_IMETHOD GetDisconnecting(bool *aDisconnecting) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisconnecting(aDisconnecting); } \
  NS_IMETHOD LogDebugMessage(nsIScriptError *aMessage, int16_t aLevel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LogDebugMessage(aMessage, aLevel); } \
  NS_IMETHOD GetDebugMessages(uint32_t *aCount, imIDebugMessage ***aMessages) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDebugMessages(aCount, aMessages); } \
  NS_IMETHOD GetObservedStatusInfo(imIUserStatusInfo **aObservedStatusInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObservedStatusInfo(aObservedStatusInfo); } \
  NS_IMETHOD SetObservedStatusInfo(imIUserStatusInfo *aObservedStatusInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetObservedStatusInfo(aObservedStatusInfo); } \
  NS_IMETHOD GetStatusInfo(imIUserStatusInfo **aStatusInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatusInfo(aStatusInfo); } \
  NS_IMETHOD SetStatusInfo(imIUserStatusInfo *aStatusInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStatusInfo(aStatusInfo); } 


#endif /* __gen_imIAccount_h__ */