nsIUpdateItem

IID:7f952767-427f-402b-8114-f80c95d1980d
Inherits From:nsISupports

This interface is implemented by the following components:


Constants

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

Properties

readonly AString iconURL

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

readonly AString id

The GUID of the item.

readonly AString installLocationKey

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

readonly AString maxAppVersion

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

readonly AString minAppVersion

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

readonly AString name

The name of this item.

readonly AString objectSource

Returns a JS Object source representing an nsIUpdateItem.

readonly PRInt32 type

The type of this item.

readonly AString updateRDF

The URL of the update RDF file for this item.

readonly AString version

The Version of the item, in FVF format.

readonly AString 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 xpiURL

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


Methods

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

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

Initializes this Item object.

Arguments:
id
version
installLocationKey
minAppVersion
maxAppVersion
name
downloadURL
xpiHash
iconURL
updateURL
type

References

This interface is passed as an argument to the following methods:

nsIAddonUpdateCheckListener.onAddonUpdateEnded, nsIAddonUpdateCheckListener.onAddonUpdateStarted, nsIAddonUpdateListener.onProgress, nsIAddonUpdateListener.onStateChange, nsIExtensionManager.addDownloads, nsIExtensionManager.getIncompatibleItemList, nsIExtensionManager.getItemList, nsIExtensionManager.update

This interface is returned from the following methods:

nsIExtensionManager.getItemForID

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com