WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIDOMOfflineResourceList

IID:8449bce2-0d8c-4c74-ab79-b41b8d81f1c4
Inherits From:nsISupports

Constants

State of the application cache this object is associated with.
PRUint16 UNCACHED = 0
PRUint16 IDLE = 1
PRUint16 CHECKING = 2
PRUint16 DOWNLOADING = 3
There is a new version of the application cache available

Versioned application caches are not currently implemented, so this value will not yet be returned

PRUint16 UPDATEREADY = 4

Properties

readonly PRUint32 length

Enumerate the list of dynamically-managed entries.

nsIDOMEventListener oncached

nsIDOMEventListener onchecking

nsIDOMEventListener ondownloading

nsIDOMEventListener onerror

nsIDOMEventListener onnoupdate

nsIDOMEventListener onprogress

nsIDOMEventListener onupdateready

readonly PRUint16 status


Methods

void add ( DOMString uri ) DOMString item ( PRUint32 index ) void remove ( DOMString uri ) void swapCache ( ) void update ( )

void add ( DOMString uri )

Add an item to the list of dynamically-managed entries. The resource will be fetched into the application cache.

Arguments:
uri: The resource to add.

DOMString item ( PRUint32 index )

Arguments:
index

void remove ( DOMString uri )

Remove an item from the list of dynamically-managed entries. If this was the last reference to a URI in the application cache, the cache entry will be removed.

Arguments:
uri: The resource to remove.

void swapCache ( )

Swap in the newest version of the application cache.

Versioned application caches are not currently implemented, so this method will throw an exception.


void update ( )

Begin the application update process on the associated application cache.


References

This interface is the type of the following properties:

nsIDOMWindow2.applicationCache

Reference documentation is generated from Mozilla's source.