/*
 * 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 account); */
  NS_IMETHOD RemoveAccount(nsIMsgAccount *account) = 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 aCleanupFiles); */
  NS_IMETHOD RemoveIncomingServer(nsIMsgIncomingServer *aServer, bool aCleanupFiles) = 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) MOZ_OVERRIDE; \
  NS_IMETHOD GetAccount(const nsACString & key, nsIMsgAccount * *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD RemoveAccount(nsIMsgAccount *account) MOZ_OVERRIDE; \
  NS_IMETHOD CreateIdentity(nsIMsgIdentity * *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD CreateIncomingServer(const nsACString & username, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD RemoveIncomingServer(nsIMsgIncomingServer *aServer, bool aCleanupFiles) MOZ_OVERRIDE; \
  NS_IMETHOD GetIdentity(const nsACString & key, nsIMsgIdentity * *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD GetIncomingServer(const nsACString & key, nsIMsgIncomingServer * *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD GetDefaultAccount(nsIMsgAccount * *aDefaultAccount) MOZ_OVERRIDE; \
  NS_IMETHOD SetDefaultAccount(nsIMsgAccount *aDefaultAccount) MOZ_OVERRIDE; \
  NS_IMETHOD GetAccounts(nsIArray * *aAccounts) MOZ_OVERRIDE; \
  NS_IMETHOD GetAllIdentities(nsIArray * *aAllIdentities) MOZ_OVERRIDE; \
  NS_IMETHOD GetAllServers(nsIArray * *aAllServers) MOZ_OVERRIDE; \
  NS_IMETHOD GetFolderCache(nsIMsgFolderCache * *aFolderCache) MOZ_OVERRIDE; \
  NS_IMETHOD GetShutdownInProgress(bool *aShutdownInProgress) MOZ_OVERRIDE; \
  NS_IMETHOD GetUserNeedsToAuthenticate(bool *aUserNeedsToAuthenticate) MOZ_OVERRIDE; \
  NS_IMETHOD SetUserNeedsToAuthenticate(bool aUserNeedsToAuthenticate) MOZ_OVERRIDE; \
  NS_IMETHOD FindServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD FindServerByURI(nsIURI *aURI, bool aRealFlag, nsIMsgIncomingServer * *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD FindRealServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, int32_t port, nsIMsgIncomingServer * *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD FindServerIndex(nsIMsgIncomingServer *server, int32_t *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD FindAccountForServer(nsIMsgIncomingServer *server, nsIMsgAccount * *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD GetIdentitiesForServer(nsIMsgIncomingServer *server, nsIArray * *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD GetFirstIdentityForServer(nsIMsgIncomingServer *server, nsIMsgIdentity * *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD GetServersForIdentity(nsIMsgIdentity *identity, nsIArray * *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD GetLocalFoldersServer(nsIMsgIncomingServer * *aLocalFoldersServer) MOZ_OVERRIDE; \
  NS_IMETHOD SetLocalFoldersServer(nsIMsgIncomingServer *aLocalFoldersServer) MOZ_OVERRIDE; \
  NS_IMETHOD CreateLocalMailAccount(void) MOZ_OVERRIDE; \
  NS_IMETHOD LoadAccounts(void) MOZ_OVERRIDE; \
  NS_IMETHOD SetSpecialFolders(void) MOZ_OVERRIDE; \
  NS_IMETHOD LoadVirtualFolders(void) MOZ_OVERRIDE; \
  NS_IMETHOD UnloadAccounts(void) MOZ_OVERRIDE; \
  NS_IMETHOD WriteToFolderCache(nsIMsgFolderCache *folderCache) MOZ_OVERRIDE; \
  NS_IMETHOD SaveVirtualFolders(void) MOZ_OVERRIDE; \
  NS_IMETHOD CloseCachedConnections(void) MOZ_OVERRIDE; \
  NS_IMETHOD ShutdownServers(void) MOZ_OVERRIDE; \
  NS_IMETHOD CleanupOnExit(void) MOZ_OVERRIDE; \
  NS_IMETHOD SetFolderDoingEmptyTrash(nsIMsgFolder *folder) MOZ_OVERRIDE; \
  NS_IMETHOD GetEmptyTrashInProgress(bool *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD SetFolderDoingCleanupInbox(nsIMsgFolder *folder) MOZ_OVERRIDE; \
  NS_IMETHOD GetCleanupInboxInProgress(bool *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD AddRootFolderListener(nsIFolderListener *listener) MOZ_OVERRIDE; \
  NS_IMETHOD RemoveRootFolderListener(nsIFolderListener *listener) MOZ_OVERRIDE; \
  NS_IMETHOD AddIncomingServerListener(nsIIncomingServerListener *serverListener) MOZ_OVERRIDE; \
  NS_IMETHOD RemoveIncomingServerListener(nsIIncomingServerListener *serverListener) MOZ_OVERRIDE; \
  NS_IMETHOD NotifyServerLoaded(nsIMsgIncomingServer *server) MOZ_OVERRIDE; \
  NS_IMETHOD NotifyServerUnloaded(nsIMsgIncomingServer *server) MOZ_OVERRIDE; \
  NS_IMETHOD NotifyServerChanged(nsIMsgIncomingServer *server) MOZ_OVERRIDE; \
  NS_IMETHOD SaveAccountInfo(void) MOZ_OVERRIDE; \
  NS_IMETHOD GetChromePackageName(const nsACString & aExtensionName, nsACString & _retval) MOZ_OVERRIDE; \
  NS_IMETHOD GetAllFolders(nsIArray * *aAllFolders) MOZ_OVERRIDE; \
  NS_IMETHOD FolderUriForPath(nsIFile *aLocalPath, nsACString & _retval) MOZ_OVERRIDE; \
  NS_IMETHOD GetSortOrder(nsIMsgIncomingServer *server, int32_t *_retval) MOZ_OVERRIDE; 

/* 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) MOZ_OVERRIDE { return _to CreateAccount(_retval); } \
  NS_IMETHOD GetAccount(const nsACString & key, nsIMsgAccount * *_retval) MOZ_OVERRIDE { return _to GetAccount(key, _retval); } \
  NS_IMETHOD RemoveAccount(nsIMsgAccount *account) MOZ_OVERRIDE { return _to RemoveAccount(account); } \
  NS_IMETHOD CreateIdentity(nsIMsgIdentity * *_retval) MOZ_OVERRIDE { return _to CreateIdentity(_retval); } \
  NS_IMETHOD CreateIncomingServer(const nsACString & username, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval) MOZ_OVERRIDE { return _to CreateIncomingServer(username, hostname, type, _retval); } \
  NS_IMETHOD RemoveIncomingServer(nsIMsgIncomingServer *aServer, bool aCleanupFiles) MOZ_OVERRIDE { return _to RemoveIncomingServer(aServer, aCleanupFiles); } \
  NS_IMETHOD GetIdentity(const nsACString & key, nsIMsgIdentity * *_retval) MOZ_OVERRIDE { return _to GetIdentity(key, _retval); } \
  NS_IMETHOD GetIncomingServer(const nsACString & key, nsIMsgIncomingServer * *_retval) MOZ_OVERRIDE { return _to GetIncomingServer(key, _retval); } \
  NS_IMETHOD GetDefaultAccount(nsIMsgAccount * *aDefaultAccount) MOZ_OVERRIDE { return _to GetDefaultAccount(aDefaultAccount); } \
  NS_IMETHOD SetDefaultAccount(nsIMsgAccount *aDefaultAccount) MOZ_OVERRIDE { return _to SetDefaultAccount(aDefaultAccount); } \
  NS_IMETHOD GetAccounts(nsIArray * *aAccounts) MOZ_OVERRIDE { return _to GetAccounts(aAccounts); } \
  NS_IMETHOD GetAllIdentities(nsIArray * *aAllIdentities) MOZ_OVERRIDE { return _to GetAllIdentities(aAllIdentities); } \
  NS_IMETHOD GetAllServers(nsIArray * *aAllServers) MOZ_OVERRIDE { return _to GetAllServers(aAllServers); } \
  NS_IMETHOD GetFolderCache(nsIMsgFolderCache * *aFolderCache) MOZ_OVERRIDE { return _to GetFolderCache(aFolderCache); } \
  NS_IMETHOD GetShutdownInProgress(bool *aShutdownInProgress) MOZ_OVERRIDE { return _to GetShutdownInProgress(aShutdownInProgress); } \
  NS_IMETHOD GetUserNeedsToAuthenticate(bool *aUserNeedsToAuthenticate) MOZ_OVERRIDE { return _to GetUserNeedsToAuthenticate(aUserNeedsToAuthenticate); } \
  NS_IMETHOD SetUserNeedsToAuthenticate(bool aUserNeedsToAuthenticate) MOZ_OVERRIDE { return _to SetUserNeedsToAuthenticate(aUserNeedsToAuthenticate); } \
  NS_IMETHOD FindServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval) MOZ_OVERRIDE { return _to FindServer(userName, hostname, type, _retval); } \
  NS_IMETHOD FindServerByURI(nsIURI *aURI, bool aRealFlag, nsIMsgIncomingServer * *_retval) MOZ_OVERRIDE { return _to FindServerByURI(aURI, aRealFlag, _retval); } \
  NS_IMETHOD FindRealServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, int32_t port, nsIMsgIncomingServer * *_retval) MOZ_OVERRIDE { return _to FindRealServer(userName, hostname, type, port, _retval); } \
  NS_IMETHOD FindServerIndex(nsIMsgIncomingServer *server, int32_t *_retval) MOZ_OVERRIDE { return _to FindServerIndex(server, _retval); } \
  NS_IMETHOD FindAccountForServer(nsIMsgIncomingServer *server, nsIMsgAccount * *_retval) MOZ_OVERRIDE { return _to FindAccountForServer(server, _retval); } \
  NS_IMETHOD GetIdentitiesForServer(nsIMsgIncomingServer *server, nsIArray * *_retval) MOZ_OVERRIDE { return _to GetIdentitiesForServer(server, _retval); } \
  NS_IMETHOD GetFirstIdentityForServer(nsIMsgIncomingServer *server, nsIMsgIdentity * *_retval) MOZ_OVERRIDE { return _to GetFirstIdentityForServer(server, _retval); } \
  NS_IMETHOD GetServersForIdentity(nsIMsgIdentity *identity, nsIArray * *_retval) MOZ_OVERRIDE { return _to GetServersForIdentity(identity, _retval); } \
  NS_IMETHOD GetLocalFoldersServer(nsIMsgIncomingServer * *aLocalFoldersServer) MOZ_OVERRIDE { return _to GetLocalFoldersServer(aLocalFoldersServer); } \
  NS_IMETHOD SetLocalFoldersServer(nsIMsgIncomingServer *aLocalFoldersServer) MOZ_OVERRIDE { return _to SetLocalFoldersServer(aLocalFoldersServer); } \
  NS_IMETHOD CreateLocalMailAccount(void) MOZ_OVERRIDE { return _to CreateLocalMailAccount(); } \
  NS_IMETHOD LoadAccounts(void) MOZ_OVERRIDE { return _to LoadAccounts(); } \
  NS_IMETHOD SetSpecialFolders(void) MOZ_OVERRIDE { return _to SetSpecialFolders(); } \
  NS_IMETHOD LoadVirtualFolders(void) MOZ_OVERRIDE { return _to LoadVirtualFolders(); } \
  NS_IMETHOD UnloadAccounts(void) MOZ_OVERRIDE { return _to UnloadAccounts(); } \
  NS_IMETHOD WriteToFolderCache(nsIMsgFolderCache *folderCache) MOZ_OVERRIDE { return _to WriteToFolderCache(folderCache); } \
  NS_IMETHOD SaveVirtualFolders(void) MOZ_OVERRIDE { return _to SaveVirtualFolders(); } \
  NS_IMETHOD CloseCachedConnections(void) MOZ_OVERRIDE { return _to CloseCachedConnections(); } \
  NS_IMETHOD ShutdownServers(void) MOZ_OVERRIDE { return _to ShutdownServers(); } \
  NS_IMETHOD CleanupOnExit(void) MOZ_OVERRIDE { return _to CleanupOnExit(); } \
  NS_IMETHOD SetFolderDoingEmptyTrash(nsIMsgFolder *folder) MOZ_OVERRIDE { return _to SetFolderDoingEmptyTrash(folder); } \
  NS_IMETHOD GetEmptyTrashInProgress(bool *_retval) MOZ_OVERRIDE { return _to GetEmptyTrashInProgress(_retval); } \
  NS_IMETHOD SetFolderDoingCleanupInbox(nsIMsgFolder *folder) MOZ_OVERRIDE { return _to SetFolderDoingCleanupInbox(folder); } \
  NS_IMETHOD GetCleanupInboxInProgress(bool *_retval) MOZ_OVERRIDE { return _to GetCleanupInboxInProgress(_retval); } \
  NS_IMETHOD AddRootFolderListener(nsIFolderListener *listener) MOZ_OVERRIDE { return _to AddRootFolderListener(listener); } \
  NS_IMETHOD RemoveRootFolderListener(nsIFolderListener *listener) MOZ_OVERRIDE { return _to RemoveRootFolderListener(listener); } \
  NS_IMETHOD AddIncomingServerListener(nsIIncomingServerListener *serverListener) MOZ_OVERRIDE { return _to AddIncomingServerListener(serverListener); } \
  NS_IMETHOD RemoveIncomingServerListener(nsIIncomingServerListener *serverListener) MOZ_OVERRIDE { return _to RemoveIncomingServerListener(serverListener); } \
  NS_IMETHOD NotifyServerLoaded(nsIMsgIncomingServer *server) MOZ_OVERRIDE { return _to NotifyServerLoaded(server); } \
  NS_IMETHOD NotifyServerUnloaded(nsIMsgIncomingServer *server) MOZ_OVERRIDE { return _to NotifyServerUnloaded(server); } \
  NS_IMETHOD NotifyServerChanged(nsIMsgIncomingServer *server) MOZ_OVERRIDE { return _to NotifyServerChanged(server); } \
  NS_IMETHOD SaveAccountInfo(void) MOZ_OVERRIDE { return _to SaveAccountInfo(); } \
  NS_IMETHOD GetChromePackageName(const nsACString & aExtensionName, nsACString & _retval) MOZ_OVERRIDE { return _to GetChromePackageName(aExtensionName, _retval); } \
  NS_IMETHOD GetAllFolders(nsIArray * *aAllFolders) MOZ_OVERRIDE { return _to GetAllFolders(aAllFolders); } \
  NS_IMETHOD FolderUriForPath(nsIFile *aLocalPath, nsACString & _retval) MOZ_OVERRIDE { return _to FolderUriForPath(aLocalPath, _retval); } \
  NS_IMETHOD GetSortOrder(nsIMsgIncomingServer *server, int32_t *_retval) MOZ_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) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateAccount(_retval); } \
  NS_IMETHOD GetAccount(const nsACString & key, nsIMsgAccount * *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccount(key, _retval); } \
  NS_IMETHOD RemoveAccount(nsIMsgAccount *account) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAccount(account); } \
  NS_IMETHOD CreateIdentity(nsIMsgIdentity * *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateIdentity(_retval); } \
  NS_IMETHOD CreateIncomingServer(const nsACString & username, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateIncomingServer(username, hostname, type, _retval); } \
  NS_IMETHOD RemoveIncomingServer(nsIMsgIncomingServer *aServer, bool aCleanupFiles) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveIncomingServer(aServer, aCleanupFiles); } \
  NS_IMETHOD GetIdentity(const nsACString & key, nsIMsgIdentity * *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdentity(key, _retval); } \
  NS_IMETHOD GetIncomingServer(const nsACString & key, nsIMsgIncomingServer * *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIncomingServer(key, _retval); } \
  NS_IMETHOD GetDefaultAccount(nsIMsgAccount * *aDefaultAccount) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultAccount(aDefaultAccount); } \
  NS_IMETHOD SetDefaultAccount(nsIMsgAccount *aDefaultAccount) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultAccount(aDefaultAccount); } \
  NS_IMETHOD GetAccounts(nsIArray * *aAccounts) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccounts(aAccounts); } \
  NS_IMETHOD GetAllIdentities(nsIArray * *aAllIdentities) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllIdentities(aAllIdentities); } \
  NS_IMETHOD GetAllServers(nsIArray * *aAllServers) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllServers(aAllServers); } \
  NS_IMETHOD GetFolderCache(nsIMsgFolderCache * *aFolderCache) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderCache(aFolderCache); } \
  NS_IMETHOD GetShutdownInProgress(bool *aShutdownInProgress) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShutdownInProgress(aShutdownInProgress); } \
  NS_IMETHOD GetUserNeedsToAuthenticate(bool *aUserNeedsToAuthenticate) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserNeedsToAuthenticate(aUserNeedsToAuthenticate); } \
  NS_IMETHOD SetUserNeedsToAuthenticate(bool aUserNeedsToAuthenticate) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUserNeedsToAuthenticate(aUserNeedsToAuthenticate); } \
  NS_IMETHOD FindServer(const nsACString & userName, const nsACString & hostname, const nsACString & type, nsIMsgIncomingServer * *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->FindServer(userName, hostname, type, _retval); } \
  NS_IMETHOD FindServerByURI(nsIURI *aURI, bool aRealFlag, nsIMsgIncomingServer * *_retval) MOZ_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) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->FindRealServer(userName, hostname, type, port, _retval); } \
  NS_IMETHOD FindServerIndex(nsIMsgIncomingServer *server, int32_t *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->FindServerIndex(server, _retval); } \
  NS_IMETHOD FindAccountForServer(nsIMsgIncomingServer *server, nsIMsgAccount * *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->FindAccountForServer(server, _retval); } \
  NS_IMETHOD GetIdentitiesForServer(nsIMsgIncomingServer *server, nsIArray * *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdentitiesForServer(server, _retval); } \
  NS_IMETHOD GetFirstIdentityForServer(nsIMsgIncomingServer *server, nsIMsgIdentity * *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstIdentityForServer(server, _retval); } \
  NS_IMETHOD GetServersForIdentity(nsIMsgIdentity *identity, nsIArray * *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServersForIdentity(identity, _retval); } \
  NS_IMETHOD GetLocalFoldersServer(nsIMsgIncomingServer * *aLocalFoldersServer) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalFoldersServer(aLocalFoldersServer); } \
  NS_IMETHOD SetLocalFoldersServer(nsIMsgIncomingServer *aLocalFoldersServer) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLocalFoldersServer(aLocalFoldersServer); } \
  NS_IMETHOD CreateLocalMailAccount(void) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateLocalMailAccount(); } \
  NS_IMETHOD LoadAccounts(void) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadAccounts(); } \
  NS_IMETHOD SetSpecialFolders(void) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSpecialFolders(); } \
  NS_IMETHOD LoadVirtualFolders(void) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadVirtualFolders(); } \
  NS_IMETHOD UnloadAccounts(void) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->UnloadAccounts(); } \
  NS_IMETHOD WriteToFolderCache(nsIMsgFolderCache *folderCache) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteToFolderCache(folderCache); } \
  NS_IMETHOD SaveVirtualFolders(void) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveVirtualFolders(); } \
  NS_IMETHOD CloseCachedConnections(void) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseCachedConnections(); } \
  NS_IMETHOD ShutdownServers(void) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->ShutdownServers(); } \
  NS_IMETHOD CleanupOnExit(void) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->CleanupOnExit(); } \
  NS_IMETHOD SetFolderDoingEmptyTrash(nsIMsgFolder *folder) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolderDoingEmptyTrash(folder); } \
  NS_IMETHOD GetEmptyTrashInProgress(bool *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEmptyTrashInProgress(_retval); } \
  NS_IMETHOD SetFolderDoingCleanupInbox(nsIMsgFolder *folder) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolderDoingCleanupInbox(folder); } \
  NS_IMETHOD GetCleanupInboxInProgress(bool *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCleanupInboxInProgress(_retval); } \
  NS_IMETHOD AddRootFolderListener(nsIFolderListener *listener) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->AddRootFolderListener(listener); } \
  NS_IMETHOD RemoveRootFolderListener(nsIFolderListener *listener) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveRootFolderListener(listener); } \
  NS_IMETHOD AddIncomingServerListener(nsIIncomingServerListener *serverListener) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->AddIncomingServerListener(serverListener); } \
  NS_IMETHOD RemoveIncomingServerListener(nsIIncomingServerListener *serverListener) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveIncomingServerListener(serverListener); } \
  NS_IMETHOD NotifyServerLoaded(nsIMsgIncomingServer *server) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyServerLoaded(server); } \
  NS_IMETHOD NotifyServerUnloaded(nsIMsgIncomingServer *server) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyServerUnloaded(server); } \
  NS_IMETHOD NotifyServerChanged(nsIMsgIncomingServer *server) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyServerChanged(server); } \
  NS_IMETHOD SaveAccountInfo(void) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveAccountInfo(); } \
  NS_IMETHOD GetChromePackageName(const nsACString & aExtensionName, nsACString & _retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChromePackageName(aExtensionName, _retval); } \
  NS_IMETHOD GetAllFolders(nsIArray * *aAllFolders) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllFolders(aAllFolders); } \
  NS_IMETHOD FolderUriForPath(nsIFile *aLocalPath, nsACString & _retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->FolderUriForPath(aLocalPath, _retval); } \
  NS_IMETHOD GetSortOrder(nsIMsgIncomingServer *server, int32_t *_retval) MOZ_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 account); */
NS_IMETHODIMP nsMsgAccountManager::RemoveAccount(nsIMsgAccount *account)
{
    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 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)
{
    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) MOZ_OVERRIDE; \
  NS_IMETHOD ShowPanel(nsIMsgIncomingServer *server, bool *_retval) MOZ_OVERRIDE; \
  NS_IMETHOD GetChromePackageName(nsACString & aChromePackageName) MOZ_OVERRIDE; 

/* 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) MOZ_OVERRIDE { return _to GetName(aName); } \
  NS_IMETHOD ShowPanel(nsIMsgIncomingServer *server, bool *_retval) MOZ_OVERRIDE { return _to ShowPanel(server, _retval); } \
  NS_IMETHOD GetChromePackageName(nsACString & aChromePackageName) MOZ_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) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD ShowPanel(nsIMsgIncomingServer *server, bool *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowPanel(server, _retval); } \
  NS_IMETHOD GetChromePackageName(nsACString & aChromePackageName) MOZ_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__ */
