/usr/include/thunderbird/prplIConversation.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/prplIConversation.idl
*/
#ifndef __gen_prplIConversation_h__
#define __gen_prplIConversation_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsISimpleEnumerator_h__
#include "nsISimpleEnumerator.h"
#endif
#ifndef __gen_nsIObserver_h__
#include "nsIObserver.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class prplIAccountBuddy; /* forward declaration */
class imIAccount; /* forward declaration */
class imIOutgoingMessage; /* forward declaration */
class imIMessage; /* forward declaration */
class nsIURI; /* forward declaration */
class nsIDOMDocument; /* forward declaration */
class prplIChatRoomFieldValues; /* forward declaration */
/* starting interface: prplIConversation */
#define PRPLICONVERSATION_IID_STR "f71c58d6-2c47-4468-934b-b1c61462c01a"
#define PRPLICONVERSATION_IID \
{0xf71c58d6, 0x2c47, 0x4468, \
{ 0x93, 0x4b, 0xb1, 0xc6, 0x14, 0x62, 0xc0, 0x1a }}
class NS_NO_VTABLE prplIConversation : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(PRPLICONVERSATION_IID)
/* readonly attribute boolean isChat; */
NS_IMETHOD GetIsChat(bool *aIsChat) = 0;
/* readonly attribute imIAccount account; */
NS_IMETHOD GetAccount(imIAccount * *aAccount) = 0;
/* readonly attribute AUTF8String name; */
NS_IMETHOD GetName(nsACString & aName) = 0;
/* readonly attribute AUTF8String normalizedName; */
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) = 0;
/* readonly attribute AUTF8String title; */
NS_IMETHOD GetTitle(nsACString & aTitle) = 0;
/* readonly attribute PRTime startDate; */
NS_IMETHOD GetStartDate(PRTime *aStartDate) = 0;
/* attribute unsigned long id; */
NS_IMETHOD GetId(uint32_t *aId) = 0;
NS_IMETHOD SetId(uint32_t aId) = 0;
/* void sendMsg (in AUTF8String aMsg); */
NS_IMETHOD SendMsg(const nsACString & aMsg) = 0;
/* void prepareForSending (in imIOutgoingMessage aMsg, [optional] out unsigned long aMsgCount, [array, size_is (aMsgCount), retval] out wstring aMsgs); */
NS_IMETHOD PrepareForSending(imIOutgoingMessage *aMsg, uint32_t *aMsgCount, char16_t * **aMsgs) = 0;
/* void prepareForDisplaying (in imIMessage aMsg); */
NS_IMETHOD PrepareForDisplaying(imIMessage *aMsg) = 0;
/* long sendTyping (in AUTF8String aString); */
NS_IMETHOD SendTyping(const nsACString & aString, int32_t *_retval) = 0;
enum {
NO_TYPING_LIMIT = 2147483647
};
/* void unInit (); */
NS_IMETHOD UnInit(void) = 0;
/* void close (); */
NS_IMETHOD Close(void) = 0;
/* void addObserver (in nsIObserver aObserver); */
NS_IMETHOD AddObserver(nsIObserver *aObserver) = 0;
/* void removeObserver (in nsIObserver aObserver); */
NS_IMETHOD RemoveObserver(nsIObserver *aObserver) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(prplIConversation, PRPLICONVERSATION_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_PRPLICONVERSATION \
NS_IMETHOD GetIsChat(bool *aIsChat) override; \
NS_IMETHOD GetAccount(imIAccount * *aAccount) override; \
NS_IMETHOD GetName(nsACString & aName) override; \
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) override; \
NS_IMETHOD GetTitle(nsACString & aTitle) override; \
NS_IMETHOD GetStartDate(PRTime *aStartDate) override; \
NS_IMETHOD GetId(uint32_t *aId) override; \
NS_IMETHOD SetId(uint32_t aId) override; \
NS_IMETHOD SendMsg(const nsACString & aMsg) override; \
NS_IMETHOD PrepareForSending(imIOutgoingMessage *aMsg, uint32_t *aMsgCount, char16_t * **aMsgs) override; \
NS_IMETHOD PrepareForDisplaying(imIMessage *aMsg) override; \
NS_IMETHOD SendTyping(const nsACString & aString, int32_t *_retval) override; \
NS_IMETHOD UnInit(void) override; \
NS_IMETHOD Close(void) override; \
NS_IMETHOD AddObserver(nsIObserver *aObserver) override; \
NS_IMETHOD RemoveObserver(nsIObserver *aObserver) 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_PRPLICONVERSATION \
NS_METHOD GetIsChat(bool *aIsChat); \
NS_METHOD GetAccount(imIAccount * *aAccount); \
NS_METHOD GetName(nsACString & aName); \
NS_METHOD GetNormalizedName(nsACString & aNormalizedName); \
NS_METHOD GetTitle(nsACString & aTitle); \
NS_METHOD GetStartDate(PRTime *aStartDate); \
NS_METHOD GetId(uint32_t *aId); \
NS_METHOD SetId(uint32_t aId); \
NS_METHOD SendMsg(const nsACString & aMsg); \
NS_METHOD PrepareForSending(imIOutgoingMessage *aMsg, uint32_t *aMsgCount, char16_t * **aMsgs); \
NS_METHOD PrepareForDisplaying(imIMessage *aMsg); \
NS_METHOD SendTyping(const nsACString & aString, int32_t *_retval); \
NS_METHOD UnInit(void); \
NS_METHOD Close(void); \
NS_METHOD AddObserver(nsIObserver *aObserver); \
NS_METHOD RemoveObserver(nsIObserver *aObserver);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_PRPLICONVERSATION(_to) \
NS_IMETHOD GetIsChat(bool *aIsChat) override { return _to GetIsChat(aIsChat); } \
NS_IMETHOD GetAccount(imIAccount * *aAccount) override { return _to GetAccount(aAccount); } \
NS_IMETHOD GetName(nsACString & aName) override { return _to GetName(aName); } \
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) override { return _to GetNormalizedName(aNormalizedName); } \
NS_IMETHOD GetTitle(nsACString & aTitle) override { return _to GetTitle(aTitle); } \
NS_IMETHOD GetStartDate(PRTime *aStartDate) override { return _to GetStartDate(aStartDate); } \
NS_IMETHOD GetId(uint32_t *aId) override { return _to GetId(aId); } \
NS_IMETHOD SetId(uint32_t aId) override { return _to SetId(aId); } \
NS_IMETHOD SendMsg(const nsACString & aMsg) override { return _to SendMsg(aMsg); } \
NS_IMETHOD PrepareForSending(imIOutgoingMessage *aMsg, uint32_t *aMsgCount, char16_t * **aMsgs) override { return _to PrepareForSending(aMsg, aMsgCount, aMsgs); } \
NS_IMETHOD PrepareForDisplaying(imIMessage *aMsg) override { return _to PrepareForDisplaying(aMsg); } \
NS_IMETHOD SendTyping(const nsACString & aString, int32_t *_retval) override { return _to SendTyping(aString, _retval); } \
NS_IMETHOD UnInit(void) override { return _to UnInit(); } \
NS_IMETHOD Close(void) override { return _to Close(); } \
NS_IMETHOD AddObserver(nsIObserver *aObserver) override { return _to AddObserver(aObserver); } \
NS_IMETHOD RemoveObserver(nsIObserver *aObserver) override { return _to RemoveObserver(aObserver); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_PRPLICONVERSATION(_to) \
NS_IMETHOD GetIsChat(bool *aIsChat) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsChat(aIsChat); } \
NS_IMETHOD GetAccount(imIAccount * *aAccount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccount(aAccount); } \
NS_IMETHOD GetName(nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_IMETHOD GetNormalizedName(nsACString & aNormalizedName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNormalizedName(aNormalizedName); } \
NS_IMETHOD GetTitle(nsACString & aTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
NS_IMETHOD GetStartDate(PRTime *aStartDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartDate(aStartDate); } \
NS_IMETHOD GetId(uint32_t *aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
NS_IMETHOD SetId(uint32_t aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetId(aId); } \
NS_IMETHOD SendMsg(const nsACString & aMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendMsg(aMsg); } \
NS_IMETHOD PrepareForSending(imIOutgoingMessage *aMsg, uint32_t *aMsgCount, char16_t * **aMsgs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PrepareForSending(aMsg, aMsgCount, aMsgs); } \
NS_IMETHOD PrepareForDisplaying(imIMessage *aMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PrepareForDisplaying(aMsg); } \
NS_IMETHOD SendTyping(const nsACString & aString, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendTyping(aString, _retval); } \
NS_IMETHOD UnInit(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnInit(); } \
NS_IMETHOD Close(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
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); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public prplIConversation
{
public:
NS_DECL_ISUPPORTS
NS_DECL_PRPLICONVERSATION
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, prplIConversation)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* readonly attribute boolean isChat; */
NS_IMETHODIMP _MYCLASS_::GetIsChat(bool *aIsChat)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute imIAccount account; */
NS_IMETHODIMP _MYCLASS_::GetAccount(imIAccount * *aAccount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String name; */
NS_IMETHODIMP _MYCLASS_::GetName(nsACString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String normalizedName; */
NS_IMETHODIMP _MYCLASS_::GetNormalizedName(nsACString & aNormalizedName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String title; */
NS_IMETHODIMP _MYCLASS_::GetTitle(nsACString & aTitle)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute PRTime startDate; */
NS_IMETHODIMP _MYCLASS_::GetStartDate(PRTime *aStartDate)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long id; */
NS_IMETHODIMP _MYCLASS_::GetId(uint32_t *aId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetId(uint32_t aId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void sendMsg (in AUTF8String aMsg); */
NS_IMETHODIMP _MYCLASS_::SendMsg(const nsACString & aMsg)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void prepareForSending (in imIOutgoingMessage aMsg, [optional] out unsigned long aMsgCount, [array, size_is (aMsgCount), retval] out wstring aMsgs); */
NS_IMETHODIMP _MYCLASS_::PrepareForSending(imIOutgoingMessage *aMsg, uint32_t *aMsgCount, char16_t * **aMsgs)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void prepareForDisplaying (in imIMessage aMsg); */
NS_IMETHODIMP _MYCLASS_::PrepareForDisplaying(imIMessage *aMsg)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long sendTyping (in AUTF8String aString); */
NS_IMETHODIMP _MYCLASS_::SendTyping(const nsACString & aString, int32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unInit (); */
NS_IMETHODIMP _MYCLASS_::UnInit()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void close (); */
NS_IMETHODIMP _MYCLASS_::Close()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addObserver (in nsIObserver aObserver); */
NS_IMETHODIMP _MYCLASS_::AddObserver(nsIObserver *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeObserver (in nsIObserver aObserver); */
NS_IMETHODIMP _MYCLASS_::RemoveObserver(nsIObserver *aObserver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: prplIConvIM */
#define PRPLICONVIM_IID_STR "c0b5b647-b0ec-4dc6-9e53-31a762a30a6e"
#define PRPLICONVIM_IID \
{0xc0b5b647, 0xb0ec, 0x4dc6, \
{ 0x9e, 0x53, 0x31, 0xa7, 0x62, 0xa3, 0x0a, 0x6e }}
class NS_NO_VTABLE prplIConvIM : public prplIConversation {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(PRPLICONVIM_IID)
/* readonly attribute prplIAccountBuddy buddy; */
NS_IMETHOD GetBuddy(prplIAccountBuddy * *aBuddy) = 0;
enum {
NOT_TYPING = 0,
TYPING = 1,
TYPED = 2
};
/* readonly attribute short typingState; */
NS_IMETHOD GetTypingState(int16_t *aTypingState) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(prplIConvIM, PRPLICONVIM_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_PRPLICONVIM \
NS_IMETHOD GetBuddy(prplIAccountBuddy * *aBuddy) override; \
NS_IMETHOD GetTypingState(int16_t *aTypingState) 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_PRPLICONVIM \
NS_METHOD GetBuddy(prplIAccountBuddy * *aBuddy); \
NS_METHOD GetTypingState(int16_t *aTypingState);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_PRPLICONVIM(_to) \
NS_IMETHOD GetBuddy(prplIAccountBuddy * *aBuddy) override { return _to GetBuddy(aBuddy); } \
NS_IMETHOD GetTypingState(int16_t *aTypingState) override { return _to GetTypingState(aTypingState); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_PRPLICONVIM(_to) \
NS_IMETHOD GetBuddy(prplIAccountBuddy * *aBuddy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuddy(aBuddy); } \
NS_IMETHOD GetTypingState(int16_t *aTypingState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypingState(aTypingState); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public prplIConvIM
{
public:
NS_DECL_ISUPPORTS
NS_DECL_PRPLICONVIM
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, prplIConvIM)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* readonly attribute prplIAccountBuddy buddy; */
NS_IMETHODIMP _MYCLASS_::GetBuddy(prplIAccountBuddy * *aBuddy)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute short typingState; */
NS_IMETHODIMP _MYCLASS_::GetTypingState(int16_t *aTypingState)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: prplIConvChatBuddy */
#define PRPLICONVCHATBUDDY_IID_STR "b0e9177b-40f6-420b-9918-04bbbb9ce44f"
#define PRPLICONVCHATBUDDY_IID \
{0xb0e9177b, 0x40f6, 0x420b, \
{ 0x99, 0x18, 0x04, 0xbb, 0xbb, 0x9c, 0xe4, 0x4f }}
class NS_NO_VTABLE prplIConvChatBuddy : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(PRPLICONVCHATBUDDY_IID)
/* readonly attribute AUTF8String name; */
NS_IMETHOD GetName(nsACString & aName) = 0;
/* readonly attribute AUTF8String alias; */
NS_IMETHOD GetAlias(nsACString & aAlias) = 0;
/* readonly attribute boolean buddy; */
NS_IMETHOD GetBuddy(bool *aBuddy) = 0;
/* readonly attribute AUTF8String buddyIconFilename; */
NS_IMETHOD GetBuddyIconFilename(nsACString & aBuddyIconFilename) = 0;
/* readonly attribute boolean noFlags; */
NS_IMETHOD GetNoFlags(bool *aNoFlags) = 0;
/* readonly attribute boolean voiced; */
NS_IMETHOD GetVoiced(bool *aVoiced) = 0;
/* readonly attribute boolean halfOp; */
NS_IMETHOD GetHalfOp(bool *aHalfOp) = 0;
/* readonly attribute boolean op; */
NS_IMETHOD GetOp(bool *aOp) = 0;
/* readonly attribute boolean founder; */
NS_IMETHOD GetFounder(bool *aFounder) = 0;
/* readonly attribute boolean typing; */
NS_IMETHOD GetTyping(bool *aTyping) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(prplIConvChatBuddy, PRPLICONVCHATBUDDY_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_PRPLICONVCHATBUDDY \
NS_IMETHOD GetName(nsACString & aName) override; \
NS_IMETHOD GetAlias(nsACString & aAlias) override; \
NS_IMETHOD GetBuddy(bool *aBuddy) override; \
NS_IMETHOD GetBuddyIconFilename(nsACString & aBuddyIconFilename) override; \
NS_IMETHOD GetNoFlags(bool *aNoFlags) override; \
NS_IMETHOD GetVoiced(bool *aVoiced) override; \
NS_IMETHOD GetHalfOp(bool *aHalfOp) override; \
NS_IMETHOD GetOp(bool *aOp) override; \
NS_IMETHOD GetFounder(bool *aFounder) override; \
NS_IMETHOD GetTyping(bool *aTyping) 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_PRPLICONVCHATBUDDY \
NS_METHOD GetName(nsACString & aName); \
NS_METHOD GetAlias(nsACString & aAlias); \
NS_METHOD GetBuddy(bool *aBuddy); \
NS_METHOD GetBuddyIconFilename(nsACString & aBuddyIconFilename); \
NS_METHOD GetNoFlags(bool *aNoFlags); \
NS_METHOD GetVoiced(bool *aVoiced); \
NS_METHOD GetHalfOp(bool *aHalfOp); \
NS_METHOD GetOp(bool *aOp); \
NS_METHOD GetFounder(bool *aFounder); \
NS_METHOD GetTyping(bool *aTyping);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_PRPLICONVCHATBUDDY(_to) \
NS_IMETHOD GetName(nsACString & aName) override { return _to GetName(aName); } \
NS_IMETHOD GetAlias(nsACString & aAlias) override { return _to GetAlias(aAlias); } \
NS_IMETHOD GetBuddy(bool *aBuddy) override { return _to GetBuddy(aBuddy); } \
NS_IMETHOD GetBuddyIconFilename(nsACString & aBuddyIconFilename) override { return _to GetBuddyIconFilename(aBuddyIconFilename); } \
NS_IMETHOD GetNoFlags(bool *aNoFlags) override { return _to GetNoFlags(aNoFlags); } \
NS_IMETHOD GetVoiced(bool *aVoiced) override { return _to GetVoiced(aVoiced); } \
NS_IMETHOD GetHalfOp(bool *aHalfOp) override { return _to GetHalfOp(aHalfOp); } \
NS_IMETHOD GetOp(bool *aOp) override { return _to GetOp(aOp); } \
NS_IMETHOD GetFounder(bool *aFounder) override { return _to GetFounder(aFounder); } \
NS_IMETHOD GetTyping(bool *aTyping) override { return _to GetTyping(aTyping); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_PRPLICONVCHATBUDDY(_to) \
NS_IMETHOD GetName(nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_IMETHOD GetAlias(nsACString & aAlias) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlias(aAlias); } \
NS_IMETHOD GetBuddy(bool *aBuddy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuddy(aBuddy); } \
NS_IMETHOD GetBuddyIconFilename(nsACString & aBuddyIconFilename) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuddyIconFilename(aBuddyIconFilename); } \
NS_IMETHOD GetNoFlags(bool *aNoFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNoFlags(aNoFlags); } \
NS_IMETHOD GetVoiced(bool *aVoiced) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVoiced(aVoiced); } \
NS_IMETHOD GetHalfOp(bool *aHalfOp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHalfOp(aHalfOp); } \
NS_IMETHOD GetOp(bool *aOp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOp(aOp); } \
NS_IMETHOD GetFounder(bool *aFounder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFounder(aFounder); } \
NS_IMETHOD GetTyping(bool *aTyping) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTyping(aTyping); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public prplIConvChatBuddy
{
public:
NS_DECL_ISUPPORTS
NS_DECL_PRPLICONVCHATBUDDY
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, prplIConvChatBuddy)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* readonly attribute AUTF8String name; */
NS_IMETHODIMP _MYCLASS_::GetName(nsACString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String alias; */
NS_IMETHODIMP _MYCLASS_::GetAlias(nsACString & aAlias)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean buddy; */
NS_IMETHODIMP _MYCLASS_::GetBuddy(bool *aBuddy)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String buddyIconFilename; */
NS_IMETHODIMP _MYCLASS_::GetBuddyIconFilename(nsACString & aBuddyIconFilename)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean noFlags; */
NS_IMETHODIMP _MYCLASS_::GetNoFlags(bool *aNoFlags)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean voiced; */
NS_IMETHODIMP _MYCLASS_::GetVoiced(bool *aVoiced)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean halfOp; */
NS_IMETHODIMP _MYCLASS_::GetHalfOp(bool *aHalfOp)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean op; */
NS_IMETHODIMP _MYCLASS_::GetOp(bool *aOp)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean founder; */
NS_IMETHODIMP _MYCLASS_::GetFounder(bool *aFounder)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean typing; */
NS_IMETHODIMP _MYCLASS_::GetTyping(bool *aTyping)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: prplIConvChat */
#define PRPLICONVCHAT_IID_STR "72c17398-639f-4141-a19c-78cbdeb39fba"
#define PRPLICONVCHAT_IID \
{0x72c17398, 0x639f, 0x4141, \
{ 0xa1, 0x9c, 0x78, 0xcb, 0xde, 0xb3, 0x9f, 0xba }}
class NS_NO_VTABLE prplIConvChat : public prplIConversation {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(PRPLICONVCHAT_IID)
/* prplIConvChatBuddy getParticipant (in AUTF8String aName); */
NS_IMETHOD GetParticipant(const nsACString & aName, prplIConvChatBuddy * *_retval) = 0;
/* nsISimpleEnumerator getParticipants (); */
NS_IMETHOD GetParticipants(nsISimpleEnumerator * *_retval) = 0;
/* AUTF8String getNormalizedChatBuddyName (in AUTF8String aChatBuddyName); */
NS_IMETHOD GetNormalizedChatBuddyName(const nsACString & aChatBuddyName, nsACString & _retval) = 0;
/* attribute AUTF8String topic; */
NS_IMETHOD GetTopic(nsACString & aTopic) = 0;
NS_IMETHOD SetTopic(const nsACString & aTopic) = 0;
/* readonly attribute AUTF8String topicSetter; */
NS_IMETHOD GetTopicSetter(nsACString & aTopicSetter) = 0;
/* readonly attribute boolean topicSettable; */
NS_IMETHOD GetTopicSettable(bool *aTopicSettable) = 0;
/* readonly attribute AUTF8String nick; */
NS_IMETHOD GetNick(nsACString & aNick) = 0;
/* readonly attribute boolean left; */
NS_IMETHOD GetLeft(bool *aLeft) = 0;
/* readonly attribute boolean joining; */
NS_IMETHOD GetJoining(bool *aJoining) = 0;
/* readonly attribute prplIChatRoomFieldValues chatRoomFields; */
NS_IMETHOD GetChatRoomFields(prplIChatRoomFieldValues * *aChatRoomFields) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(prplIConvChat, PRPLICONVCHAT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_PRPLICONVCHAT \
NS_IMETHOD GetParticipant(const nsACString & aName, prplIConvChatBuddy * *_retval) override; \
NS_IMETHOD GetParticipants(nsISimpleEnumerator * *_retval) override; \
NS_IMETHOD GetNormalizedChatBuddyName(const nsACString & aChatBuddyName, nsACString & _retval) override; \
NS_IMETHOD GetTopic(nsACString & aTopic) override; \
NS_IMETHOD SetTopic(const nsACString & aTopic) override; \
NS_IMETHOD GetTopicSetter(nsACString & aTopicSetter) override; \
NS_IMETHOD GetTopicSettable(bool *aTopicSettable) override; \
NS_IMETHOD GetNick(nsACString & aNick) override; \
NS_IMETHOD GetLeft(bool *aLeft) override; \
NS_IMETHOD GetJoining(bool *aJoining) override; \
NS_IMETHOD GetChatRoomFields(prplIChatRoomFieldValues * *aChatRoomFields) 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_PRPLICONVCHAT \
NS_METHOD GetParticipant(const nsACString & aName, prplIConvChatBuddy * *_retval); \
NS_METHOD GetParticipants(nsISimpleEnumerator * *_retval); \
NS_METHOD GetNormalizedChatBuddyName(const nsACString & aChatBuddyName, nsACString & _retval); \
NS_METHOD GetTopic(nsACString & aTopic); \
NS_METHOD SetTopic(const nsACString & aTopic); \
NS_METHOD GetTopicSetter(nsACString & aTopicSetter); \
NS_METHOD GetTopicSettable(bool *aTopicSettable); \
NS_METHOD GetNick(nsACString & aNick); \
NS_METHOD GetLeft(bool *aLeft); \
NS_METHOD GetJoining(bool *aJoining); \
NS_METHOD GetChatRoomFields(prplIChatRoomFieldValues * *aChatRoomFields);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_PRPLICONVCHAT(_to) \
NS_IMETHOD GetParticipant(const nsACString & aName, prplIConvChatBuddy * *_retval) override { return _to GetParticipant(aName, _retval); } \
NS_IMETHOD GetParticipants(nsISimpleEnumerator * *_retval) override { return _to GetParticipants(_retval); } \
NS_IMETHOD GetNormalizedChatBuddyName(const nsACString & aChatBuddyName, nsACString & _retval) override { return _to GetNormalizedChatBuddyName(aChatBuddyName, _retval); } \
NS_IMETHOD GetTopic(nsACString & aTopic) override { return _to GetTopic(aTopic); } \
NS_IMETHOD SetTopic(const nsACString & aTopic) override { return _to SetTopic(aTopic); } \
NS_IMETHOD GetTopicSetter(nsACString & aTopicSetter) override { return _to GetTopicSetter(aTopicSetter); } \
NS_IMETHOD GetTopicSettable(bool *aTopicSettable) override { return _to GetTopicSettable(aTopicSettable); } \
NS_IMETHOD GetNick(nsACString & aNick) override { return _to GetNick(aNick); } \
NS_IMETHOD GetLeft(bool *aLeft) override { return _to GetLeft(aLeft); } \
NS_IMETHOD GetJoining(bool *aJoining) override { return _to GetJoining(aJoining); } \
NS_IMETHOD GetChatRoomFields(prplIChatRoomFieldValues * *aChatRoomFields) override { return _to GetChatRoomFields(aChatRoomFields); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_PRPLICONVCHAT(_to) \
NS_IMETHOD GetParticipant(const nsACString & aName, prplIConvChatBuddy * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParticipant(aName, _retval); } \
NS_IMETHOD GetParticipants(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParticipants(_retval); } \
NS_IMETHOD GetNormalizedChatBuddyName(const nsACString & aChatBuddyName, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNormalizedChatBuddyName(aChatBuddyName, _retval); } \
NS_IMETHOD GetTopic(nsACString & aTopic) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTopic(aTopic); } \
NS_IMETHOD SetTopic(const nsACString & aTopic) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTopic(aTopic); } \
NS_IMETHOD GetTopicSetter(nsACString & aTopicSetter) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTopicSetter(aTopicSetter); } \
NS_IMETHOD GetTopicSettable(bool *aTopicSettable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTopicSettable(aTopicSettable); } \
NS_IMETHOD GetNick(nsACString & aNick) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNick(aNick); } \
NS_IMETHOD GetLeft(bool *aLeft) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLeft(aLeft); } \
NS_IMETHOD GetJoining(bool *aJoining) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJoining(aJoining); } \
NS_IMETHOD GetChatRoomFields(prplIChatRoomFieldValues * *aChatRoomFields) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChatRoomFields(aChatRoomFields); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public prplIConvChat
{
public:
NS_DECL_ISUPPORTS
NS_DECL_PRPLICONVCHAT
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, prplIConvChat)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* prplIConvChatBuddy getParticipant (in AUTF8String aName); */
NS_IMETHODIMP _MYCLASS_::GetParticipant(const nsACString & aName, prplIConvChatBuddy * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISimpleEnumerator getParticipants (); */
NS_IMETHODIMP _MYCLASS_::GetParticipants(nsISimpleEnumerator * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AUTF8String getNormalizedChatBuddyName (in AUTF8String aChatBuddyName); */
NS_IMETHODIMP _MYCLASS_::GetNormalizedChatBuddyName(const nsACString & aChatBuddyName, nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute AUTF8String topic; */
NS_IMETHODIMP _MYCLASS_::GetTopic(nsACString & aTopic)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetTopic(const nsACString & aTopic)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String topicSetter; */
NS_IMETHODIMP _MYCLASS_::GetTopicSetter(nsACString & aTopicSetter)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean topicSettable; */
NS_IMETHODIMP _MYCLASS_::GetTopicSettable(bool *aTopicSettable)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String nick; */
NS_IMETHODIMP _MYCLASS_::GetNick(nsACString & aNick)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean left; */
NS_IMETHODIMP _MYCLASS_::GetLeft(bool *aLeft)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean joining; */
NS_IMETHODIMP _MYCLASS_::GetJoining(bool *aJoining)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute prplIChatRoomFieldValues chatRoomFields; */
NS_IMETHODIMP _MYCLASS_::GetChatRoomFields(prplIChatRoomFieldValues * *aChatRoomFields)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_prplIConversation_h__ */
|