Detailed Description

The LocalStorage Web API.

Inheritance diagram for PowerUI.LocalStorage:
PowerUI.Storage

Public Member Functions

 LocalStorage (HtmlDocument d)
 
override string getItem (string key)
 Gets the item with the given key. More...
 
override void setItem (string key, string data)
 Sets the item with the given key. More...
 
override void removeItem (string key)
 Removes the item with the given key. More...
 
override void clear ()
 Removes all the items. More...
 
- Public Member Functions inherited from PowerUI.Storage
 Storage (HtmlDocument document)
 
string key (int i)
 The key at index i. More...
 
string saveKeySet ()
 Builds a key set as a string. More...
 

Private Member Functions

void Load ()
 

Private Attributes

bool loaded
 True if it's been loaded. More...
 

Additional Inherited Members

- Public Attributes inherited from PowerUI.Storage
List< string > KeyList
 The available keys for this domain. More...
 
Dictionary< string, bool > KeyLookup
 The available keys for this domain. More...
 
- Package Functions inherited from PowerUI.Storage
void loadKeySet (string keys)
 Loads a key set. More...
 
bool hasItem (string key)
 True if the given key is set. More...
 
void AddKey (string key)
 Adds a key to the lookups. More...
 
void RemoveKey (string key)
 Removes a key from the lookups. More...
 
- Package Attributes inherited from PowerUI.Storage
string origin
 The storage origin. More...
 

Constructor & Destructor Documentation

PowerUI.LocalStorage.LocalStorage ( HtmlDocument  d)
inline

Member Function Documentation

override void PowerUI.LocalStorage.clear ( )
inlinevirtual

Removes all the items.

Reimplemented from PowerUI.Storage.

override string PowerUI.LocalStorage.getItem ( string  key)
inlinevirtual

Gets the item with the given key.

Reimplemented from PowerUI.Storage.

void PowerUI.LocalStorage.Load ( )
inlineprivate
override void PowerUI.LocalStorage.removeItem ( string  key)
inlinevirtual

Removes the item with the given key.

Reimplemented from PowerUI.Storage.

override void PowerUI.LocalStorage.setItem ( string  key,
string  data 
)
inlinevirtual

Sets the item with the given key.

Reimplemented from PowerUI.Storage.

Member Data Documentation

bool PowerUI.LocalStorage.loaded
private

True if it's been loaded.