User:Clarkbw/STEEL/0.1/STEEL:Application:accounts

From MozillaWiki
< User:Clarkbw‎ | STEEL‎ | 0.1
Jump to: navigation, search

Method Overview

steelIAccount get(in AString id)
boolean has(in AString id)
void add(steelIAccount account)
void delete(in steelIAccount account)


Attributes

Attribute Type Description Examples
all readonly attribute nsIVariant List of accounts for accessing . List all Accounts
events readonly attribute steelIEvents Event object for adding and removing listeners to the Account

Methods

get()

Returns an account object with the specified ID

Parameters
id
String of account id you want returned
Return value
steelIAccount
Account object with the id parameter specified, null if no account is found

has()

Checks to see if there exists an account with the specified ID

Parameters
id
String of account id you want to check if it exists
Return Value
boolean
Returns true if the account with the ID passed exists, otherwise false


add()

Parameters
steelIAccount
Account object you'd like to add to the application
Return Value

none


delete()

Parameters
id
String of account id you want to delete
Return Value

none


Events

These two events will currently only be triggered if a top level folder is added or removed. Folders a level deeper will not trigger this event, instead you'll need to add a listener to each of the folders who's children you want to watch.

  • folderAdded — triggered when a folder that is a child of the account is added
  • folderRemoved — triggered when a folder that is a child of the account is removed


See Also