extISessionStorage Interface Reference

import"extIApplication.idl";

Inheritance diagram for extISessionStorage:
[legend]
Collaboration diagram for extISessionStorage:
[legend]

Public Member Functions

boolean has (in AString aName)
 
void set (in AString aName, in nsIVariant aValue)
 
nsIVariant get (in AString aName, in nsIVariant aDefaultValue)
 

Public Attributes

readonly attribute extIEvents events
 

Detailed Description

Interface representing a simple storage system

Definition at line 346 of file extIApplication.idl.

Member Function Documentation

nsIVariant extISessionStorage::get ( in AString  aName,
in nsIVariant  aDefaultValue 
)

Gets the value of a storage item with the given name. Returns a default value if the item does not exist.

Parameters
aNameThe name of an item
aDefaultValueThe value to return if no item exists with the given name
Returns
value of the item or the given default value if no item exists with the given name.
boolean extISessionStorage::has ( in AString  aName)

Determines if a storage item exists with the given name.

Parameters
aNameThe name of an item
Returns
true if an item exists with the given name, false otherwise.
void extISessionStorage::set ( in AString  aName,
in nsIVariant  aValue 
)

Sets the value of a storage item with the given name.

Parameters
aNameThe name of an item
aValueThe value to assign to the item

Member Data Documentation

readonly attribute extIEvents extISessionStorage::events

The events object for the storage supports: "change"

Definition at line 352 of file extIApplication.idl.


The documentation for this interface was generated from the following file: