/usr/include/thunderbird-11.0.1/nsIMsgAccountManager.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mailnews/base/public/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 nsISupportsArray; /* forward declaration */
class nsIMsgFolderCache; /* forward declaration */
class nsIFolderListener; /* forward declaration */
/* starting interface: nsIMsgAccountManager */
#define NS_IMSGACCOUNTMANAGER_IID_STR "5cd9a7cc-3bd1-4553-95d8-b1b48f19ed1e"
#define NS_IMSGACCOUNTMANAGER_IID \
{0x5cd9a7cc, 0x3bd1, 0x4553, \
{ 0x95, 0xd8, 0xb1, 0xb4, 0x8f, 0x19, 0xed, 0x1e }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgAccountManager : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGACCOUNTMANAGER_IID)
/* nsIMsgAccount createAccount (); */
NS_SCRIPTABLE NS_IMETHOD CreateAccount(nsIMsgAccount * *_retval NS_OUTPARAM) = 0;
/* nsIMsgAccount getAccount (in ACString key); */
NS_SCRIPTABLE NS_IMETHOD GetAccount(const nsACString & key, nsIMsgAccount * *_retval NS_OUTPARAM) = 0;
/* void removeAccount (in nsIMsgAccount account); */
NS_SCRIPTABLE NS_IMETHOD RemoveAccount(nsIMsgAccount *account) = 0;
/* nsIMsgIdentity createIdentity (); */
NS_SCRIPTABLE NS_IMETHOD CreateIdentity(nsIMsgIdentity * *_retval NS_OUTPARAM) = 0;
/* nsIMsgIncomingServer createIncomingServer (in ACString username, in ACString hostname, in ACString type); */
NS_SCRIPTABLE NS_IMETHOD CreateIncomingServer(const nsACString & username, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval NS_OUTPARAM) = 0;
/* void removeIncomingServer (in nsIMsgIncomingServer aServer, in boolean aCleanupFiles); */
NS_SCRIPTABLE NS_IMETHOD RemoveIncomingServer(nsIMsgIncomingServer *aServer, bool aCleanupFiles) = 0;
/* nsIMsgIdentity getIdentity (in ACString key); */
NS_SCRIPTABLE NS_IMETHOD GetIdentity(const nsACString & key, nsIMsgIdentity * *_retval NS_OUTPARAM) = 0;
/* nsIMsgIncomingServer getIncomingServer (in ACString key); */
NS_SCRIPTABLE NS_IMETHOD GetIncomingServer(const nsACString & key, nsIMsgIncomingServer * *_retval NS_OUTPARAM) = 0;
/* attribute nsIMsgAccount defaultAccount; */
NS_SCRIPTABLE NS_IMETHOD GetDefaultAccount(nsIMsgAccount * *aDefaultAccount) = 0;
NS_SCRIPTABLE NS_IMETHOD SetDefaultAccount(nsIMsgAccount *aDefaultAccount) = 0;
/* readonly attribute nsISupportsArray accounts; */
NS_SCRIPTABLE NS_IMETHOD GetAccounts(nsISupportsArray * *aAccounts) = 0;
/* readonly attribute nsISupportsArray allIdentities; */
NS_SCRIPTABLE NS_IMETHOD GetAllIdentities(nsISupportsArray * *aAllIdentities) = 0;
/* readonly attribute nsISupportsArray allServers; */
NS_SCRIPTABLE NS_IMETHOD GetAllServers(nsISupportsArray * *aAllServers) = 0;
/* readonly attribute nsIMsgFolderCache folderCache; */
NS_SCRIPTABLE NS_IMETHOD GetFolderCache(nsIMsgFolderCache * *aFolderCache) = 0;
/* readonly attribute boolean shutdownInProgress; */
NS_SCRIPTABLE NS_IMETHOD GetShutdownInProgress(bool *aShutdownInProgress) = 0;
/* attribute boolean userNeedsToAuthenticate; */
NS_SCRIPTABLE NS_IMETHOD GetUserNeedsToAuthenticate(bool *aUserNeedsToAuthenticate) = 0;
NS_SCRIPTABLE NS_IMETHOD SetUserNeedsToAuthenticate(bool aUserNeedsToAuthenticate) = 0;
/* nsIMsgIncomingServer FindServer (in ACString userName, in ACString hostname, in ACString type); */
NS_SCRIPTABLE NS_IMETHOD FindServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval NS_OUTPARAM) = 0;
/* nsIMsgIncomingServer findServerByURI (in nsIURI aURI, in boolean aRealFlag); */
NS_SCRIPTABLE NS_IMETHOD FindServerByURI(nsIURI *aURI, bool aRealFlag, nsIMsgIncomingServer * *_retval NS_OUTPARAM) = 0;
/* nsIMsgIncomingServer findRealServer (in ACString userName, in ACString hostname, in ACString type, in long port); */
NS_SCRIPTABLE NS_IMETHOD FindRealServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, PRInt32 port, nsIMsgIncomingServer * *_retval NS_OUTPARAM) = 0;
/* long FindServerIndex (in nsIMsgIncomingServer server); */
NS_SCRIPTABLE NS_IMETHOD FindServerIndex(nsIMsgIncomingServer *server, PRInt32 *_retval NS_OUTPARAM) = 0;
/* nsIMsgAccount FindAccountForServer (in nsIMsgIncomingServer server); */
NS_SCRIPTABLE NS_IMETHOD FindAccountForServer(nsIMsgIncomingServer *server, nsIMsgAccount * *_retval NS_OUTPARAM) = 0;
/* nsISupportsArray GetIdentitiesForServer (in nsIMsgIncomingServer server); */
NS_SCRIPTABLE NS_IMETHOD GetIdentitiesForServer(nsIMsgIncomingServer *server, nsISupportsArray * *_retval NS_OUTPARAM) = 0;
/* nsIMsgIdentity getFirstIdentityForServer (in nsIMsgIncomingServer server); */
NS_SCRIPTABLE NS_IMETHOD GetFirstIdentityForServer(nsIMsgIncomingServer *server, nsIMsgIdentity * *_retval NS_OUTPARAM) = 0;
/* nsISupportsArray GetServersForIdentity (in nsIMsgIdentity identity); */
NS_SCRIPTABLE NS_IMETHOD GetServersForIdentity(nsIMsgIdentity *identity, nsISupportsArray * *_retval NS_OUTPARAM) = 0;
/* attribute nsIMsgIncomingServer localFoldersServer; */
NS_SCRIPTABLE NS_IMETHOD GetLocalFoldersServer(nsIMsgIncomingServer * *aLocalFoldersServer) = 0;
NS_SCRIPTABLE NS_IMETHOD SetLocalFoldersServer(nsIMsgIncomingServer *aLocalFoldersServer) = 0;
/* void createLocalMailAccount (); */
NS_SCRIPTABLE NS_IMETHOD CreateLocalMailAccount(void) = 0;
/* void LoadAccounts (); */
NS_SCRIPTABLE NS_IMETHOD LoadAccounts(void) = 0;
/* void setSpecialFolders (); */
NS_SCRIPTABLE NS_IMETHOD SetSpecialFolders(void) = 0;
/* void loadVirtualFolders (); */
NS_SCRIPTABLE NS_IMETHOD LoadVirtualFolders(void) = 0;
/* void UnloadAccounts (); */
NS_SCRIPTABLE NS_IMETHOD UnloadAccounts(void) = 0;
/* void WriteToFolderCache (in nsIMsgFolderCache folderCache); */
NS_SCRIPTABLE NS_IMETHOD WriteToFolderCache(nsIMsgFolderCache *folderCache) = 0;
/* void saveVirtualFolders (); */
NS_SCRIPTABLE NS_IMETHOD SaveVirtualFolders(void) = 0;
/* void closeCachedConnections (); */
NS_SCRIPTABLE NS_IMETHOD CloseCachedConnections(void) = 0;
/* void shutdownServers (); */
NS_SCRIPTABLE NS_IMETHOD ShutdownServers(void) = 0;
/* void CleanupOnExit (); */
NS_SCRIPTABLE NS_IMETHOD CleanupOnExit(void) = 0;
/* void SetFolderDoingEmptyTrash (in nsIMsgFolder folder); */
NS_SCRIPTABLE NS_IMETHOD SetFolderDoingEmptyTrash(nsIMsgFolder *folder) = 0;
/* boolean GetEmptyTrashInProgress (); */
NS_SCRIPTABLE NS_IMETHOD GetEmptyTrashInProgress(bool *_retval NS_OUTPARAM) = 0;
/* void SetFolderDoingCleanupInbox (in nsIMsgFolder folder); */
NS_SCRIPTABLE NS_IMETHOD SetFolderDoingCleanupInbox(nsIMsgFolder *folder) = 0;
/* boolean GetCleanupInboxInProgress (); */
NS_SCRIPTABLE NS_IMETHOD GetCleanupInboxInProgress(bool *_retval NS_OUTPARAM) = 0;
/* void addRootFolderListener (in nsIFolderListener listener); */
NS_SCRIPTABLE NS_IMETHOD AddRootFolderListener(nsIFolderListener *listener) = 0;
/* void removeRootFolderListener (in nsIFolderListener listener); */
NS_SCRIPTABLE NS_IMETHOD RemoveRootFolderListener(nsIFolderListener *listener) = 0;
/* void addIncomingServerListener (in nsIIncomingServerListener serverListener); */
NS_SCRIPTABLE NS_IMETHOD AddIncomingServerListener(nsIIncomingServerListener *serverListener) = 0;
/* void removeIncomingServerListener (in nsIIncomingServerListener serverListener); */
NS_SCRIPTABLE NS_IMETHOD RemoveIncomingServerListener(nsIIncomingServerListener *serverListener) = 0;
/* void notifyServerLoaded (in nsIMsgIncomingServer server); */
NS_SCRIPTABLE NS_IMETHOD NotifyServerLoaded(nsIMsgIncomingServer *server) = 0;
/* void notifyServerUnloaded (in nsIMsgIncomingServer server); */
NS_SCRIPTABLE NS_IMETHOD NotifyServerUnloaded(nsIMsgIncomingServer *server) = 0;
/* void notifyServerChanged (in nsIMsgIncomingServer server); */
NS_SCRIPTABLE NS_IMETHOD NotifyServerChanged(nsIMsgIncomingServer *server) = 0;
/* void saveAccountInfo (); */
NS_SCRIPTABLE NS_IMETHOD SaveAccountInfo(void) = 0;
/* ACString getChromePackageName (in ACString aExtensionName); */
NS_SCRIPTABLE NS_IMETHOD GetChromePackageName(const nsACString & aExtensionName, nsACString & _retval NS_OUTPARAM) = 0;
/* readonly attribute nsIArray allFolders; */
NS_SCRIPTABLE NS_IMETHOD GetAllFolders(nsIArray * *aAllFolders) = 0;
/* ACString folderUriForPath (in nsILocalFile aLocalPath); */
NS_SCRIPTABLE NS_IMETHOD FolderUriForPath(nsILocalFile *aLocalPath, nsACString & _retval NS_OUTPARAM) = 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_SCRIPTABLE NS_IMETHOD CreateAccount(nsIMsgAccount * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetAccount(const nsACString & key, nsIMsgAccount * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD RemoveAccount(nsIMsgAccount *account); \
NS_SCRIPTABLE NS_IMETHOD CreateIdentity(nsIMsgIdentity * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD CreateIncomingServer(const nsACString & username, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD RemoveIncomingServer(nsIMsgIncomingServer *aServer, bool aCleanupFiles); \
NS_SCRIPTABLE NS_IMETHOD GetIdentity(const nsACString & key, nsIMsgIdentity * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetIncomingServer(const nsACString & key, nsIMsgIncomingServer * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetDefaultAccount(nsIMsgAccount * *aDefaultAccount); \
NS_SCRIPTABLE NS_IMETHOD SetDefaultAccount(nsIMsgAccount *aDefaultAccount); \
NS_SCRIPTABLE NS_IMETHOD GetAccounts(nsISupportsArray * *aAccounts); \
NS_SCRIPTABLE NS_IMETHOD GetAllIdentities(nsISupportsArray * *aAllIdentities); \
NS_SCRIPTABLE NS_IMETHOD GetAllServers(nsISupportsArray * *aAllServers); \
NS_SCRIPTABLE NS_IMETHOD GetFolderCache(nsIMsgFolderCache * *aFolderCache); \
NS_SCRIPTABLE NS_IMETHOD GetShutdownInProgress(bool *aShutdownInProgress); \
NS_SCRIPTABLE NS_IMETHOD GetUserNeedsToAuthenticate(bool *aUserNeedsToAuthenticate); \
NS_SCRIPTABLE NS_IMETHOD SetUserNeedsToAuthenticate(bool aUserNeedsToAuthenticate); \
NS_SCRIPTABLE NS_IMETHOD FindServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD FindServerByURI(nsIURI *aURI, bool aRealFlag, nsIMsgIncomingServer * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD FindRealServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, PRInt32 port, nsIMsgIncomingServer * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD FindServerIndex(nsIMsgIncomingServer *server, PRInt32 *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD FindAccountForServer(nsIMsgIncomingServer *server, nsIMsgAccount * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetIdentitiesForServer(nsIMsgIncomingServer *server, nsISupportsArray * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetFirstIdentityForServer(nsIMsgIncomingServer *server, nsIMsgIdentity * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetServersForIdentity(nsIMsgIdentity *identity, nsISupportsArray * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetLocalFoldersServer(nsIMsgIncomingServer * *aLocalFoldersServer); \
NS_SCRIPTABLE NS_IMETHOD SetLocalFoldersServer(nsIMsgIncomingServer *aLocalFoldersServer); \
NS_SCRIPTABLE NS_IMETHOD CreateLocalMailAccount(void); \
NS_SCRIPTABLE NS_IMETHOD LoadAccounts(void); \
NS_SCRIPTABLE NS_IMETHOD SetSpecialFolders(void); \
NS_SCRIPTABLE NS_IMETHOD LoadVirtualFolders(void); \
NS_SCRIPTABLE NS_IMETHOD UnloadAccounts(void); \
NS_SCRIPTABLE NS_IMETHOD WriteToFolderCache(nsIMsgFolderCache *folderCache); \
NS_SCRIPTABLE NS_IMETHOD SaveVirtualFolders(void); \
NS_SCRIPTABLE NS_IMETHOD CloseCachedConnections(void); \
NS_SCRIPTABLE NS_IMETHOD ShutdownServers(void); \
NS_SCRIPTABLE NS_IMETHOD CleanupOnExit(void); \
NS_SCRIPTABLE NS_IMETHOD SetFolderDoingEmptyTrash(nsIMsgFolder *folder); \
NS_SCRIPTABLE NS_IMETHOD GetEmptyTrashInProgress(bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD SetFolderDoingCleanupInbox(nsIMsgFolder *folder); \
NS_SCRIPTABLE NS_IMETHOD GetCleanupInboxInProgress(bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD AddRootFolderListener(nsIFolderListener *listener); \
NS_SCRIPTABLE NS_IMETHOD RemoveRootFolderListener(nsIFolderListener *listener); \
NS_SCRIPTABLE NS_IMETHOD AddIncomingServerListener(nsIIncomingServerListener *serverListener); \
NS_SCRIPTABLE NS_IMETHOD RemoveIncomingServerListener(nsIIncomingServerListener *serverListener); \
NS_SCRIPTABLE NS_IMETHOD NotifyServerLoaded(nsIMsgIncomingServer *server); \
NS_SCRIPTABLE NS_IMETHOD NotifyServerUnloaded(nsIMsgIncomingServer *server); \
NS_SCRIPTABLE NS_IMETHOD NotifyServerChanged(nsIMsgIncomingServer *server); \
NS_SCRIPTABLE NS_IMETHOD SaveAccountInfo(void); \
NS_SCRIPTABLE NS_IMETHOD GetChromePackageName(const nsACString & aExtensionName, nsACString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetAllFolders(nsIArray * *aAllFolders); \
NS_SCRIPTABLE NS_IMETHOD FolderUriForPath(nsILocalFile *aLocalPath, nsACString & _retval NS_OUTPARAM);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGACCOUNTMANAGER(_to) \
NS_SCRIPTABLE NS_IMETHOD CreateAccount(nsIMsgAccount * *_retval NS_OUTPARAM) { return _to CreateAccount(_retval); } \
NS_SCRIPTABLE NS_IMETHOD GetAccount(const nsACString & key, nsIMsgAccount * *_retval NS_OUTPARAM) { return _to GetAccount(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RemoveAccount(nsIMsgAccount *account) { return _to RemoveAccount(account); } \
NS_SCRIPTABLE NS_IMETHOD CreateIdentity(nsIMsgIdentity * *_retval NS_OUTPARAM) { return _to CreateIdentity(_retval); } \
NS_SCRIPTABLE NS_IMETHOD CreateIncomingServer(const nsACString & username, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval NS_OUTPARAM) { return _to CreateIncomingServer(username, hostname, type, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RemoveIncomingServer(nsIMsgIncomingServer *aServer, bool aCleanupFiles) { return _to RemoveIncomingServer(aServer, aCleanupFiles); } \
NS_SCRIPTABLE NS_IMETHOD GetIdentity(const nsACString & key, nsIMsgIdentity * *_retval NS_OUTPARAM) { return _to GetIdentity(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetIncomingServer(const nsACString & key, nsIMsgIncomingServer * *_retval NS_OUTPARAM) { return _to GetIncomingServer(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetDefaultAccount(nsIMsgAccount * *aDefaultAccount) { return _to GetDefaultAccount(aDefaultAccount); } \
NS_SCRIPTABLE NS_IMETHOD SetDefaultAccount(nsIMsgAccount *aDefaultAccount) { return _to SetDefaultAccount(aDefaultAccount); } \
NS_SCRIPTABLE NS_IMETHOD GetAccounts(nsISupportsArray * *aAccounts) { return _to GetAccounts(aAccounts); } \
NS_SCRIPTABLE NS_IMETHOD GetAllIdentities(nsISupportsArray * *aAllIdentities) { return _to GetAllIdentities(aAllIdentities); } \
NS_SCRIPTABLE NS_IMETHOD GetAllServers(nsISupportsArray * *aAllServers) { return _to GetAllServers(aAllServers); } \
NS_SCRIPTABLE NS_IMETHOD GetFolderCache(nsIMsgFolderCache * *aFolderCache) { return _to GetFolderCache(aFolderCache); } \
NS_SCRIPTABLE NS_IMETHOD GetShutdownInProgress(bool *aShutdownInProgress) { return _to GetShutdownInProgress(aShutdownInProgress); } \
NS_SCRIPTABLE NS_IMETHOD GetUserNeedsToAuthenticate(bool *aUserNeedsToAuthenticate) { return _to GetUserNeedsToAuthenticate(aUserNeedsToAuthenticate); } \
NS_SCRIPTABLE NS_IMETHOD SetUserNeedsToAuthenticate(bool aUserNeedsToAuthenticate) { return _to SetUserNeedsToAuthenticate(aUserNeedsToAuthenticate); } \
NS_SCRIPTABLE NS_IMETHOD FindServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval NS_OUTPARAM) { return _to FindServer(userName, hostname, type, _retval); } \
NS_SCRIPTABLE NS_IMETHOD FindServerByURI(nsIURI *aURI, bool aRealFlag, nsIMsgIncomingServer * *_retval NS_OUTPARAM) { return _to FindServerByURI(aURI, aRealFlag, _retval); } \
NS_SCRIPTABLE NS_IMETHOD FindRealServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, PRInt32 port, nsIMsgIncomingServer * *_retval NS_OUTPARAM) { return _to FindRealServer(userName, hostname, type, port, _retval); } \
NS_SCRIPTABLE NS_IMETHOD FindServerIndex(nsIMsgIncomingServer *server, PRInt32 *_retval NS_OUTPARAM) { return _to FindServerIndex(server, _retval); } \
NS_SCRIPTABLE NS_IMETHOD FindAccountForServer(nsIMsgIncomingServer *server, nsIMsgAccount * *_retval NS_OUTPARAM) { return _to FindAccountForServer(server, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetIdentitiesForServer(nsIMsgIncomingServer *server, nsISupportsArray * *_retval NS_OUTPARAM) { return _to GetIdentitiesForServer(server, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetFirstIdentityForServer(nsIMsgIncomingServer *server, nsIMsgIdentity * *_retval NS_OUTPARAM) { return _to GetFirstIdentityForServer(server, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetServersForIdentity(nsIMsgIdentity *identity, nsISupportsArray * *_retval NS_OUTPARAM) { return _to GetServersForIdentity(identity, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetLocalFoldersServer(nsIMsgIncomingServer * *aLocalFoldersServer) { return _to GetLocalFoldersServer(aLocalFoldersServer); } \
NS_SCRIPTABLE NS_IMETHOD SetLocalFoldersServer(nsIMsgIncomingServer *aLocalFoldersServer) { return _to SetLocalFoldersServer(aLocalFoldersServer); } \
NS_SCRIPTABLE NS_IMETHOD CreateLocalMailAccount(void) { return _to CreateLocalMailAccount(); } \
NS_SCRIPTABLE NS_IMETHOD LoadAccounts(void) { return _to LoadAccounts(); } \
NS_SCRIPTABLE NS_IMETHOD SetSpecialFolders(void) { return _to SetSpecialFolders(); } \
NS_SCRIPTABLE NS_IMETHOD LoadVirtualFolders(void) { return _to LoadVirtualFolders(); } \
NS_SCRIPTABLE NS_IMETHOD UnloadAccounts(void) { return _to UnloadAccounts(); } \
NS_SCRIPTABLE NS_IMETHOD WriteToFolderCache(nsIMsgFolderCache *folderCache) { return _to WriteToFolderCache(folderCache); } \
NS_SCRIPTABLE NS_IMETHOD SaveVirtualFolders(void) { return _to SaveVirtualFolders(); } \
NS_SCRIPTABLE NS_IMETHOD CloseCachedConnections(void) { return _to CloseCachedConnections(); } \
NS_SCRIPTABLE NS_IMETHOD ShutdownServers(void) { return _to ShutdownServers(); } \
NS_SCRIPTABLE NS_IMETHOD CleanupOnExit(void) { return _to CleanupOnExit(); } \
NS_SCRIPTABLE NS_IMETHOD SetFolderDoingEmptyTrash(nsIMsgFolder *folder) { return _to SetFolderDoingEmptyTrash(folder); } \
NS_SCRIPTABLE NS_IMETHOD GetEmptyTrashInProgress(bool *_retval NS_OUTPARAM) { return _to GetEmptyTrashInProgress(_retval); } \
NS_SCRIPTABLE NS_IMETHOD SetFolderDoingCleanupInbox(nsIMsgFolder *folder) { return _to SetFolderDoingCleanupInbox(folder); } \
NS_SCRIPTABLE NS_IMETHOD GetCleanupInboxInProgress(bool *_retval NS_OUTPARAM) { return _to GetCleanupInboxInProgress(_retval); } \
NS_SCRIPTABLE NS_IMETHOD AddRootFolderListener(nsIFolderListener *listener) { return _to AddRootFolderListener(listener); } \
NS_SCRIPTABLE NS_IMETHOD RemoveRootFolderListener(nsIFolderListener *listener) { return _to RemoveRootFolderListener(listener); } \
NS_SCRIPTABLE NS_IMETHOD AddIncomingServerListener(nsIIncomingServerListener *serverListener) { return _to AddIncomingServerListener(serverListener); } \
NS_SCRIPTABLE NS_IMETHOD RemoveIncomingServerListener(nsIIncomingServerListener *serverListener) { return _to RemoveIncomingServerListener(serverListener); } \
NS_SCRIPTABLE NS_IMETHOD NotifyServerLoaded(nsIMsgIncomingServer *server) { return _to NotifyServerLoaded(server); } \
NS_SCRIPTABLE NS_IMETHOD NotifyServerUnloaded(nsIMsgIncomingServer *server) { return _to NotifyServerUnloaded(server); } \
NS_SCRIPTABLE NS_IMETHOD NotifyServerChanged(nsIMsgIncomingServer *server) { return _to NotifyServerChanged(server); } \
NS_SCRIPTABLE NS_IMETHOD SaveAccountInfo(void) { return _to SaveAccountInfo(); } \
NS_SCRIPTABLE NS_IMETHOD GetChromePackageName(const nsACString & aExtensionName, nsACString & _retval NS_OUTPARAM) { return _to GetChromePackageName(aExtensionName, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetAllFolders(nsIArray * *aAllFolders) { return _to GetAllFolders(aAllFolders); } \
NS_SCRIPTABLE NS_IMETHOD FolderUriForPath(nsILocalFile *aLocalPath, nsACString & _retval NS_OUTPARAM) { return _to FolderUriForPath(aLocalPath, _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_SCRIPTABLE NS_IMETHOD CreateAccount(nsIMsgAccount * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateAccount(_retval); } \
NS_SCRIPTABLE NS_IMETHOD GetAccount(const nsACString & key, nsIMsgAccount * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccount(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RemoveAccount(nsIMsgAccount *account) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAccount(account); } \
NS_SCRIPTABLE NS_IMETHOD CreateIdentity(nsIMsgIdentity * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateIdentity(_retval); } \
NS_SCRIPTABLE NS_IMETHOD CreateIncomingServer(const nsACString & username, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateIncomingServer(username, hostname, type, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RemoveIncomingServer(nsIMsgIncomingServer *aServer, bool aCleanupFiles) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveIncomingServer(aServer, aCleanupFiles); } \
NS_SCRIPTABLE NS_IMETHOD GetIdentity(const nsACString & key, nsIMsgIdentity * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdentity(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetIncomingServer(const nsACString & key, nsIMsgIncomingServer * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIncomingServer(key, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetDefaultAccount(nsIMsgAccount * *aDefaultAccount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultAccount(aDefaultAccount); } \
NS_SCRIPTABLE NS_IMETHOD SetDefaultAccount(nsIMsgAccount *aDefaultAccount) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultAccount(aDefaultAccount); } \
NS_SCRIPTABLE NS_IMETHOD GetAccounts(nsISupportsArray * *aAccounts) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccounts(aAccounts); } \
NS_SCRIPTABLE NS_IMETHOD GetAllIdentities(nsISupportsArray * *aAllIdentities) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllIdentities(aAllIdentities); } \
NS_SCRIPTABLE NS_IMETHOD GetAllServers(nsISupportsArray * *aAllServers) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllServers(aAllServers); } \
NS_SCRIPTABLE NS_IMETHOD GetFolderCache(nsIMsgFolderCache * *aFolderCache) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderCache(aFolderCache); } \
NS_SCRIPTABLE NS_IMETHOD GetShutdownInProgress(bool *aShutdownInProgress) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShutdownInProgress(aShutdownInProgress); } \
NS_SCRIPTABLE NS_IMETHOD GetUserNeedsToAuthenticate(bool *aUserNeedsToAuthenticate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserNeedsToAuthenticate(aUserNeedsToAuthenticate); } \
NS_SCRIPTABLE NS_IMETHOD SetUserNeedsToAuthenticate(bool aUserNeedsToAuthenticate) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUserNeedsToAuthenticate(aUserNeedsToAuthenticate); } \
NS_SCRIPTABLE NS_IMETHOD FindServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindServer(userName, hostname, type, _retval); } \
NS_SCRIPTABLE NS_IMETHOD FindServerByURI(nsIURI *aURI, bool aRealFlag, nsIMsgIncomingServer * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindServerByURI(aURI, aRealFlag, _retval); } \
NS_SCRIPTABLE NS_IMETHOD FindRealServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, PRInt32 port, nsIMsgIncomingServer * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindRealServer(userName, hostname, type, port, _retval); } \
NS_SCRIPTABLE NS_IMETHOD FindServerIndex(nsIMsgIncomingServer *server, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindServerIndex(server, _retval); } \
NS_SCRIPTABLE NS_IMETHOD FindAccountForServer(nsIMsgIncomingServer *server, nsIMsgAccount * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindAccountForServer(server, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetIdentitiesForServer(nsIMsgIncomingServer *server, nsISupportsArray * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdentitiesForServer(server, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetFirstIdentityForServer(nsIMsgIncomingServer *server, nsIMsgIdentity * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstIdentityForServer(server, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetServersForIdentity(nsIMsgIdentity *identity, nsISupportsArray * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServersForIdentity(identity, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetLocalFoldersServer(nsIMsgIncomingServer * *aLocalFoldersServer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalFoldersServer(aLocalFoldersServer); } \
NS_SCRIPTABLE NS_IMETHOD SetLocalFoldersServer(nsIMsgIncomingServer *aLocalFoldersServer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLocalFoldersServer(aLocalFoldersServer); } \
NS_SCRIPTABLE NS_IMETHOD CreateLocalMailAccount(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateLocalMailAccount(); } \
NS_SCRIPTABLE NS_IMETHOD LoadAccounts(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadAccounts(); } \
NS_SCRIPTABLE NS_IMETHOD SetSpecialFolders(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSpecialFolders(); } \
NS_SCRIPTABLE NS_IMETHOD LoadVirtualFolders(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadVirtualFolders(); } \
NS_SCRIPTABLE NS_IMETHOD UnloadAccounts(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnloadAccounts(); } \
NS_SCRIPTABLE NS_IMETHOD WriteToFolderCache(nsIMsgFolderCache *folderCache) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteToFolderCache(folderCache); } \
NS_SCRIPTABLE NS_IMETHOD SaveVirtualFolders(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveVirtualFolders(); } \
NS_SCRIPTABLE NS_IMETHOD CloseCachedConnections(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseCachedConnections(); } \
NS_SCRIPTABLE NS_IMETHOD ShutdownServers(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShutdownServers(); } \
NS_SCRIPTABLE NS_IMETHOD CleanupOnExit(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CleanupOnExit(); } \
NS_SCRIPTABLE NS_IMETHOD SetFolderDoingEmptyTrash(nsIMsgFolder *folder) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolderDoingEmptyTrash(folder); } \
NS_SCRIPTABLE NS_IMETHOD GetEmptyTrashInProgress(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEmptyTrashInProgress(_retval); } \
NS_SCRIPTABLE NS_IMETHOD SetFolderDoingCleanupInbox(nsIMsgFolder *folder) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolderDoingCleanupInbox(folder); } \
NS_SCRIPTABLE NS_IMETHOD GetCleanupInboxInProgress(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCleanupInboxInProgress(_retval); } \
NS_SCRIPTABLE NS_IMETHOD AddRootFolderListener(nsIFolderListener *listener) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddRootFolderListener(listener); } \
NS_SCRIPTABLE NS_IMETHOD RemoveRootFolderListener(nsIFolderListener *listener) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveRootFolderListener(listener); } \
NS_SCRIPTABLE NS_IMETHOD AddIncomingServerListener(nsIIncomingServerListener *serverListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddIncomingServerListener(serverListener); } \
NS_SCRIPTABLE NS_IMETHOD RemoveIncomingServerListener(nsIIncomingServerListener *serverListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveIncomingServerListener(serverListener); } \
NS_SCRIPTABLE NS_IMETHOD NotifyServerLoaded(nsIMsgIncomingServer *server) { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyServerLoaded(server); } \
NS_SCRIPTABLE NS_IMETHOD NotifyServerUnloaded(nsIMsgIncomingServer *server) { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyServerUnloaded(server); } \
NS_SCRIPTABLE NS_IMETHOD NotifyServerChanged(nsIMsgIncomingServer *server) { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyServerChanged(server); } \
NS_SCRIPTABLE NS_IMETHOD SaveAccountInfo(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveAccountInfo(); } \
NS_SCRIPTABLE NS_IMETHOD GetChromePackageName(const nsACString & aExtensionName, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChromePackageName(aExtensionName, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetAllFolders(nsIArray * *aAllFolders) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllFolders(aAllFolders); } \
NS_SCRIPTABLE NS_IMETHOD FolderUriForPath(nsILocalFile *aLocalPath, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FolderUriForPath(aLocalPath, _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_ISUPPORTS1(nsMsgAccountManager, nsIMsgAccountManager)
nsMsgAccountManager::nsMsgAccountManager()
{
/* member initializers and constructor code */
}
nsMsgAccountManager::~nsMsgAccountManager()
{
/* destructor code */
}
/* nsIMsgAccount createAccount (); */
NS_IMETHODIMP nsMsgAccountManager::CreateAccount(nsIMsgAccount * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgAccount getAccount (in ACString key); */
NS_IMETHODIMP nsMsgAccountManager::GetAccount(const nsACString & key, nsIMsgAccount * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeAccount (in nsIMsgAccount account); */
NS_IMETHODIMP nsMsgAccountManager::RemoveAccount(nsIMsgAccount *account)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgIdentity createIdentity (); */
NS_IMETHODIMP nsMsgAccountManager::CreateIdentity(nsIMsgIdentity * *_retval NS_OUTPARAM)
{
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 NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeIncomingServer (in nsIMsgIncomingServer aServer, in boolean aCleanupFiles); */
NS_IMETHODIMP nsMsgAccountManager::RemoveIncomingServer(nsIMsgIncomingServer *aServer, bool aCleanupFiles)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgIdentity getIdentity (in ACString key); */
NS_IMETHODIMP nsMsgAccountManager::GetIdentity(const nsACString & key, nsIMsgIdentity * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgIncomingServer getIncomingServer (in ACString key); */
NS_IMETHODIMP nsMsgAccountManager::GetIncomingServer(const nsACString & key, nsIMsgIncomingServer * *_retval NS_OUTPARAM)
{
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 nsISupportsArray accounts; */
NS_IMETHODIMP nsMsgAccountManager::GetAccounts(nsISupportsArray * *aAccounts)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsISupportsArray allIdentities; */
NS_IMETHODIMP nsMsgAccountManager::GetAllIdentities(nsISupportsArray * *aAllIdentities)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsISupportsArray allServers; */
NS_IMETHODIMP nsMsgAccountManager::GetAllServers(nsISupportsArray * *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 NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgIncomingServer findServerByURI (in nsIURI aURI, in boolean aRealFlag); */
NS_IMETHODIMP nsMsgAccountManager::FindServerByURI(nsIURI *aURI, bool aRealFlag, nsIMsgIncomingServer * *_retval NS_OUTPARAM)
{
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, PRInt32 port, nsIMsgIncomingServer * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long FindServerIndex (in nsIMsgIncomingServer server); */
NS_IMETHODIMP nsMsgAccountManager::FindServerIndex(nsIMsgIncomingServer *server, PRInt32 *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgAccount FindAccountForServer (in nsIMsgIncomingServer server); */
NS_IMETHODIMP nsMsgAccountManager::FindAccountForServer(nsIMsgIncomingServer *server, nsIMsgAccount * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISupportsArray GetIdentitiesForServer (in nsIMsgIncomingServer server); */
NS_IMETHODIMP nsMsgAccountManager::GetIdentitiesForServer(nsIMsgIncomingServer *server, nsISupportsArray * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMsgIdentity getFirstIdentityForServer (in nsIMsgIncomingServer server); */
NS_IMETHODIMP nsMsgAccountManager::GetFirstIdentityForServer(nsIMsgIncomingServer *server, nsIMsgIdentity * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISupportsArray GetServersForIdentity (in nsIMsgIdentity identity); */
NS_IMETHODIMP nsMsgAccountManager::GetServersForIdentity(nsIMsgIdentity *identity, nsISupportsArray * *_retval NS_OUTPARAM)
{
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 NS_OUTPARAM)
{
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 NS_OUTPARAM)
{
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 NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIArray allFolders; */
NS_IMETHODIMP nsMsgAccountManager::GetAllFolders(nsIArray * *aAllFolders)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* ACString folderUriForPath (in nsILocalFile aLocalPath); */
NS_IMETHODIMP nsMsgAccountManager::FolderUriForPath(nsILocalFile *aLocalPath, nsACString & _retval NS_OUTPARAM)
{
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 NS_SCRIPTABLE nsIMsgAccountManagerExtension : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGACCOUNTMANAGEREXTENSION_IID)
/* readonly attribute ACString name; */
NS_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName) = 0;
/* boolean showPanel (in nsIMsgIncomingServer server); */
NS_SCRIPTABLE NS_IMETHOD ShowPanel(nsIMsgIncomingServer *server, bool *_retval NS_OUTPARAM) = 0;
/* readonly attribute ACString chromePackageName; */
NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName); \
NS_SCRIPTABLE NS_IMETHOD ShowPanel(nsIMsgIncomingServer *server, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD 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_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName) { return _to GetName(aName); } \
NS_SCRIPTABLE NS_IMETHOD ShowPanel(nsIMsgIncomingServer *server, bool *_retval NS_OUTPARAM) { return _to ShowPanel(server, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetChromePackageName(nsACString & aChromePackageName) { 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_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_SCRIPTABLE NS_IMETHOD ShowPanel(nsIMsgIncomingServer *server, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowPanel(server, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetChromePackageName(nsACString & aChromePackageName) { 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_ISUPPORTS1(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 NS_OUTPARAM)
{
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__ */
|