Mozilla.com

  1. MDC
  2. Main Page
  3. nsIUpdatePatch
Table of contents
  1. 1. Method overview
  2. 2. Attributes
  3. 3. Methods
    1. 3.1. serialize()
          1. 3.1.1.1.1. Parameters
          2. 3.1.1.1.2. Return value
  4. 4. See also

nsIUpdatePatch

Table of contents
  1. 1. Method overview
  2. 2. Attributes
  3. 3. Methods
    1. 3.1. serialize()
          1. 3.1.1.1.1. Parameters
          2. 3.1.1.1.2. Return value
  4. 4. See also

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

Method overview

nsIDOMElement serialize(in nsIDOMDocument updates);

Attributes

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:
"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 .

Page last modified 18:34, 19 Mar 2008 by Sheppy

Files (0)