Struct xpcom::interfaces::nsIUpdatePatch [] [src]

#[repr(C)]
pub struct nsIUpdatePatch { /* fields omitted */ }

interface nsIUpdatePatch : nsISupports

/**
 * 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.
 */

Methods

impl nsIUpdatePatch
[src]

[src]

Cast this nsIUpdatePatch to one of its base interfaces.

impl nsIUpdatePatch
[src]

[src]

/**
   * 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
   */

attribute AString type;

[src]

/**
   * 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
   */

attribute AString type;

[src]

/**
   * The URL this patch was being downloaded from
   */

attribute AString URL;

[src]

/**
   * The URL this patch was being downloaded from
   */

attribute AString URL;

[src]

/**
   * The final URL this patch was being downloaded from
   */

attribute AString finalURL;

[src]

/**
   * The final URL this patch was being downloaded from
   */

attribute AString finalURL;

[src]

/**
   * The size of this file, in bytes.
   */

attribute unsigned long size;

[src]

/**
   * The size of this file, in bytes.
   */

attribute unsigned long size;

[src]

/**
   * The state of this patch
   */

attribute AString state;

[src]

/**
   * The state of this patch
   */

attribute AString state;

[src]

/**
   * 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/errors.h and values between
   * 80 and 99 are in nsUpdateService.js.
   */

attribute long errorCode;

[src]

/**
   * 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/errors.h and values between
   * 80 and 99 are in nsUpdateService.js.
   */

attribute long errorCode;

[src]

/**
   * 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.
   */

attribute boolean selected;

[src]

/**
   * 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.
   */

attribute boolean selected;

[src]

/**
   * Serializes this patch object into a DOM Element
   * @param   updates
   *          The document to serialize into
   * @returns The DOM Element created by the serialization process
   */

nsIDOMElement serialize (in nsIDOMDocument updates);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIUpdatePatch
[src]

IID: nsIID = nsID(3700406441, 14931, 16433, [148, 105, 42, 81, 151, 234, 48, 231])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIUpdatePatch
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIUpdatePatch
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.