The nsIUpdatePatch interface describes an object representing a patch file that can be downloaded and applied to a version of the application for the purpose of updating it.
nsIUpdatePatch is defined in toolkit/mozapps/update/public/nsIUpdateService.idl
. It is scriptable
and
unfrozen (hasn't changed since Mozilla 1.9)
.
Inherits from: nsISupports
| Attribute | Type | Description |
hashFunction
| AString
| The hash function to use when determining the integrity of the patch file. |
hashValue
| AString
| The value of the hash function named in hashFunction that should be computed if the file is not corrupt.
|
selected
| boolean
| true if this patch is currently selected as the patch to be downloaded and installed for this update transaction. false if another update is selected.
|
size
| unsigned long
| The size of the patch file in bytes. |
state
| AString
| The patch's state. |
type
| AString
| The type of patch represented by the object:
|
URL
| AString
| The URL from which the patch was downloaded. |
Serializes the patch object into a DOM element.
nsIDOMElement serialize( in nsIDOMDocument updates );
Page last modified 18:34, 19 Mar 2008 by Sheppy