nsIUpdatePatch

An interface that describes an object representing a patch file that can be downloaded and applied to a version of this application so that it can be updated.
1.0
66
Introduced
Gecko 1.8
Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)

Method overview

nsIDOMElement serialize(in nsIDOMDocument updates);

Attributes

Attribute Type Description
finalURL AString The final URL this patch was being downloaded from.
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 state of this patch.
type AString The type of patch represented by the object:
"partial"
A binary difference between two application versions.
"complete"
A complete patch containing all the replacement files to update to the new version.
URL AString The URL from which the patch was downloaded.

Methods

serialize()

Serializes the patch object into a DOM element.

nsIDOMElement serialize(
  in nsIDOMDocument updates
);
Parameters
updates
The DOM document into which to serialize the patch.
Return value

The patch object serialized into an nsIDOMElement.

See also