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.

@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_MULTI_XPI = 32
PRUint32 nsIUpdateItem.TYPE_ADDON = 14
PRUint32 nsIUpdateItem.TYPE_ANY = 15

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 AString nsIUpdateItem.targetAppID

The target application ID used for checking compatibility for this item.

readonly PRInt32 nsIUpdateItem.type

The type of this item.

readonly AString nsIUpdateItem.updateKey

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 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 , AString updateKey , PRInt32 type , AString targetAppID )

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com