[scriptable, uuid(f559f340-5160-420f-abc8-19b251708e7e)]
interface nsIUpdateItem : nsISupports

Constants


          
const unsigned long TYPE_APP = 1

          
const unsigned long TYPE_EXTENSION = 2

          
const unsigned long TYPE_THEME = 4

          
const unsigned long TYPE_LOCALE = 8

          
const unsigned long TYPE_MULTI_XPI = 32

          
const unsigned long TYPE_ADDON = 14

          
const unsigned long TYPE_ANY = 255

Attributes

 The URL of the icon that can be shown for this item.
readonly attribute AString iconURL
 An item managed by the Extension System. Contains metadata that describes
 the item.
 XXXben work in progress, the name of this interface will change after the
        update system is complete, probably to nsIAddon


 The GUID of the item.
readonly attribute AString id
 The name of the Install Location where this item is installed.
readonly attribute AString installLocationKey
 The maximum version of the application that this item works with,
 in FVF format.
readonly attribute AString maxAppVersion
 The minimum version of the application that this item works with,
 in FVF format.
readonly attribute AString minAppVersion
 The name of this item.
readonly attribute AString name
 Returns a JS Object source representing an nsIUpdateItem.
readonly attribute AString objectSource
 The target application ID used for checking compatibility for this item.

 @note Add-ons can specify a targetApplication id of toolkit@mozilla.org in
       their install manifest for compatibility with all apps using a
       specific release of the toolkit.
readonly attribute AString targetAppID
 The type of this item.
readonly attribute long type
 The public key to verify updates for this item. This must be the public
 part of the key that was used to sign update manifests for this add-on.
readonly attribute AString updateKey
 The URL of the update RDF file for this item.
readonly attribute AString updateRDF
 The Version of the item, in FVF format.
readonly attribute AString version
 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 attribute AString xpiHash
 The URL of the XPI where this item can be downloaded.
readonly attribute AString xpiURL

Methods

 Initializes this Item object.
void init(in AString id, in AString version, in AString installLocationKey, in AString minAppVersion, in AString maxAppVersion, in AString name, in AString downloadURL, in AString xpiHash, in AString iconURL, in AString updateURL, in AString updateKey, in long type, in AString targetAppID)