nsIMsgAccountManager

IID:0dc74b96-c2fc-4ce0-baed-c6f03c69026e
Inherits From:nsISupports

This interface is implemented by the following components:


Properties

readonly nsISupportsArray accounts

Ordered list of all accounts, by the order they are in the prefs array of nsIMsgAccount

readonly nsISupportsArray allIdentities

readonly nsISupportsArray allServers

nsIMsgAccount defaultAccount

readonly nsIMsgFolderCache folderCache

nsIMsgIncomingServer localFoldersServer

readonly PRBool shutdownInProgress

PRBool userNeedsToAuthenticate

For preventing unauthenticated users from seeing header information


Methods

void addIncomingServerListener ( nsIIncomingServerListener serverListener ) void addRootFolderListener ( nsIFolderListener listener ) void CleanupOnExit ( ) void closeCachedConnections ( ) nsIMsgAccount createAccount ( ) nsIMsgIdentity createIdentity ( ) nsIMsgIncomingServer createIncomingServer ( char* username , char* hostname , char* type ) void duplicateAccount ( nsIMsgAccount account ) nsIMsgAccount FindAccountForServer ( nsIMsgIncomingServer server ) nsIMsgIncomingServer findRealServer ( char* userName , char* hostname , char* type , PRInt32 port ) nsIMsgIncomingServer FindServer ( char* userName , char* hostname , char* type ) nsIMsgIncomingServer findServerByURI ( nsIURI URI , PRBool realFlag ) PRInt32 FindServerIndex ( nsIMsgIncomingServer server ) nsIMsgAccount getAccount ( char* key ) char* getChromePackageName ( char* extensionName ) PRBool GetCleanupInboxInProgress ( ) PRBool GetEmptyTrashInProgress ( ) nsIMsgIdentity getFirstIdentityForServer ( nsIMsgIncomingServer server ) nsISupportsArray GetIdentitiesForServer ( nsIMsgIncomingServer server ) nsIMsgIdentity getIdentity ( char* key ) nsIMsgIncomingServer getIncomingServer ( char* key ) nsISupportsArray GetServersForIdentity ( nsIMsgIdentity identity ) void LoadAccounts ( ) void loadVirtualFolders ( ) void notifyServerChanged ( nsIMsgIncomingServer server ) void notifyServerLoaded ( nsIMsgIncomingServer server ) void notifyServerUnloaded ( nsIMsgIncomingServer server ) void removeAccount ( nsIMsgAccount account ) void removeIdentity ( nsIMsgIdentity identity ) void removeIncomingServerListener ( nsIIncomingServerListener serverListener ) void removeRootFolderListener ( nsIFolderListener listener ) void saveAccountInfo ( ) void saveVirtualFolders ( ) void SetFolderDoingCleanupInbox ( nsIMsgFolder folder ) void SetFolderDoingEmptyTrash ( nsIMsgFolder folder ) void setSpecialFolders ( ) void shutdownServers ( ) void UnloadAccounts ( ) void WriteToFolderCache ( nsIMsgFolderCache folderCache )

void addIncomingServerListener ( nsIIncomingServerListener serverListener )

Arguments:
serverListener

void addRootFolderListener ( nsIFolderListener listener )

Arguments:
listener

void CleanupOnExit ( )


void closeCachedConnections ( )


nsIMsgAccount createAccount ( )


nsIMsgIdentity createIdentity ( )


nsIMsgIncomingServer createIncomingServer ( char* username , char* hostname , char* type )

Arguments:
username
hostname
type

void duplicateAccount ( nsIMsgAccount account )

Arguments:
account

nsIMsgAccount FindAccountForServer ( nsIMsgIncomingServer server )

Arguments:
server

nsIMsgIncomingServer findRealServer ( char* userName , char* hostname , char* type , PRInt32 port )

Arguments:
userName
hostname
type
port

nsIMsgIncomingServer FindServer ( char* userName , char* hostname , char* type )

Arguments:
userName
hostname
type

nsIMsgIncomingServer findServerByURI ( nsIURI URI , PRBool realFlag )

Arguments:
URI
realFlag

PRInt32 FindServerIndex ( nsIMsgIncomingServer server )

Find the index of this server in the (ordered) list of accounts

Arguments:
server

nsIMsgAccount getAccount ( char* key )

Arguments:
key

char* getChromePackageName ( char* extensionName )

Arguments:
extensionName

PRBool GetCleanupInboxInProgress ( )


PRBool GetEmptyTrashInProgress ( )


nsIMsgIdentity getFirstIdentityForServer ( nsIMsgIncomingServer server )

Given a server, return the first identity in accounts that have this server

Arguments:
server

nsISupportsArray GetIdentitiesForServer ( nsIMsgIncomingServer server )

Arguments:
server

nsIMsgIdentity getIdentity ( char* key )

Arguments:
key

nsIMsgIncomingServer getIncomingServer ( char* key )

Arguments:
key

nsISupportsArray GetServersForIdentity ( nsIMsgIdentity identity )

Arguments:
identity

void LoadAccounts ( )


void loadVirtualFolders ( )


void notifyServerChanged ( nsIMsgIncomingServer server )

Arguments:
server

void notifyServerLoaded ( nsIMsgIncomingServer server )

Arguments:
server

void notifyServerUnloaded ( nsIMsgIncomingServer server )

Arguments:
server

void removeAccount ( nsIMsgAccount account )

Arguments:
account

void removeIdentity ( nsIMsgIdentity identity )

Arguments:
identity

void removeIncomingServerListener ( nsIIncomingServerListener serverListener )

Arguments:
serverListener

void removeRootFolderListener ( nsIFolderListener listener )

Arguments:
listener

void saveAccountInfo ( )


void saveVirtualFolders ( )


void SetFolderDoingCleanupInbox ( nsIMsgFolder folder )

Arguments:
folder

void SetFolderDoingEmptyTrash ( nsIMsgFolder folder )

Arguments:
folder

void setSpecialFolders ( )


void shutdownServers ( )


void UnloadAccounts ( )


void WriteToFolderCache ( nsIMsgFolderCache folderCache )

Arguments:
folderCache

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com