Struct xpcom::interfaces::nsIUpdate [] [src]

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

interface nsIUpdate : nsISupports

/**
 * An interface that describes an object representing an available update to
 * the current application - this update may have several available patches
 * from which one must be selected to download and install, for example we
 * might select a binary difference patch first and attempt to apply that,
 * then if the application process fails fall back to downloading a complete
 * file-replace patch. This object also contains information about the update
 * that the front end and other application services can use to learn more
 * about what is going on.
 */

Methods

impl nsIUpdate
[src]

[src]

Cast this nsIUpdate to one of its base interfaces.

impl nsIUpdate
[src]

[src]

/**
   * The type of update:
   *   "major"  A major new version of the Application
   *   "minor"  A minor update to the Application (e.g. security update)
   */

attribute AString type;

[src]

/**
   * The type of update:
   *   "major"  A major new version of the Application
   *   "minor"  A minor update to the Application (e.g. security update)
   */

attribute AString type;

[src]

/**
   * The name of the update, or "<Application Name> <Update Version>"
   */

attribute AString name;

[src]

/**
   * The name of the update, or "<Application Name> <Update Version>"
   */

attribute AString name;

[src]

/**
   * The string to display in the user interface for the version. If you want
   * a real version number use appVersion.
   */

attribute AString displayVersion;

[src]

/**
   * The string to display in the user interface for the version. If you want
   * a real version number use appVersion.
   */

attribute AString displayVersion;

[src]

/**
   * The Application version of this update.
   */

attribute AString appVersion;

[src]

/**
   * The Application version of this update.
   */

attribute AString appVersion;

[src]

/**
   * The Application version prior to the application being updated.
   */

attribute AString previousAppVersion;

[src]

/**
   * The Application version prior to the application being updated.
   */

attribute AString previousAppVersion;

[src]

/**
   * The Build ID of this update. Used to determine a particular build, down
   * to the hour, minute and second of its creation. This allows the system
   * to differentiate between several nightly builds with the same |version|
   * for example.
   */

attribute AString buildID;

[src]

/**
   * The Build ID of this update. Used to determine a particular build, down
   * to the hour, minute and second of its creation. This allows the system
   * to differentiate between several nightly builds with the same |version|
   * for example.
   */

attribute AString buildID;

[src]

/**
   * The URL to a page which offers details about the content of this
   * update. Ideally, this page is not the release notes but some other page
   * that summarizes the differences between this update and the previous,
   * which also links to the release notes.
   */

attribute AString detailsURL;

[src]

/**
   * The URL to a page which offers details about the content of this
   * update. Ideally, this page is not the release notes but some other page
   * that summarizes the differences between this update and the previous,
   * which also links to the release notes.
   */

attribute AString detailsURL;

[src]

/**
   * The URL to the Update Service that supplied this update.
   */

attribute AString serviceURL;

[src]

/**
   * The URL to the Update Service that supplied this update.
   */

attribute AString serviceURL;

[src]

/**
   * The channel used to retrieve this update from the Update Service.
   */

attribute AString channel;

[src]

/**
   * The channel used to retrieve this update from the Update Service.
   */

attribute AString channel;

[src]

/**
   * Whether the update is no longer supported on this system.
   */

attribute boolean unsupported;

[src]

/**
   * Whether the update is no longer supported on this system.
   */

attribute boolean unsupported;

[src]

/**
   * Allows overriding the default amount of time in seconds before prompting the
   * user to apply an update. If not specified, the value of
   * app.update.promptWaitTime will be used.
   */

attribute long long promptWaitTime;

[src]

/**
   * Allows overriding the default amount of time in seconds before prompting the
   * user to apply an update. If not specified, the value of
   * app.update.promptWaitTime will be used.
   */

attribute long long promptWaitTime;

[src]

/**
   * Whether or not the update being downloaded is a complete replacement of
   * the user's existing installation or a patch representing the difference
   * between the new version and the previous version.
   */

attribute boolean isCompleteUpdate;

[src]

/**
   * Whether or not the update being downloaded is a complete replacement of
   * the user's existing installation or a patch representing the difference
   * between the new version and the previous version.
   */

attribute boolean isCompleteUpdate;

[src]

/**
   * When the update was installed.
   */

attribute long long installDate;

[src]

/**
   * When the update was installed.
   */

attribute long long installDate;

[src]

/**
   * A message associated with this update, if any.
   */

attribute AString statusText;

[src]

/**
   * A message associated with this update, if any.
   */

attribute AString statusText;

[src]

/**
   * The currently selected patch for this update.
   */

readonly attribute nsIUpdatePatch selectedPatch;

[src]

/**
   * The state of the selected patch:
   *   "downloading"        The update is being downloaded.
   *   "pending"            The update is ready to be applied.
   *   "pending-service"    The update is ready to be applied with the service.
   *   "pending-elevate"    The update is ready to be applied but requires elevation.
   *   "applying"           The update is being applied.
   *   "applied"            The update is ready to be switched to.
   *   "applied-os"         The update is OS update and to be installed.
   *   "applied-service"    The update is ready to be switched to with the service.
   *   "succeeded"          The update was successfully applied.
   *   "download-failed"    The update failed to be downloaded.
   *   "failed"             The update failed to be applied.
   */

attribute AString state;

[src]

/**
   * The state of the selected patch:
   *   "downloading"        The update is being downloaded.
   *   "pending"            The update is ready to be applied.
   *   "pending-service"    The update is ready to be applied with the service.
   *   "pending-elevate"    The update is ready to be applied but requires elevation.
   *   "applying"           The update is being applied.
   *   "applied"            The update is ready to be switched to.
   *   "applied-os"         The update is OS update and to be installed.
   *   "applied-service"    The update is ready to be switched to with the service.
   *   "succeeded"          The update was successfully applied.
   *   "download-failed"    The update failed to be downloaded.
   *   "failed"             The update failed to be applied.
   */

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]

/**
   * Whether an elevation failure has been encountered for this update.
   */

attribute boolean elevationFailure;

[src]

/**
   * Whether an elevation failure has been encountered for this update.
   */

attribute boolean elevationFailure;

[src]

/**
   * The number of patches supplied by this update.
   */

readonly attribute unsigned long patchCount;

[src]

/**
   * Retrieves a patch.
   * @param   index
   *          The index of the patch to retrieve.
   * @returns The nsIUpdatePatch at the specified index.
   */

nsIUpdatePatch getPatchAt (in unsigned long index);

[src]

/**
   * Serializes this update 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 nsIUpdate
[src]

IID: nsIID = nsID(3767844933, 62719, 16893, [146, 218, 205, 46, 255, 210, 199, 201])

[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 nsIUpdate
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIUpdate
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.