Class ZmAccountList
Method Detail
{Boolean}
accountTypeExists(type)
Checks if there is at least one of the given account types in the
account list. Note: if the given account type is ZCS, the local parent
account is NOT included when searching the account list.
add(account)
Adds the account.
addActiveAcountListener(listener, index)
Adds an active account listener.
createAccounts(settings, obj)
Creates the main account and all its children. In the normal case, the "main"
account is the only account, and represents the user who logged in. If family
mailbox is enabled, that account is a parent account with dominion over child
accounts. If offline, the main account is the "local" account.
{String}
generateQuery(folderId, types)
Generates a query.
{ZmAccount}
getAccount(id)
Gets the account by id.
{ZmAccount}
getAccountByEmail(email)
Gets the account by email.
{ZmAccount}
getAccountByName(name)
Gets the account by name.
{Array}
getAccounts()
Gets the accounts.
{int}
getItemCount(folderId, checkUnread)
Gets the cumulative item count of all accounts for the given folder ID.
{String}
getTooltipForVirtualFolder(folderId)
Gets the tool tip for the folder.
{Boolean}
isInitialSyncing()
Checks if any of the non-main, visible accounts is currently doing an initial sync.
isSyncStatus(status)
Returns true if any of the visible accounts have the given status
loadAccounts(callback)
Loads each visible account serially by requesting the following requests from
the server in a batch request:
resetTrees()
Resets the trees.
saveImplicitPrefs()
Saves the implicit preferences on the visible accounts.
setActiveAccount(account, skipNotify)
Sets the given account as the active one, which will then be used when fetching
any account-specific data such as settings or folder tree.
{int}
size(includeInvisible)
Gets the number of visible accounts for this mailbox.
syncAll(callback)
Syncs all visible accounts.
{String}
toString()
Returns a string representation of the object.
|
||||||||||||||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:38 GMT-0400 (EDT)
|