/usr/include/thunderbird/imIConversationsService.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/imIConversationsService.idl
*/
#ifndef __gen_imIConversationsService_h__
#define __gen_imIConversationsService_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_prplIConversation_h__
#include "prplIConversation.h"
#endif
#ifndef __gen_prplIMessage_h__
#include "prplIMessage.h"
#endif
#ifndef __gen_imIContactsService_h__
#include "imIContactsService.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class imIMessage; /* forward declaration */
/* starting interface: imIConversation */
#define IMICONVERSATION_IID_STR "81b8d9a9-4715-4109-b522-84b9d31493a3"
#define IMICONVERSATION_IID \
{0x81b8d9a9, 0x4715, 0x4109, \
{ 0xb5, 0x22, 0x84, 0xb9, 0xd3, 0x14, 0x93, 0xa3 }}
class NS_NO_VTABLE imIConversation : public prplIConversation {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(IMICONVERSATION_IID)
/* readonly attribute imIContact contact; */
NS_IMETHOD GetContact(imIContact * *aContact) = 0;
/* void systemMessage (in AUTF8String aMessage, [optional] in boolean aIsError); */
NS_IMETHOD SystemMessage(const nsACString & aMessage, bool aIsError) = 0;
/* attribute prplIConversation target; */
NS_IMETHOD GetTarget(prplIConversation * *aTarget) = 0;
NS_IMETHOD SetTarget(prplIConversation *aTarget) = 0;
/* readonly attribute unsigned long unreadMessageCount; */
NS_IMETHOD GetUnreadMessageCount(uint32_t *aUnreadMessageCount) = 0;
/* readonly attribute unsigned long unreadTargetedMessageCount; */
NS_IMETHOD GetUnreadTargetedMessageCount(uint32_t *aUnreadTargetedMessageCount) = 0;
/* readonly attribute unsigned long unreadIncomingMessageCount; */
NS_IMETHOD GetUnreadIncomingMessageCount(uint32_t *aUnreadIncomingMessageCount) = 0;
/* void markAsRead (); */
NS_IMETHOD MarkAsRead(void) = 0;
/* readonly attribute AUTF8String noTopicString; */
NS_IMETHOD GetNoTopicString(nsACString & aNoTopicString) = 0;
/* boolean checkClose (); */
NS_IMETHOD CheckClose(bool *_retval) = 0;
/* void getMessages ([optional] out unsigned long messageCount, [array, size_is (messageCount), retval] out imIMessage messages); */
NS_IMETHOD GetMessages(uint32_t *messageCount, imIMessage * **messages) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(imIConversation, IMICONVERSATION_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMICONVERSATION \
NS_IMETHOD GetContact(imIContact * *aContact) override; \
NS_IMETHOD SystemMessage(const nsACString & aMessage, bool aIsError) override; \
NS_IMETHOD GetTarget(prplIConversation * *aTarget) override; \
NS_IMETHOD SetTarget(prplIConversation *aTarget) override; \
NS_IMETHOD GetUnreadMessageCount(uint32_t *aUnreadMessageCount) override; \
NS_IMETHOD GetUnreadTargetedMessageCount(uint32_t *aUnreadTargetedMessageCount) override; \
NS_IMETHOD GetUnreadIncomingMessageCount(uint32_t *aUnreadIncomingMessageCount) override; \
NS_IMETHOD MarkAsRead(void) override; \
NS_IMETHOD GetNoTopicString(nsACString & aNoTopicString) override; \
NS_IMETHOD CheckClose(bool *_retval) override; \
NS_IMETHOD GetMessages(uint32_t *messageCount, imIMessage * **messages) 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_IMICONVERSATION \
NS_METHOD GetContact(imIContact * *aContact); \
NS_METHOD SystemMessage(const nsACString & aMessage, bool aIsError); \
NS_METHOD GetTarget(prplIConversation * *aTarget); \
NS_METHOD SetTarget(prplIConversation *aTarget); \
NS_METHOD GetUnreadMessageCount(uint32_t *aUnreadMessageCount); \
NS_METHOD GetUnreadTargetedMessageCount(uint32_t *aUnreadTargetedMessageCount); \
NS_METHOD GetUnreadIncomingMessageCount(uint32_t *aUnreadIncomingMessageCount); \
NS_METHOD MarkAsRead(void); \
NS_METHOD GetNoTopicString(nsACString & aNoTopicString); \
NS_METHOD CheckClose(bool *_retval); \
NS_METHOD GetMessages(uint32_t *messageCount, imIMessage * **messages);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMICONVERSATION(_to) \
NS_IMETHOD GetContact(imIContact * *aContact) override { return _to GetContact(aContact); } \
NS_IMETHOD SystemMessage(const nsACString & aMessage, bool aIsError) override { return _to SystemMessage(aMessage, aIsError); } \
NS_IMETHOD GetTarget(prplIConversation * *aTarget) override { return _to GetTarget(aTarget); } \
NS_IMETHOD SetTarget(prplIConversation *aTarget) override { return _to SetTarget(aTarget); } \
NS_IMETHOD GetUnreadMessageCount(uint32_t *aUnreadMessageCount) override { return _to GetUnreadMessageCount(aUnreadMessageCount); } \
NS_IMETHOD GetUnreadTargetedMessageCount(uint32_t *aUnreadTargetedMessageCount) override { return _to GetUnreadTargetedMessageCount(aUnreadTargetedMessageCount); } \
NS_IMETHOD GetUnreadIncomingMessageCount(uint32_t *aUnreadIncomingMessageCount) override { return _to GetUnreadIncomingMessageCount(aUnreadIncomingMessageCount); } \
NS_IMETHOD MarkAsRead(void) override { return _to MarkAsRead(); } \
NS_IMETHOD GetNoTopicString(nsACString & aNoTopicString) override { return _to GetNoTopicString(aNoTopicString); } \
NS_IMETHOD CheckClose(bool *_retval) override { return _to CheckClose(_retval); } \
NS_IMETHOD GetMessages(uint32_t *messageCount, imIMessage * **messages) override { return _to GetMessages(messageCount, messages); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMICONVERSATION(_to) \
NS_IMETHOD GetContact(imIContact * *aContact) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContact(aContact); } \
NS_IMETHOD SystemMessage(const nsACString & aMessage, bool aIsError) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SystemMessage(aMessage, aIsError); } \
NS_IMETHOD GetTarget(prplIConversation * *aTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
NS_IMETHOD SetTarget(prplIConversation *aTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTarget(aTarget); } \
NS_IMETHOD GetUnreadMessageCount(uint32_t *aUnreadMessageCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnreadMessageCount(aUnreadMessageCount); } \
NS_IMETHOD GetUnreadTargetedMessageCount(uint32_t *aUnreadTargetedMessageCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnreadTargetedMessageCount(aUnreadTargetedMessageCount); } \
NS_IMETHOD GetUnreadIncomingMessageCount(uint32_t *aUnreadIncomingMessageCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnreadIncomingMessageCount(aUnreadIncomingMessageCount); } \
NS_IMETHOD MarkAsRead(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkAsRead(); } \
NS_IMETHOD GetNoTopicString(nsACString & aNoTopicString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNoTopicString(aNoTopicString); } \
NS_IMETHOD CheckClose(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckClose(_retval); } \
NS_IMETHOD GetMessages(uint32_t *messageCount, imIMessage * **messages) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessages(messageCount, messages); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class imConversation : public imIConversation
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IMICONVERSATION
imConversation();
private:
~imConversation();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(imConversation, imIConversation)
imConversation::imConversation()
{
/* member initializers and constructor code */
}
imConversation::~imConversation()
{
/* destructor code */
}
/* readonly attribute imIContact contact; */
NS_IMETHODIMP imConversation::GetContact(imIContact * *aContact)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void systemMessage (in AUTF8String aMessage, [optional] in boolean aIsError); */
NS_IMETHODIMP imConversation::SystemMessage(const nsACString & aMessage, bool aIsError)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute prplIConversation target; */
NS_IMETHODIMP imConversation::GetTarget(prplIConversation * *aTarget)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP imConversation::SetTarget(prplIConversation *aTarget)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned long unreadMessageCount; */
NS_IMETHODIMP imConversation::GetUnreadMessageCount(uint32_t *aUnreadMessageCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned long unreadTargetedMessageCount; */
NS_IMETHODIMP imConversation::GetUnreadTargetedMessageCount(uint32_t *aUnreadTargetedMessageCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned long unreadIncomingMessageCount; */
NS_IMETHODIMP imConversation::GetUnreadIncomingMessageCount(uint32_t *aUnreadIncomingMessageCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void markAsRead (); */
NS_IMETHODIMP imConversation::MarkAsRead()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String noTopicString; */
NS_IMETHODIMP imConversation::GetNoTopicString(nsACString & aNoTopicString)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean checkClose (); */
NS_IMETHODIMP imConversation::CheckClose(bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getMessages ([optional] out unsigned long messageCount, [array, size_is (messageCount), retval] out imIMessage messages); */
NS_IMETHODIMP imConversation::GetMessages(uint32_t *messageCount, imIMessage * **messages)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: imIConversationsService */
#define IMICONVERSATIONSSERVICE_IID_STR "984e182c-d395-4fba-ba6e-cc80c71f57bf"
#define IMICONVERSATIONSSERVICE_IID \
{0x984e182c, 0xd395, 0x4fba, \
{ 0xba, 0x6e, 0xcc, 0x80, 0xc7, 0x1f, 0x57, 0xbf }}
class NS_NO_VTABLE imIConversationsService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(IMICONVERSATIONSSERVICE_IID)
/* void initConversations (); */
NS_IMETHOD InitConversations(void) = 0;
/* void unInitConversations (); */
NS_IMETHOD UnInitConversations(void) = 0;
/* void addConversation (in prplIConversation aConversation); */
NS_IMETHOD AddConversation(prplIConversation *aConversation) = 0;
/* void removeConversation (in prplIConversation aConversation); */
NS_IMETHOD RemoveConversation(prplIConversation *aConversation) = 0;
/* void getUIConversations ([optional] out unsigned long conversationCount, [array, size_is (conversationCount), retval] out imIConversation conversations); */
NS_IMETHOD GetUIConversations(uint32_t *conversationCount, imIConversation * **conversations) = 0;
/* imIConversation getUIConversation (in prplIConversation aConversation); */
NS_IMETHOD GetUIConversation(prplIConversation *aConversation, imIConversation * *_retval) = 0;
/* imIConversation getUIConversationByContactId (in long aId); */
NS_IMETHOD GetUIConversationByContactId(int32_t aId, imIConversation * *_retval) = 0;
/* nsISimpleEnumerator getConversations (); */
NS_IMETHOD GetConversations(nsISimpleEnumerator * *_retval) = 0;
/* prplIConversation getConversationById (in unsigned long aId); */
NS_IMETHOD GetConversationById(uint32_t aId, prplIConversation * *_retval) = 0;
/* prplIConversation getConversationByNameAndAccount (in AUTF8String aName, in imIAccount aAccount, in boolean aIsChat); */
NS_IMETHOD GetConversationByNameAndAccount(const nsACString & aName, imIAccount *aAccount, bool aIsChat, prplIConversation * *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(imIConversationsService, IMICONVERSATIONSSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMICONVERSATIONSSERVICE \
NS_IMETHOD InitConversations(void) override; \
NS_IMETHOD UnInitConversations(void) override; \
NS_IMETHOD AddConversation(prplIConversation *aConversation) override; \
NS_IMETHOD RemoveConversation(prplIConversation *aConversation) override; \
NS_IMETHOD GetUIConversations(uint32_t *conversationCount, imIConversation * **conversations) override; \
NS_IMETHOD GetUIConversation(prplIConversation *aConversation, imIConversation * *_retval) override; \
NS_IMETHOD GetUIConversationByContactId(int32_t aId, imIConversation * *_retval) override; \
NS_IMETHOD GetConversations(nsISimpleEnumerator * *_retval) override; \
NS_IMETHOD GetConversationById(uint32_t aId, prplIConversation * *_retval) override; \
NS_IMETHOD GetConversationByNameAndAccount(const nsACString & aName, imIAccount *aAccount, bool aIsChat, prplIConversation * *_retval) 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_IMICONVERSATIONSSERVICE \
NS_METHOD InitConversations(void); \
NS_METHOD UnInitConversations(void); \
NS_METHOD AddConversation(prplIConversation *aConversation); \
NS_METHOD RemoveConversation(prplIConversation *aConversation); \
NS_METHOD GetUIConversations(uint32_t *conversationCount, imIConversation * **conversations); \
NS_METHOD GetUIConversation(prplIConversation *aConversation, imIConversation * *_retval); \
NS_METHOD GetUIConversationByContactId(int32_t aId, imIConversation * *_retval); \
NS_METHOD GetConversations(nsISimpleEnumerator * *_retval); \
NS_METHOD GetConversationById(uint32_t aId, prplIConversation * *_retval); \
NS_METHOD GetConversationByNameAndAccount(const nsACString & aName, imIAccount *aAccount, bool aIsChat, prplIConversation * *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMICONVERSATIONSSERVICE(_to) \
NS_IMETHOD InitConversations(void) override { return _to InitConversations(); } \
NS_IMETHOD UnInitConversations(void) override { return _to UnInitConversations(); } \
NS_IMETHOD AddConversation(prplIConversation *aConversation) override { return _to AddConversation(aConversation); } \
NS_IMETHOD RemoveConversation(prplIConversation *aConversation) override { return _to RemoveConversation(aConversation); } \
NS_IMETHOD GetUIConversations(uint32_t *conversationCount, imIConversation * **conversations) override { return _to GetUIConversations(conversationCount, conversations); } \
NS_IMETHOD GetUIConversation(prplIConversation *aConversation, imIConversation * *_retval) override { return _to GetUIConversation(aConversation, _retval); } \
NS_IMETHOD GetUIConversationByContactId(int32_t aId, imIConversation * *_retval) override { return _to GetUIConversationByContactId(aId, _retval); } \
NS_IMETHOD GetConversations(nsISimpleEnumerator * *_retval) override { return _to GetConversations(_retval); } \
NS_IMETHOD GetConversationById(uint32_t aId, prplIConversation * *_retval) override { return _to GetConversationById(aId, _retval); } \
NS_IMETHOD GetConversationByNameAndAccount(const nsACString & aName, imIAccount *aAccount, bool aIsChat, prplIConversation * *_retval) override { return _to GetConversationByNameAndAccount(aName, aAccount, aIsChat, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMICONVERSATIONSSERVICE(_to) \
NS_IMETHOD InitConversations(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitConversations(); } \
NS_IMETHOD UnInitConversations(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnInitConversations(); } \
NS_IMETHOD AddConversation(prplIConversation *aConversation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddConversation(aConversation); } \
NS_IMETHOD RemoveConversation(prplIConversation *aConversation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveConversation(aConversation); } \
NS_IMETHOD GetUIConversations(uint32_t *conversationCount, imIConversation * **conversations) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUIConversations(conversationCount, conversations); } \
NS_IMETHOD GetUIConversation(prplIConversation *aConversation, imIConversation * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUIConversation(aConversation, _retval); } \
NS_IMETHOD GetUIConversationByContactId(int32_t aId, imIConversation * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUIConversationByContactId(aId, _retval); } \
NS_IMETHOD GetConversations(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConversations(_retval); } \
NS_IMETHOD GetConversationById(uint32_t aId, prplIConversation * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConversationById(aId, _retval); } \
NS_IMETHOD GetConversationByNameAndAccount(const nsACString & aName, imIAccount *aAccount, bool aIsChat, prplIConversation * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConversationByNameAndAccount(aName, aAccount, aIsChat, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class imConversationsService : public imIConversationsService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IMICONVERSATIONSSERVICE
imConversationsService();
private:
~imConversationsService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(imConversationsService, imIConversationsService)
imConversationsService::imConversationsService()
{
/* member initializers and constructor code */
}
imConversationsService::~imConversationsService()
{
/* destructor code */
}
/* void initConversations (); */
NS_IMETHODIMP imConversationsService::InitConversations()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unInitConversations (); */
NS_IMETHODIMP imConversationsService::UnInitConversations()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addConversation (in prplIConversation aConversation); */
NS_IMETHODIMP imConversationsService::AddConversation(prplIConversation *aConversation)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeConversation (in prplIConversation aConversation); */
NS_IMETHODIMP imConversationsService::RemoveConversation(prplIConversation *aConversation)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getUIConversations ([optional] out unsigned long conversationCount, [array, size_is (conversationCount), retval] out imIConversation conversations); */
NS_IMETHODIMP imConversationsService::GetUIConversations(uint32_t *conversationCount, imIConversation * **conversations)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* imIConversation getUIConversation (in prplIConversation aConversation); */
NS_IMETHODIMP imConversationsService::GetUIConversation(prplIConversation *aConversation, imIConversation * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* imIConversation getUIConversationByContactId (in long aId); */
NS_IMETHODIMP imConversationsService::GetUIConversationByContactId(int32_t aId, imIConversation * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISimpleEnumerator getConversations (); */
NS_IMETHODIMP imConversationsService::GetConversations(nsISimpleEnumerator * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* prplIConversation getConversationById (in unsigned long aId); */
NS_IMETHODIMP imConversationsService::GetConversationById(uint32_t aId, prplIConversation * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* prplIConversation getConversationByNameAndAccount (in AUTF8String aName, in imIAccount aAccount, in boolean aIsChat); */
NS_IMETHODIMP imConversationsService::GetConversationByNameAndAccount(const nsACString & aName, imIAccount *aAccount, bool aIsChat, prplIConversation * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: imIOutgoingMessage */
#define IMIOUTGOINGMESSAGE_IID_STR "f88535b1-0b99-433b-a6de-c1a4bf8b43ea"
#define IMIOUTGOINGMESSAGE_IID \
{0xf88535b1, 0x0b99, 0x433b, \
{ 0xa6, 0xde, 0xc1, 0xa4, 0xbf, 0x8b, 0x43, 0xea }}
class NS_NO_VTABLE imIOutgoingMessage : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(IMIOUTGOINGMESSAGE_IID)
/* attribute AUTF8String message; */
NS_IMETHOD GetMessage(nsACString & aMessage) = 0;
NS_IMETHOD SetMessage(const nsACString & aMessage) = 0;
/* attribute boolean cancelled; */
NS_IMETHOD GetCancelled(bool *aCancelled) = 0;
NS_IMETHOD SetCancelled(bool aCancelled) = 0;
/* readonly attribute boolean action; */
NS_IMETHOD GetAction(bool *aAction) = 0;
/* readonly attribute prplIConversation conversation; */
NS_IMETHOD GetConversation(prplIConversation * *aConversation) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(imIOutgoingMessage, IMIOUTGOINGMESSAGE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMIOUTGOINGMESSAGE \
NS_IMETHOD GetMessage(nsACString & aMessage) override; \
NS_IMETHOD SetMessage(const nsACString & aMessage) override; \
NS_IMETHOD GetCancelled(bool *aCancelled) override; \
NS_IMETHOD SetCancelled(bool aCancelled) override; \
NS_IMETHOD GetAction(bool *aAction) override; \
NS_IMETHOD GetConversation(prplIConversation * *aConversation) 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_IMIOUTGOINGMESSAGE \
NS_METHOD GetMessage(nsACString & aMessage); \
NS_METHOD SetMessage(const nsACString & aMessage); \
NS_METHOD GetCancelled(bool *aCancelled); \
NS_METHOD SetCancelled(bool aCancelled); \
NS_METHOD GetAction(bool *aAction); \
NS_METHOD GetConversation(prplIConversation * *aConversation);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMIOUTGOINGMESSAGE(_to) \
NS_IMETHOD GetMessage(nsACString & aMessage) override { return _to GetMessage(aMessage); } \
NS_IMETHOD SetMessage(const nsACString & aMessage) override { return _to SetMessage(aMessage); } \
NS_IMETHOD GetCancelled(bool *aCancelled) override { return _to GetCancelled(aCancelled); } \
NS_IMETHOD SetCancelled(bool aCancelled) override { return _to SetCancelled(aCancelled); } \
NS_IMETHOD GetAction(bool *aAction) override { return _to GetAction(aAction); } \
NS_IMETHOD GetConversation(prplIConversation * *aConversation) override { return _to GetConversation(aConversation); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMIOUTGOINGMESSAGE(_to) \
NS_IMETHOD GetMessage(nsACString & aMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessage(aMessage); } \
NS_IMETHOD SetMessage(const nsACString & aMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessage(aMessage); } \
NS_IMETHOD GetCancelled(bool *aCancelled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCancelled(aCancelled); } \
NS_IMETHOD SetCancelled(bool aCancelled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCancelled(aCancelled); } \
NS_IMETHOD GetAction(bool *aAction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAction(aAction); } \
NS_IMETHOD GetConversation(prplIConversation * *aConversation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConversation(aConversation); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class imOutgoingMessage : public imIOutgoingMessage
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IMIOUTGOINGMESSAGE
imOutgoingMessage();
private:
~imOutgoingMessage();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(imOutgoingMessage, imIOutgoingMessage)
imOutgoingMessage::imOutgoingMessage()
{
/* member initializers and constructor code */
}
imOutgoingMessage::~imOutgoingMessage()
{
/* destructor code */
}
/* attribute AUTF8String message; */
NS_IMETHODIMP imOutgoingMessage::GetMessage(nsACString & aMessage)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP imOutgoingMessage::SetMessage(const nsACString & aMessage)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean cancelled; */
NS_IMETHODIMP imOutgoingMessage::GetCancelled(bool *aCancelled)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP imOutgoingMessage::SetCancelled(bool aCancelled)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean action; */
NS_IMETHODIMP imOutgoingMessage::GetAction(bool *aAction)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute prplIConversation conversation; */
NS_IMETHODIMP imOutgoingMessage::GetConversation(prplIConversation * *aConversation)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: imIMessage */
#define IMIMESSAGE_IID_STR "3f88cc5c-6940-4eb5-a576-c65770f49ce9"
#define IMIMESSAGE_IID \
{0x3f88cc5c, 0x6940, 0x4eb5, \
{ 0xa5, 0x76, 0xc6, 0x57, 0x70, 0xf4, 0x9c, 0xe9 }}
class NS_NO_VTABLE imIMessage : public prplIMessage {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(IMIMESSAGE_IID)
/* attribute boolean cancelled; */
NS_IMETHOD GetCancelled(bool *aCancelled) = 0;
NS_IMETHOD SetCancelled(bool aCancelled) = 0;
/* attribute AUTF8String color; */
NS_IMETHOD GetColor(nsACString & aColor) = 0;
NS_IMETHOD SetColor(const nsACString & aColor) = 0;
/* attribute AUTF8String displayMessage; */
NS_IMETHOD GetDisplayMessage(nsACString & aDisplayMessage) = 0;
NS_IMETHOD SetDisplayMessage(const nsACString & aDisplayMessage) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(imIMessage, IMIMESSAGE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMIMESSAGE \
NS_IMETHOD GetCancelled(bool *aCancelled) override; \
NS_IMETHOD SetCancelled(bool aCancelled) override; \
NS_IMETHOD GetColor(nsACString & aColor) override; \
NS_IMETHOD SetColor(const nsACString & aColor) override; \
NS_IMETHOD GetDisplayMessage(nsACString & aDisplayMessage) override; \
NS_IMETHOD SetDisplayMessage(const nsACString & aDisplayMessage) 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_IMIMESSAGE \
NS_METHOD GetCancelled(bool *aCancelled); \
NS_METHOD SetCancelled(bool aCancelled); \
NS_METHOD GetColor(nsACString & aColor); \
NS_METHOD SetColor(const nsACString & aColor); \
NS_METHOD GetDisplayMessage(nsACString & aDisplayMessage); \
NS_METHOD SetDisplayMessage(const nsACString & aDisplayMessage);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMIMESSAGE(_to) \
NS_IMETHOD GetCancelled(bool *aCancelled) override { return _to GetCancelled(aCancelled); } \
NS_IMETHOD SetCancelled(bool aCancelled) override { return _to SetCancelled(aCancelled); } \
NS_IMETHOD GetColor(nsACString & aColor) override { return _to GetColor(aColor); } \
NS_IMETHOD SetColor(const nsACString & aColor) override { return _to SetColor(aColor); } \
NS_IMETHOD GetDisplayMessage(nsACString & aDisplayMessage) override { return _to GetDisplayMessage(aDisplayMessage); } \
NS_IMETHOD SetDisplayMessage(const nsACString & aDisplayMessage) override { return _to SetDisplayMessage(aDisplayMessage); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMIMESSAGE(_to) \
NS_IMETHOD GetCancelled(bool *aCancelled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCancelled(aCancelled); } \
NS_IMETHOD SetCancelled(bool aCancelled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCancelled(aCancelled); } \
NS_IMETHOD GetColor(nsACString & aColor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColor(aColor); } \
NS_IMETHOD SetColor(const nsACString & aColor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetColor(aColor); } \
NS_IMETHOD GetDisplayMessage(nsACString & aDisplayMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayMessage(aDisplayMessage); } \
NS_IMETHOD SetDisplayMessage(const nsACString & aDisplayMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplayMessage(aDisplayMessage); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class imMessage : public imIMessage
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IMIMESSAGE
imMessage();
private:
~imMessage();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(imMessage, imIMessage)
imMessage::imMessage()
{
/* member initializers and constructor code */
}
imMessage::~imMessage()
{
/* destructor code */
}
/* attribute boolean cancelled; */
NS_IMETHODIMP imMessage::GetCancelled(bool *aCancelled)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP imMessage::SetCancelled(bool aCancelled)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute AUTF8String color; */
NS_IMETHODIMP imMessage::GetColor(nsACString & aColor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP imMessage::SetColor(const nsACString & aColor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute AUTF8String displayMessage; */
NS_IMETHODIMP imMessage::GetDisplayMessage(nsACString & aDisplayMessage)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP imMessage::SetDisplayMessage(const nsACString & aDisplayMessage)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_imIConversationsService_h__ */
|