Interface nsIUpdatePatchType

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.

Hierarchy

Properties

URL: string

The URL this patch was being downloaded from

errorCode: number

A numeric error code that conveys additional information about the state of a failed update. If the update is not in the "failed" state the value is zero. The possible values are located in common/updatererrors.h and values between 80 and 99 are in nsUpdateService.js.

finalURL: string

The final URL this patch was being downloaded from

selected: boolean

true if this patch is currently selected as the patch to be downloaded and installed for this update transaction, false if another patch from this update has been selected.

size: number

The size of this file, in bytes.

state: string

The state of this patch

type: string

The type of this patch: "partial" A binary difference between two application versions "complete" A complete patch containing all of the replacement files to update to the new version

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Serializes this patch object into a DOM Element

    Returns

    The DOM Element created by the serialization process

    Parameters

    • updates: Document

      The document to serialize into

    Returns Element

Generated using TypeDoc