User:Clarkbw/STEEL/0.1/STEEL:Application:accounts: Difference between revisions
< User:Clarkbw | STEEL | 0.1
Jump to navigation
Jump to search
(New page: __TOC__ =Method Overview= {| class="standard-table" |- | <code>steelIAccount get(in AString id)</code> |- | <code>boolean has(in AString id)</code> |- | <code>void ...) |
(linking account object) |
||
| Line 5: | Line 5: | ||
{| class="standard-table" | {| class="standard-table" | ||
|- | |- | ||
| <code>steelIAccount [[#get()|get]](in AString id)</code> | | <code>[[User:Clarkbw/STEEL/0.1/STEEL:Account|steelIAccount]] [[#get()|get]](in AString id)</code> | ||
|- | |- | ||
| <code>boolean [[#has()|has]](in AString id)</code> | | <code>boolean [[#has()|has]](in AString id)</code> | ||
|- | |- | ||
| <code>void [[#add()|add]](steelIAccount account)</code> | | <code>void [[#add()|add]]([[User:Clarkbw/STEEL/0.1/STEEL:Account|steelIAccount]] account)</code> | ||
|- | |- | ||
| <code>void [[#delete()|delete]](in steelIAccount account)</code> | | <code>void [[#delete()|delete]](in steelIAccount account)</code> | ||
Latest revision as of 13:57, 21 April 2008
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