@mozilla.org/updates/item;1

This component implements the following interfaces:

Constants

PRUint32 nsIUpdateItem.TYPE_APP = 1
PRUint32 nsIUpdateItem.TYPE_EXTENSION = 2
PRUint32 nsIUpdateItem.TYPE_THEME = 4
PRUint32 nsIUpdateItem.TYPE_LOCALE = 8
PRUint32 nsIUpdateItem.TYPE_PLUGIN = 16
PRUint32 nsIUpdateItem.TYPE_MULTI_XPI = 32
PRUint32 nsIUpdateItem.TYPE_ADDON = 30
PRUint32 nsIUpdateItem.TYPE_ANY = 31

Properties

readonly AString nsIUpdateItem.iconURL

The URL of the icon that can be shown for this item.

readonly AString nsIUpdateItem.id

The GUID of the item.

readonly AString nsIUpdateItem.installLocationKey

The name of the Install Location where this item is installed.

readonly AString nsIUpdateItem.maxAppVersion

The maximum version of the application that this item works with, in FVF format.

readonly AString nsIUpdateItem.minAppVersion

The minimum version of the application that this item works with, in FVF format.

readonly AString nsIUpdateItem.name

The name of this item.

readonly AString nsIUpdateItem.objectSource

Returns a JS Object source representing an nsIUpdateItem.

readonly PRInt32 nsIUpdateItem.type

The type of this item.

readonly AString nsIUpdateItem.updateRDF

The URL of the update RDF file for this item.

readonly AString nsIUpdateItem.version

The Version of the item, in FVF format.

readonly AString nsIUpdateItem.xpiHash

The string Hash for the XPI file. Can be null and if supplied must be in the format of "type:hash" (see the types in nsICryptoHash and nsIXPInstallManager::initManagerWithHashes).

readonly AString nsIUpdateItem.xpiURL

The URL of the XPI where this item can be downloaded.

Methods

InterfaceMethod
nsIUpdateItem void init ( AString id , AString version , AString installLocationKey , AString minAppVersion , AString maxAppVersion , AString name , AString downloadURL , AString xpiHash , AString iconURL , AString updateURL , PRInt32 type )

Reference documentation is generated from Mozilla's source.