/usr/include/thunderbird/nsIMsgAccountManager.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIMsgAccountManager.idl
*/
#ifndef __gen_nsIMsgAccountManager_h__
#define __gen_nsIMsgAccountManager_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIMsgAccount_h__
#include "nsIMsgAccount.h"
#endif
#ifndef __gen_nsIMsgIdentity_h__
#include "nsIMsgIdentity.h"
#endif
#ifndef __gen_nsIMsgIncomingServer_h__
#include "nsIMsgIncomingServer.h"
#endif
#ifndef __gen_nsIIncomingServerListener_h__
#include "nsIIncomingServerListener.h"
#endif
#ifndef __gen_nsIMsgFolder_h__
#include "nsIMsgFolder.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIMsgFolderCache; /* forward declaration */
class nsIFolderListener; /* forward declaration */
/* starting interface: nsIMsgAccountManager */
#define NS_IMSGACCOUNTMANAGER_IID_STR "d5ab0eea-49c5-42f2-b2e6-8ad306606d8b"
#define NS_IMSGACCOUNTMANAGER_IID \
{0xd5ab0eea, 0x49c5, 0x42f2, \
{ 0xb2, 0xe6, 0x8a, 0xd3, 0x06, 0x60, 0x6d, 0x8b }}
class NS_NO_VTABLE nsIMsgAccountManager : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGACCOUNTMANAGER_IID)
/* nsIMsgAccount createAccount (); */
NS_IMETHOD CreateAccount(nsIMsgAccount * *_retval) = 0;
/* nsIMsgAccount getAccount (in ACString key); */
NS_IMETHOD GetAccount(const nsACString & key, nsIMsgAccount * *_retval) = 0;
/* void removeAccount (in nsIMsgAccount aAccount, [optional] in boolean aRemoveFiles); */
NS_IMETHOD RemoveAccount(nsIMsgAccount *aAccount, bool aRemoveFiles) = 0;
/* nsIMsgIdentity createIdentity (); */
NS_IMETHOD CreateIdentity(nsIMsgIdentity * *_retval) = 0;
/* nsIMsgIncomingServer createIncomingServer (in ACString username, in ACString hostname, in ACString type); */
NS_IMETHOD CreateIncomingServer(const nsACString & username, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval) = 0;
/* void removeIncomingServer (in nsIMsgIncomingServer aServer, in boolean aRemoveFiles); */
NS_IMETHOD RemoveIncomingServer(nsIMsgIncomingServer *aServer, bool aRemoveFiles) = 0;
/* nsIMsgIdentity getIdentity (in ACString key); */
NS_IMETHOD GetIdentity(const nsACString & key, nsIMsgIdentity * *_retval) = 0;
/* nsIMsgIncomingServer getIncomingServer (in ACString key); */
NS_IMETHOD GetIncomingServer(const nsACString & key, nsIMsgIncomingServer * *_retval) = 0;
/* attribute nsIMsgAccount defaultAccount; */
NS_IMETHOD GetDefaultAccount(nsIMsgAccount * *aDefaultAccount) = 0;
NS_IMETHOD SetDefaultAccount(nsIMsgAccount *aDefaultAccount) = 0;
/* readonly attribute nsIArray accounts; */
NS_IMETHOD GetAccounts(nsIArray * *aAccounts) = 0;
/* readonly attribute nsIArray allIdentities; */
NS_IMETHOD GetAllIdentities(nsIArray * *aAllIdentities) = 0;
/* readonly attribute nsIArray allServers; */
NS_IMETHOD GetAllServers(nsIArray * *aAllServers) = 0;
/* readonly attribute nsIMsgFolderCache folderCache; */
NS_IMETHOD GetFolderCache(nsIMsgFolderCache * *aFolderCache) = 0;
/* readonly attribute boolean shutdownInProgress; */
NS_IMETHOD GetShutdownInProgress(bool *aShutdownInProgress) = 0;
/* attribute boolean userNeedsToAuthenticate; */
NS_IMETHOD GetUserNeedsToAuthenticate(bool *aUserNeedsToAuthenticate) = 0;
NS_IMETHOD SetUserNeedsToAuthenticate(bool aUserNeedsToAuthenticate) = 0;
/* nsIMsgIncomingServer FindServer (in ACString userName, in ACString hostname, in ACString type); */
NS_IMETHOD FindServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval) = 0;
/* nsIMsgIncomingServer findServerByURI (in nsIURI aURI, in boolean aRealFlag); */
NS_IMETHOD FindServerByURI(nsIURI *aURI, bool aRealFlag, nsIMsgIncomingServer * *_retval) = 0;
/* nsIMsgIncomingServer findRealServer (in ACString userName, in ACString hostname, in ACString type, in long port); */
NS_IMETHOD FindRealServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, int32_t port, nsIMsgIncomingServer * *_retval) = 0;
/* long FindServerIndex (in nsIMsgIncomingServer server); */
NS_IMETHOD FindServerIndex(nsIMsgIncomingServer *server, int32_t *_retval) = 0;
/* nsIMsgAccount FindAccountForServer (in nsIMsgIncomingServer server); */
NS_IMETHOD FindAccountForServer(nsIMsgIncomingServer *server, nsIMsgAccount * *_retval) = 0;
/* nsIArray getIdentitiesForServer (in nsIMsgIncomingServer server); */
NS_IMETHOD GetIdentitiesForServer(nsIMsgIncomingServer *server, nsIArray * *_retval) = 0;
/* nsIMsgIdentity getFirstIdentityForServer (in nsIMsgIncomingServer server); */
NS_IMETHOD GetFirstIdentityForServer(nsIMsgIncomingServer *server, nsIMsgIdentity * *_retval) = 0;
/* nsIArray getServersForIdentity (in nsIMsgIdentity identity); */
NS_IMETHOD GetServersForIdentity(nsIMsgIdentity *identity, nsIArray * *_retval) = 0;
/* attribute nsIMsgIncomingServer localFoldersServer; */
NS_IMETHOD GetLocalFoldersServer(nsIMsgIncomingServer * *aLocalFoldersServer) = 0;
NS_IMETHOD SetLocalFoldersServer(nsIMsgIncomingServer *aLocalFoldersServer) = 0;
/* void createLocalMailAccount (); */
NS_IMETHOD CreateLocalMailAccount(void) = 0;
/* void LoadAccounts (); */
NS_IMETHOD LoadAccounts(void) = 0;
/* void setSpecialFolders (); */
NS_IMETHOD SetSpecialFolders(void) = 0;
/* void loadVirtualFolders (); */
NS_IMETHOD LoadVirtualFolders(void) = 0;
/* void UnloadAccounts (); */
NS_IMETHOD UnloadAccounts(void) = 0;
/* void WriteToFolderCache (in nsIMsgFolderCache folderCache); */
NS_IMETHOD WriteToFolderCache(nsIMsgFolderCache *folderCache) = 0;
/* void saveVirtualFolders (); */
NS_IMETHOD SaveVirtualFolders(void) = 0;
/* void closeCachedConnections (); */
NS_IMETHOD CloseCachedConnections(void) = 0;
/* void shutdownServers (); */
NS_IMETHOD ShutdownServers(void) = 0;
/* void CleanupOnExit (); */
NS_IMETHOD CleanupOnExit(void) = 0;
/* void SetFolderDoingEmptyTrash (in nsIMsgFolder folder); */
NS_IMETHOD SetFolderDoingEmptyTrash(nsIMsgFolder *folder) = 0;
/* boolean GetEmptyTrashInProgress (); */
NS_IMETHOD GetEmptyTrashInProgress(bool *_retval) = 0;
/* void SetFolderDoingCleanupInbox (in nsIMsgFolder folder); */
NS_IMETHOD SetFolderDoingCleanupInbox(nsIMsgFolder *folder) = 0;
/* boolean GetCleanupInboxInProgress (); */
NS_IMETHOD GetCleanupInboxInProgress(bool *_retval) = 0;
/* void addRootFolderListener (in nsIFolderListener listener); */
NS_IMETHOD AddRootFolderListener(nsIFolderListener *listener) = 0;
/* void removeRootFolderListener (in nsIFolderListener listener); */
NS_IMETHOD RemoveRootFolderListener(nsIFolderListener *listener) = 0;
/* void addIncomingServerListener (in nsIIncomingServerListener serverListener); */
NS_IMETHOD AddIncomingServerListener(nsIIncomingServerListener *serverListener) = 0;
/* void removeIncomingServerListener (in nsIIncomingServerListener serverListener); */
NS_IMETHOD RemoveIncomingServerListener(nsIIncomingServerListener *serverListener) = 0;
/* void notifyServerLoaded (in nsIMsgIncomingServer server); */
NS_IMETHOD NotifyServerLoaded(nsIMsgIncomingServer *server) = 0;
/* void notifyServerUnloaded (in nsIMsgIncomingServer server); */
NS_IMETHOD NotifyServerUnloaded(nsIMsgIncomingServer *server) = 0;
/* void notifyServerChanged (in nsIMsgIncomingServer server); */
NS_IMETHOD NotifyServerChanged(nsIMsgIncomingServer *server) = 0;
/* void saveAccountInfo (); */
NS_IMETHOD SaveAccountInfo(void) = 0;
/* ACString getChromePackageName (in ACString aExtensionName); */
NS_IMETHOD GetChromePackageName(const nsACString & aExtensionName, nsACString & _retval) = 0;
/* readonly attribute nsIArray allFolders; */
NS_IMETHOD GetAllFolders(nsIArray * *aAllFolders) = 0;
/* ACString folderUriForPath (in nsIFile aLocalPath); */
NS_IMETHOD FolderUriForPath(nsIFile *aLocalPath, nsACString & _retval) = 0;
/* long getSortOrder (in nsIMsgIncomingServer server); */
NS_IMETHOD GetSortOrder(nsIMsgIncomingServer *server, int32_t *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgAccountManager, NS_IMSGACCOUNTMANAGER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGACCOUNTMANAGER \
NS_IMETHOD CreateAccount(nsIMsgAccount * *_retval) override; \
NS_IMETHOD GetAccount(const nsACString & key, nsIMsgAccount * *_retval) override; \
NS_IMETHOD RemoveAccount(nsIMsgAccount *aAccount, bool aRemoveFiles) override; \
NS_IMETHOD CreateIdentity(nsIMsgIdentity * *_retval) override; \
NS_IMETHOD CreateIncomingServer(const nsACString & username, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval) override; \
NS_IMETHOD RemoveIncomingServer(nsIMsgIncomingServer *aServer, bool aRemoveFiles) override; \
NS_IMETHOD GetIdentity(const nsACString & key, nsIMsgIdentity * *_retval) override; \
NS_IMETHOD GetIncomingServer(const nsACString & key, nsIMsgIncomingServer * *_retval) override; \
NS_IMETHOD GetDefaultAccount(nsIMsgAccount * *aDefaultAccount) override; \
NS_IMETHOD SetDefaultAccount(nsIMsgAccount *aDefaultAccount) override; \
NS_IMETHOD GetAccounts(nsIArray * *aAccounts) override; \
NS_IMETHOD GetAllIdentities(nsIArray * *aAllIdentities) override; \
NS_IMETHOD GetAllServers(nsIArray * *aAllServers) override; \
NS_IMETHOD GetFolderCache(nsIMsgFolderCache * *aFolderCache) override; \
NS_IMETHOD GetShutdownInProgress(bool *aShutdownInProgress) override; \
NS_IMETHOD GetUserNeedsToAuthenticate(bool *aUserNeedsToAuthenticate) override; \
NS_IMETHOD SetUserNeedsToAuthenticate(bool aUserNeedsToAuthenticate) override; \
NS_IMETHOD FindServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval) override; \
NS_IMETHOD FindServerByURI(nsIURI *aURI, bool aRealFlag, nsIMsgIncomingServer * *_retval) override; \
NS_IMETHOD FindRealServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, int32_t port, nsIMsgIncomingServer * *_retval) override; \
NS_IMETHOD FindServerIndex(nsIMsgIncomingServer *server, int32_t *_retval) override; \
NS_IMETHOD FindAccountForServer(nsIMsgIncomingServer *server, nsIMsgAccount * *_retval) override; \
NS_IMETHOD GetIdentitiesForServer(nsIMsgIncomingServer *server, nsIArray * *_retval) override; \
NS_IMETHOD GetFirstIdentityForServer(nsIMsgIncomingServer *server, nsIMsgIdentity * *_retval) override; \
NS_IMETHOD GetServersForIdentity(nsIMsgIdentity *identity, nsIArray * *_retval) override; \
NS_IMETHOD GetLocalFoldersServer(nsIMsgIncomingServer * *aLocalFoldersServer) override; \
NS_IMETHOD SetLocalFoldersServer(nsIMsgIncomingServer *aLocalFoldersServer) override; \
NS_IMETHOD CreateLocalMailAccount(void) override; \
NS_IMETHOD LoadAccounts(void) override; \
NS_IMETHOD SetSpecialFolders(void) override; \
NS_IMETHOD LoadVirtualFolders(void) override; \
NS_IMETHOD UnloadAccounts(void) override; \
NS_IMETHOD WriteToFolderCache(nsIMsgFolderCache *folderCache) override; \
NS_IMETHOD SaveVirtualFolders(void) override; \
NS_IMETHOD CloseCachedConnections(void) override; \
NS_IMETHOD ShutdownServers(void) override; \
NS_IMETHOD CleanupOnExit(void) override; \
NS_IMETHOD SetFolderDoingEmptyTrash(nsIMsgFolder *folder) override; \
NS_IMETHOD GetEmptyTrashInProgress(bool *_retval) override; \
NS_IMETHOD SetFolderDoingCleanupInbox(nsIMsgFolder *folder) override; \
NS_IMETHOD GetCleanupInboxInProgress(bool *_retval) override; \
NS_IMETHOD AddRootFolderListener(nsIFolderListener *listener) override; \
NS_IMETHOD RemoveRootFolderListener(nsIFolderListener *listener) override; \
NS_IMETHOD AddIncomingServerListener(nsIIncomingServerListener *serverListener) override; \
NS_IMETHOD RemoveIncomingServerListener(nsIIncomingServerListener *serverListener) override; \
NS_IMETHOD NotifyServerLoaded(nsIMsgIncomingServer *server) override; \
NS_IMETHOD NotifyServerUnloaded(nsIMsgIncomingServer *server) override; \
NS_IMETHOD NotifyServerChanged(nsIMsgIncomingServer *server) override; \
NS_IMETHOD SaveAccountInfo(void) override; \
NS_IMETHOD GetChromePackageName(const nsACString & aExtensionName, nsACString & _retval) override; \
NS_IMETHOD GetAllFolders(nsIArray * *aAllFolders) override; \
NS_IMETHOD FolderUriForPath(nsIFile *aLocalPath, nsACString & _retval) override; \
NS_IMETHOD GetSortOrder(nsIMsgIncomingServer *server, int32_t *_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_NSIMSGACCOUNTMANAGER \
NS_METHOD CreateAccount(nsIMsgAccount * *_retval); \
NS_METHOD GetAccount(const nsACString & key, nsIMsgAccount * *_retval); \
NS_METHOD RemoveAccount(nsIMsgAccount *aAccount, bool aRemoveFiles); \
NS_METHOD CreateIdentity(nsIMsgIdentity * *_retval); \
NS_METHOD CreateIncomingServer(const nsACString & username, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval); \
NS_METHOD RemoveIncomingServer(nsIMsgIncomingServer *aServer, bool aRemoveFiles); \
NS_METHOD GetIdentity(const nsACString & key, nsIMsgIdentity * *_retval); \
NS_METHOD GetIncomingServer(const nsACString & key, nsIMsgIncomingServer * *_retval); \
NS_METHOD GetDefaultAccount(nsIMsgAccount * *aDefaultAccount); \
NS_METHOD SetDefaultAccount(nsIMsgAccount *aDefaultAccount); \
NS_METHOD GetAccounts(nsIArray * *aAccounts); \
NS_METHOD GetAllIdentities(nsIArray * *aAllIdentities); \
NS_METHOD GetAllServers(nsIArray * *aAllServers); \
NS_METHOD GetFolderCache(nsIMsgFolderCache * *aFolderCache); \
NS_METHOD GetShutdownInProgress(bool *aShutdownInProgress); \
NS_METHOD GetUserNeedsToAuthenticate(bool *aUserNeedsToAuthenticate); \
NS_METHOD SetUserNeedsToAuthenticate(bool aUserNeedsToAuthenticate); \
NS_METHOD FindServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval); \
NS_METHOD FindServerByURI(nsIURI *aURI, bool aRealFlag, nsIMsgIncomingServer * *_retval); \
NS_METHOD FindRealServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, int32_t port, nsIMsgIncomingServer * *_retval); \
NS_METHOD FindServerIndex(nsIMsgIncomingServer *server, int32_t *_retval); \
NS_METHOD FindAccountForServer(nsIMsgIncomingServer *server, nsIMsgAccount * *_retval); \
NS_METHOD GetIdentitiesForServer(nsIMsgIncomingServer *server, nsIArray * *_retval); \
NS_METHOD GetFirstIdentityForServer(nsIMsgIncomingServer *server, nsIMsgIdentity * *_retval); \
NS_METHOD GetServersForIdentity(nsIMsgIdentity *identity, nsIArray * *_retval); \
NS_METHOD GetLocalFoldersServer(nsIMsgIncomingServer * *aLocalFoldersServer); \
NS_METHOD SetLocalFoldersServer(nsIMsgIncomingServer *aLocalFoldersServer); \
NS_METHOD CreateLocalMailAccount(void); \
NS_METHOD LoadAccounts(void); \
NS_METHOD SetSpecialFolders(void); \
NS_METHOD LoadVirtualFolders(void); \
NS_METHOD UnloadAccounts(void); \
NS_METHOD WriteToFolderCache(nsIMsgFolderCache *folderCache); \
NS_METHOD SaveVirtualFolders(void); \
NS_METHOD CloseCachedConnections(void); \
NS_METHOD ShutdownServers(void); \
NS_METHOD CleanupOnExit(void); \
NS_METHOD SetFolderDoingEmptyTrash(nsIMsgFolder *folder); \
NS_METHOD GetEmptyTrashInProgress(bool *_retval); \
NS_METHOD SetFolderDoingCleanupInbox(nsIMsgFolder *folder); \
NS_METHOD GetCleanupInboxInProgress(bool *_retval); \
NS_METHOD AddRootFolderListener(nsIFolderListener *listener); \
NS_METHOD RemoveRootFolderListener(nsIFolderListener *listener); \
NS_METHOD AddIncomingServerListener(nsIIncomingServerListener *serverListener); \
NS_METHOD RemoveIncomingServerListener(nsIIncomingServerListener *serverListener); \
NS_METHOD NotifyServerLoaded(nsIMsgIncomingServer *server); \
NS_METHOD NotifyServerUnloaded(nsIMsgIncomingServer *server); \
NS_METHOD NotifyServerChanged(nsIMsgIncomingServer *server); \
NS_METHOD SaveAccountInfo(void); \
NS_METHOD GetChromePackageName(const nsACString & aExtensionName, nsACString & _retval); \
NS_METHOD GetAllFolders(nsIArray * *aAllFolders); \
NS_METHOD FolderUriForPath(nsIFile *aLocalPath, nsACString & _retval); \
NS_METHOD GetSortOrder(nsIMsgIncomingServer *server, int32_t *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGACCOUNTMANAGER(_to) \
NS_IMETHOD CreateAccount(nsIMsgAccount * *_retval) override { return _to CreateAccount(_retval); } \
NS_IMETHOD GetAccount(const nsACString & key, nsIMsgAccount * *_retval) override { return _to GetAccount(key, _retval); } \
NS_IMETHOD RemoveAccount(nsIMsgAccount *aAccount, bool aRemoveFiles) override { return _to RemoveAccount(aAccount, aRemoveFiles); } \
NS_IMETHOD CreateIdentity(nsIMsgIdentity * *_retval) override { return _to CreateIdentity(_retval); } \
NS_IMETHOD CreateIncomingServer(const nsACString & username, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval) override { return _to CreateIncomingServer(username, hostname, type, _retval); } \
NS_IMETHOD RemoveIncomingServer(nsIMsgIncomingServer *aServer, bool aRemoveFiles) override { return _to RemoveIncomingServer(aServer, aRemoveFiles); } \
NS_IMETHOD GetIdentity(const nsACString & key, nsIMsgIdentity * *_retval) override { return _to GetIdentity(key, _retval); } \
NS_IMETHOD GetIncomingServer(const nsACString & key, nsIMsgIncomingServer * *_retval) override { return _to GetIncomingServer(key, _retval); } \
NS_IMETHOD GetDefaultAccount(nsIMsgAccount * *aDefaultAccount) override { return _to GetDefaultAccount(aDefaultAccount); } \
NS_IMETHOD SetDefaultAccount(nsIMsgAccount *aDefaultAccount) override { return _to SetDefaultAccount(aDefaultAccount); } \
NS_IMETHOD GetAccounts(nsIArray * *aAccounts) override { return _to GetAccounts(aAccounts); } \
NS_IMETHOD GetAllIdentities(nsIArray * *aAllIdentities) override { return _to GetAllIdentities(aAllIdentities); } \
NS_IMETHOD GetAllServers(nsIArray * *aAllServers) override { return _to GetAllServers(aAllServers); } \
NS_IMETHOD GetFolderCache(nsIMsgFolderCache * *aFolderCache) override { return _to GetFolderCache(aFolderCache); } \
NS_IMETHOD GetShutdownInProgress(bool *aShutdownInProgress) override { return _to GetShutdownInProgress(aShutdownInProgress); } \
NS_IMETHOD GetUserNeedsToAuthenticate(bool *aUserNeedsToAuthenticate) override { return _to GetUserNeedsToAuthenticate(aUserNeedsToAuthenticate); } \
NS_IMETHOD SetUserNeedsToAuthenticate(bool aUserNeedsToAuthenticate) override { return _to SetUserNeedsToAuthenticate(aUserNeedsToAuthenticate); } \
NS_IMETHOD FindServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval) override { return _to FindServer(userName, hostname, type, _retval); } \
NS_IMETHOD FindServerByURI(nsIURI *aURI, bool aRealFlag, nsIMsgIncomingServer * *_retval) override { return _to FindServerByURI(aURI, aRealFlag, _retval); } \
NS_IMETHOD FindRealServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, int32_t port, nsIMsgIncomingServer * *_retval) override { return _to FindRealServer(userName, hostname, type, port, _retval); } \
NS_IMETHOD FindServerIndex(nsIMsgIncomingServer *server, int32_t *_retval) override { return _to FindServerIndex(server, _retval); } \
NS_IMETHOD FindAccountForServer(nsIMsgIncomingServer *server, nsIMsgAccount * *_retval) override { return _to FindAccountForServer(server, _retval); } \
NS_IMETHOD GetIdentitiesForServer(nsIMsgIncomingServer *server, nsIArray * *_retval) override { return _to GetIdentitiesForServer(server, _retval); } \
NS_IMETHOD GetFirstIdentityForServer(nsIMsgIncomingServer *server, nsIMsgIdentity * *_retval) override { return _to GetFirstIdentityForServer(server, _retval); } \
NS_IMETHOD GetServersForIdentity(nsIMsgIdentity *identity, nsIArray * *_retval) override { return _to GetServersForIdentity(identity, _retval); } \
NS_IMETHOD GetLocalFoldersServer(nsIMsgIncomingServer * *aLocalFoldersServer) override { return _to GetLocalFoldersServer(aLocalFoldersServer); } \
NS_IMETHOD SetLocalFoldersServer(nsIMsgIncomingServer *aLocalFoldersServer) override { return _to SetLocalFoldersServer(aLocalFoldersServer); } \
NS_IMETHOD CreateLocalMailAccount(void) override { return _to CreateLocalMailAccount(); } \
NS_IMETHOD LoadAccounts(void) override { return _to LoadAccounts(); } \
NS_IMETHOD SetSpecialFolders(void) override { return _to SetSpecialFolders(); } \
NS_IMETHOD LoadVirtualFolders(void) override { return _to LoadVirtualFolders(); } \
NS_IMETHOD UnloadAccounts(void) override { return _to UnloadAccounts(); } \
NS_IMETHOD WriteToFolderCache(nsIMsgFolderCache *folderCache) override { return _to WriteToFolderCache(folderCache); } \
NS_IMETHOD SaveVirtualFolders(void) override { return _to SaveVirtualFolders(); } \
NS_IMETHOD CloseCachedConnections(void) override { return _to CloseCachedConnections(); } \
NS_IMETHOD ShutdownServers(void) override { return _to ShutdownServers(); } \
NS_IMETHOD CleanupOnExit(void) override { return _to CleanupOnExit(); } \
NS_IMETHOD SetFolderDoingEmptyTrash(nsIMsgFolder *folder) override { return _to SetFolderDoingEmptyTrash(folder); } \
NS_IMETHOD GetEmptyTrashInProgress(bool *_retval) override { return _to GetEmptyTrashInProgress(_retval); } \
NS_IMETHOD SetFolderDoingCleanupInbox(nsIMsgFolder *folder) override { return _to SetFolderDoingCleanupInbox(folder); } \
NS_IMETHOD GetCleanupInboxInProgress(bool *_retval) override { return _to GetCleanupInboxInProgress(_retval); } \
NS_IMETHOD AddRootFolderListener(nsIFolderListener *listener) override { return _to AddRootFolderListener(listener); } \
NS_IMETHOD RemoveRootFolderListener(nsIFolderListener *listener) override { return _to RemoveRootFolderListener(listener); } \
NS_IMETHOD AddIncomingServerListener(nsIIncomingServerListener *serverListener) override { return _to AddIncomingServerListener(serverListener); } \
NS_IMETHOD RemoveIncomingServerListener(nsIIncomingServerListener *serverListener) override { return _to RemoveIncomingServerListener(serverListener); } \
NS_IMETHOD NotifyServerLoaded(nsIMsgIncomingServer *server) override { return _to NotifyServerLoaded(server); } \
NS_IMETHOD NotifyServerUnloaded(nsIMsgIncomingServer *server) override { return _to NotifyServerUnloaded(server); } \
NS_IMETHOD NotifyServerChanged(nsIMsgIncomingServer *server) override { return _to NotifyServerChanged(server); } \
NS_IMETHOD SaveAccountInfo(void) override { return _to SaveAccountInfo(); } \
NS_IMETHOD GetChromePackageName(const nsACString & aExtensionName, nsACString & _retval) override { return _to GetChromePackageName(aExtensionName, _retval); } \
NS_IMETHOD GetAllFolders(nsIArray * *aAllFolders) override { return _to GetAllFolders(aAllFolders); } \
NS_IMETHOD FolderUriForPath(nsIFile *aLocalPath, nsACString & _retval) override { return _to FolderUriForPath(aLocalPath, _retval); } \
NS_IMETHOD GetSortOrder(nsIMsgIncomingServer *server, int32_t *_retval) override { return _to GetSortOrder(server, _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_NSIMSGACCOUNTMANAGER(_to) \
NS_IMETHOD CreateAccount(nsIMsgAccount * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateAccount(_retval); } \
NS_IMETHOD GetAccount(const nsACString & key, nsIMsgAccount * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccount(key, _retval); } \
NS_IMETHOD RemoveAccount(nsIMsgAccount *aAccount, bool aRemoveFiles) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAccount(aAccount, aRemoveFiles); } \
NS_IMETHOD CreateIdentity(nsIMsgIdentity * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateIdentity(_retval); } \
NS_IMETHOD CreateIncomingServer(const nsACString & username, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateIncomingServer(username, hostname, type, _retval); } \
NS_IMETHOD RemoveIncomingServer(nsIMsgIncomingServer *aServer, bool aRemoveFiles) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveIncomingServer(aServer, aRemoveFiles); } \
NS_IMETHOD GetIdentity(const nsACString & key, nsIMsgIdentity * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdentity(key, _retval); } \
NS_IMETHOD GetIncomingServer(const nsACString & key, nsIMsgIncomingServer * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIncomingServer(key, _retval); } \
NS_IMETHOD GetDefaultAccount(nsIMsgAccount * *aDefaultAccount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultAccount(aDefaultAccount); } \
NS_IMETHOD SetDefaultAccount(nsIMsgAccount *aDefaultAccount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultAccount(aDefaultAccount); } \
NS_IMETHOD GetAccounts(nsIArray * *aAccounts) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccounts(aAccounts); } \
NS_IMETHOD GetAllIdentities(nsIArray * *aAllIdentities) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllIdentities(aAllIdentities); } \
NS_IMETHOD GetAllServers(nsIArray * *aAllServers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllServers(aAllServers); } \
NS_IMETHOD GetFolderCache(nsIMsgFolderCache * *aFolderCache) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderCache(aFolderCache); } \
NS_IMETHOD GetShutdownInProgress(bool *aShutdownInProgress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShutdownInProgress(aShutdownInProgress); } \
NS_IMETHOD GetUserNeedsToAuthenticate(bool *aUserNeedsToAuthenticate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserNeedsToAuthenticate(aUserNeedsToAuthenticate); } \
NS_IMETHOD SetUserNeedsToAuthenticate(bool aUserNeedsToAuthenticate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUserNeedsToAuthenticate(aUserNeedsToAuthenticate); } \
NS_IMETHOD FindServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindServer(userName, hostname, type, _retval); } \
NS_IMETHOD FindServerByURI(nsIURI *aURI, bool aRealFlag, nsIMsgIncomingServer * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindServerByURI(aURI, aRealFlag, _retval); } \
NS_IMETHOD FindRealServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, int32_t port, nsIMsgIncomingServer * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindRealServer(userName, hostname, type, port, _retval); } \
NS_IMETHOD FindServerIndex(nsIMsgIncomingServer *server, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindServerIndex(server, _retval); } \
NS_IMETHOD FindAccountForServer(nsIMsgIncomingServer *server, nsIMsgAccount * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindAccountForServer(server, _retval); } \
NS_IMETHOD GetIdentitiesForServer(nsIMsgIncomingServer *server, nsIArray * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdentitiesForServer(server, _retval); } \
NS_IMETHOD GetFirstIdentityForServer(nsIMsgIncomingServer *server, nsIMsgIdentity * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstIdentityForServer(server, _retval); } \
NS_IMETHOD GetServersForIdentity(nsIMsgIdentity *identity, nsIArray * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServersForIdentity(identity, _retval); } \
NS_IMETHOD GetLocalFoldersServer(nsIMsgIncomingServer * *aLocalFoldersServer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalFoldersServer(aLocalFoldersServer); } \
NS_IMETHOD SetLocalFoldersServer(nsIMsgIncomingServer *aLocalFoldersServer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLocalFoldersServer(aLocalFoldersServer); } \
NS_IMETHOD CreateLocalMailAccount(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateLocalMailAccount(); } \
NS_IMETHOD LoadAccounts(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadAccounts(); } \
NS_IMETHOD SetSpecialFolders(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSpecialFolders(); } \
NS_IMETHOD LoadVirtualFolders(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadVirtualFolders(); } \
NS_IMETHOD UnloadAccounts(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnloadAccounts(); } \
NS_IMETHOD WriteToFolderCache(nsIMsgFolderCache *folderCache) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteToFolderCache(folderCache); } \
NS_IMETHOD SaveVirtualFolders(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveVirtualFolders(); } \
NS_IMETHOD CloseCachedConnections(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseCachedConnections(); } \
NS_IMETHOD ShutdownServers(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShutdownServers(); } \
NS_IMETHOD CleanupOnExit(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CleanupOnExit(); } \
NS_IMETHOD SetFolderDoingEmptyTrash(nsIMsgFolder *folder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolderDoingEmptyTrash(folder); } \
NS_IMETHOD GetEmptyTrashInProgress(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEmptyTrashInProgress(_retval); } \
NS_IMETHOD SetFolderDoingCleanupInbox(nsIMsgFolder *folder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolderDoingCleanupInbox(folder); } \
NS_IMETHOD GetCleanupInboxInProgress(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCleanupInboxInProgress(_retval); } \
NS_IMETHOD AddRootFolderListener(nsIFolderListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddRootFolderListener(listener); } \
NS_IMETHOD RemoveRootFolderListener(nsIFolderListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveRootFolderListener(listener); } \
NS_IMETHOD AddIncomingServerListener(nsIIncomingServerListener *serverListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddIncomingServerListener(serverListener); } \
NS_IMETHOD RemoveIncomingServerListener(nsIIncomingServerListener *serverListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveIncomingServerListener(serverListener); } \
NS_IMETHOD NotifyServerLoaded(nsIMsgIncomingServer *server) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyServerLoaded(server); } \
NS_IMETHOD NotifyServerUnloaded(nsIMsgIncomingServer *server) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyServerUnloaded(server); } \
NS_IMETHOD NotifyServerChanged(nsIMsgIncomingServer *server) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyServerChanged(server); } \
NS_IMETHOD SaveAccountInfo(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveAccountInfo(); } \
NS_IMETHOD GetChromePackageName(const nsACString & aExtensionName, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChromePackageName(aExtensionName, _retval); } \
NS_IMETHOD GetAllFolders(nsIArray * *aAllFolders) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllFolders(aAllFolders); } \
NS_IMETHOD FolderUriForPath(nsIFile *aLocalPath, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FolderUriForPath(aLocalPath, _retval); } \
NS_IMETHOD GetSortOrder(nsIMsgIncomingServer *server, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortOrder(server, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMsgAccountManager : public nsIMsgAccountManager
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGACCOUNTMANAGER
nsMsgAccountManager();
private:
~nsMsgAccountManager();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsMsgAccountManager, nsIMsgAccountManager)
nsMsgAccountManager::nsMsgAccountManager()
{
/* member initializers and constructor code */
}
nsMsgAccountManager::~nsMsgAccountManager()
{
/* destructor code */
}
/* nsIMsgAccount createAccount (); */
NS_IMETHODIMP nsMsgAccountManager::CreateAccount(nsIMsgAccount * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgAccount getAccount (in ACString key); */
NS_IMETHODIMP nsMsgAccountManager::GetAccount(const nsACString & key, nsIMsgAccount * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeAccount (in nsIMsgAccount aAccount, [optional] in boolean aRemoveFiles); */
NS_IMETHODIMP nsMsgAccountManager::RemoveAccount(nsIMsgAccount *aAccount, bool aRemoveFiles)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgIdentity createIdentity (); */
NS_IMETHODIMP nsMsgAccountManager::CreateIdentity(nsIMsgIdentity * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgIncomingServer createIncomingServer (in ACString username, in ACString hostname, in ACString type); */
NS_IMETHODIMP nsMsgAccountManager::CreateIncomingServer(const nsACString & username, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeIncomingServer (in nsIMsgIncomingServer aServer, in boolean aRemoveFiles); */
NS_IMETHODIMP nsMsgAccountManager::RemoveIncomingServer(nsIMsgIncomingServer *aServer, bool aRemoveFiles)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgIdentity getIdentity (in ACString key); */
NS_IMETHODIMP nsMsgAccountManager::GetIdentity(const nsACString & key, nsIMsgIdentity * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgIncomingServer getIncomingServer (in ACString key); */
NS_IMETHODIMP nsMsgAccountManager::GetIncomingServer(const nsACString & key, nsIMsgIncomingServer * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIMsgAccount defaultAccount; */
NS_IMETHODIMP nsMsgAccountManager::GetDefaultAccount(nsIMsgAccount * *aDefaultAccount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgAccountManager::SetDefaultAccount(nsIMsgAccount *aDefaultAccount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIArray accounts; */
NS_IMETHODIMP nsMsgAccountManager::GetAccounts(nsIArray * *aAccounts)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIArray allIdentities; */
NS_IMETHODIMP nsMsgAccountManager::GetAllIdentities(nsIArray * *aAllIdentities)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIArray allServers; */
NS_IMETHODIMP nsMsgAccountManager::GetAllServers(nsIArray * *aAllServers)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIMsgFolderCache folderCache; */
NS_IMETHODIMP nsMsgAccountManager::GetFolderCache(nsIMsgFolderCache * *aFolderCache)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean shutdownInProgress; */
NS_IMETHODIMP nsMsgAccountManager::GetShutdownInProgress(bool *aShutdownInProgress)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean userNeedsToAuthenticate; */
NS_IMETHODIMP nsMsgAccountManager::GetUserNeedsToAuthenticate(bool *aUserNeedsToAuthenticate)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgAccountManager::SetUserNeedsToAuthenticate(bool aUserNeedsToAuthenticate)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgIncomingServer FindServer (in ACString userName, in ACString hostname, in ACString type); */
NS_IMETHODIMP nsMsgAccountManager::FindServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgIncomingServer findServerByURI (in nsIURI aURI, in boolean aRealFlag); */
NS_IMETHODIMP nsMsgAccountManager::FindServerByURI(nsIURI *aURI, bool aRealFlag, nsIMsgIncomingServer * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgIncomingServer findRealServer (in ACString userName, in ACString hostname, in ACString type, in long port); */
NS_IMETHODIMP nsMsgAccountManager::FindRealServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, int32_t port, nsIMsgIncomingServer * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long FindServerIndex (in nsIMsgIncomingServer server); */
NS_IMETHODIMP nsMsgAccountManager::FindServerIndex(nsIMsgIncomingServer *server, int32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgAccount FindAccountForServer (in nsIMsgIncomingServer server); */
NS_IMETHODIMP nsMsgAccountManager::FindAccountForServer(nsIMsgIncomingServer *server, nsIMsgAccount * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIArray getIdentitiesForServer (in nsIMsgIncomingServer server); */
NS_IMETHODIMP nsMsgAccountManager::GetIdentitiesForServer(nsIMsgIncomingServer *server, nsIArray * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgIdentity getFirstIdentityForServer (in nsIMsgIncomingServer server); */
NS_IMETHODIMP nsMsgAccountManager::GetFirstIdentityForServer(nsIMsgIncomingServer *server, nsIMsgIdentity * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIArray getServersForIdentity (in nsIMsgIdentity identity); */
NS_IMETHODIMP nsMsgAccountManager::GetServersForIdentity(nsIMsgIdentity *identity, nsIArray * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIMsgIncomingServer localFoldersServer; */
NS_IMETHODIMP nsMsgAccountManager::GetLocalFoldersServer(nsIMsgIncomingServer * *aLocalFoldersServer)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgAccountManager::SetLocalFoldersServer(nsIMsgIncomingServer *aLocalFoldersServer)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void createLocalMailAccount (); */
NS_IMETHODIMP nsMsgAccountManager::CreateLocalMailAccount()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void LoadAccounts (); */
NS_IMETHODIMP nsMsgAccountManager::LoadAccounts()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setSpecialFolders (); */
NS_IMETHODIMP nsMsgAccountManager::SetSpecialFolders()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void loadVirtualFolders (); */
NS_IMETHODIMP nsMsgAccountManager::LoadVirtualFolders()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void UnloadAccounts (); */
NS_IMETHODIMP nsMsgAccountManager::UnloadAccounts()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void WriteToFolderCache (in nsIMsgFolderCache folderCache); */
NS_IMETHODIMP nsMsgAccountManager::WriteToFolderCache(nsIMsgFolderCache *folderCache)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void saveVirtualFolders (); */
NS_IMETHODIMP nsMsgAccountManager::SaveVirtualFolders()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void closeCachedConnections (); */
NS_IMETHODIMP nsMsgAccountManager::CloseCachedConnections()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void shutdownServers (); */
NS_IMETHODIMP nsMsgAccountManager::ShutdownServers()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void CleanupOnExit (); */
NS_IMETHODIMP nsMsgAccountManager::CleanupOnExit()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void SetFolderDoingEmptyTrash (in nsIMsgFolder folder); */
NS_IMETHODIMP nsMsgAccountManager::SetFolderDoingEmptyTrash(nsIMsgFolder *folder)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean GetEmptyTrashInProgress (); */
NS_IMETHODIMP nsMsgAccountManager::GetEmptyTrashInProgress(bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void SetFolderDoingCleanupInbox (in nsIMsgFolder folder); */
NS_IMETHODIMP nsMsgAccountManager::SetFolderDoingCleanupInbox(nsIMsgFolder *folder)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean GetCleanupInboxInProgress (); */
NS_IMETHODIMP nsMsgAccountManager::GetCleanupInboxInProgress(bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addRootFolderListener (in nsIFolderListener listener); */
NS_IMETHODIMP nsMsgAccountManager::AddRootFolderListener(nsIFolderListener *listener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeRootFolderListener (in nsIFolderListener listener); */
NS_IMETHODIMP nsMsgAccountManager::RemoveRootFolderListener(nsIFolderListener *listener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void addIncomingServerListener (in nsIIncomingServerListener serverListener); */
NS_IMETHODIMP nsMsgAccountManager::AddIncomingServerListener(nsIIncomingServerListener *serverListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeIncomingServerListener (in nsIIncomingServerListener serverListener); */
NS_IMETHODIMP nsMsgAccountManager::RemoveIncomingServerListener(nsIIncomingServerListener *serverListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyServerLoaded (in nsIMsgIncomingServer server); */
NS_IMETHODIMP nsMsgAccountManager::NotifyServerLoaded(nsIMsgIncomingServer *server)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyServerUnloaded (in nsIMsgIncomingServer server); */
NS_IMETHODIMP nsMsgAccountManager::NotifyServerUnloaded(nsIMsgIncomingServer *server)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyServerChanged (in nsIMsgIncomingServer server); */
NS_IMETHODIMP nsMsgAccountManager::NotifyServerChanged(nsIMsgIncomingServer *server)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void saveAccountInfo (); */
NS_IMETHODIMP nsMsgAccountManager::SaveAccountInfo()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* ACString getChromePackageName (in ACString aExtensionName); */
NS_IMETHODIMP nsMsgAccountManager::GetChromePackageName(const nsACString & aExtensionName, nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIArray allFolders; */
NS_IMETHODIMP nsMsgAccountManager::GetAllFolders(nsIArray * *aAllFolders)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* ACString folderUriForPath (in nsIFile aLocalPath); */
NS_IMETHODIMP nsMsgAccountManager::FolderUriForPath(nsIFile *aLocalPath, nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long getSortOrder (in nsIMsgIncomingServer server); */
NS_IMETHODIMP nsMsgAccountManager::GetSortOrder(nsIMsgIncomingServer *server, int32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define MAILNEWS_ACCOUNTMANAGER_EXTENSIONS "mailnews-accountmanager-extensions"
/* starting interface: nsIMsgAccountManagerExtension */
#define NS_IMSGACCOUNTMANAGEREXTENSION_IID_STR "70032de0-cd59-41ba-839d-fc1b65367ee7"
#define NS_IMSGACCOUNTMANAGEREXTENSION_IID \
{0x70032de0, 0xcd59, 0x41ba, \
{ 0x83, 0x9d, 0xfc, 0x1b, 0x65, 0x36, 0x7e, 0xe7 }}
class NS_NO_VTABLE nsIMsgAccountManagerExtension : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGACCOUNTMANAGEREXTENSION_IID)
/* readonly attribute ACString name; */
NS_IMETHOD GetName(nsACString & aName) = 0;
/* boolean showPanel (in nsIMsgIncomingServer server); */
NS_IMETHOD ShowPanel(nsIMsgIncomingServer *server, bool *_retval) = 0;
/* readonly attribute ACString chromePackageName; */
NS_IMETHOD GetChromePackageName(nsACString & aChromePackageName) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgAccountManagerExtension, NS_IMSGACCOUNTMANAGEREXTENSION_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGACCOUNTMANAGEREXTENSION \
NS_IMETHOD GetName(nsACString & aName) override; \
NS_IMETHOD ShowPanel(nsIMsgIncomingServer *server, bool *_retval) override; \
NS_IMETHOD GetChromePackageName(nsACString & aChromePackageName) 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_NSIMSGACCOUNTMANAGEREXTENSION \
NS_METHOD GetName(nsACString & aName); \
NS_METHOD ShowPanel(nsIMsgIncomingServer *server, bool *_retval); \
NS_METHOD GetChromePackageName(nsACString & aChromePackageName);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGACCOUNTMANAGEREXTENSION(_to) \
NS_IMETHOD GetName(nsACString & aName) override { return _to GetName(aName); } \
NS_IMETHOD ShowPanel(nsIMsgIncomingServer *server, bool *_retval) override { return _to ShowPanel(server, _retval); } \
NS_IMETHOD GetChromePackageName(nsACString & aChromePackageName) override { return _to GetChromePackageName(aChromePackageName); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGACCOUNTMANAGEREXTENSION(_to) \
NS_IMETHOD GetName(nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_IMETHOD ShowPanel(nsIMsgIncomingServer *server, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowPanel(server, _retval); } \
NS_IMETHOD GetChromePackageName(nsACString & aChromePackageName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChromePackageName(aChromePackageName); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMsgAccountManagerExtension : public nsIMsgAccountManagerExtension
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGACCOUNTMANAGEREXTENSION
nsMsgAccountManagerExtension();
private:
~nsMsgAccountManagerExtension();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsMsgAccountManagerExtension, nsIMsgAccountManagerExtension)
nsMsgAccountManagerExtension::nsMsgAccountManagerExtension()
{
/* member initializers and constructor code */
}
nsMsgAccountManagerExtension::~nsMsgAccountManagerExtension()
{
/* destructor code */
}
/* readonly attribute ACString name; */
NS_IMETHODIMP nsMsgAccountManagerExtension::GetName(nsACString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean showPanel (in nsIMsgIncomingServer server); */
NS_IMETHODIMP nsMsgAccountManagerExtension::ShowPanel(nsIMsgIncomingServer *server, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute ACString chromePackageName; */
NS_IMETHODIMP nsMsgAccountManagerExtension::GetChromePackageName(nsACString & aChromePackageName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIMsgAccountManager_h__ */
|