Struct xpcom::interfaces::nsIUpdatePrompt [] [src]

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

interface nsIUpdatePrompt : nsISupports

/**
 * An interface describing an object that can show various kinds of Update
 * notification UI to the user.
 */

Methods

impl nsIUpdatePrompt
[src]

[src]

Cast this nsIUpdatePrompt to one of its base interfaces.

impl nsIUpdatePrompt
[src]

[src]

/**
   * Shows the application update checking user interface and checks if there
   * is an update available.
   */

void checkForUpdates ();

[src]

/**
   * Shows the application update available user interface advising that an
   * update is available for download and install. If the app.update.silent
   * preference is true or the user interface is already displayed the call will
   * be a no-op.
   * @param   update
   *          The nsIUpdate object to be downloaded and installed
   */

void showUpdateAvailable (in nsIUpdate update);

[src]

/**
   * Shows the application update downloaded user interface advising that an
   * update has now been downloaded and a restart is necessary to complete the
   * update. If background is true (e.g. the download was not user initiated)
   * and the app.update.silent preference is true the call will be a no-op.
   * @param   update
   *          The nsIUpdate object that was downloaded
   * @param   background
   *          Less obtrusive UI, starting with a non-modal notification alert
   */

void showUpdateDownloaded (in nsIUpdate update, [optional] in boolean background);

[src]

/**
   * Shows the application update error user interface advising that an error
   * occurred while checking for or applying an update. If the app.update.silent
   * preference is true the call will be a no-op.
   * @param   update
   *          An nsIUpdate object representing the update that could not be
   *          installed. The nsIUpdate object will not be the actual update when
   *          the error occurred during an update check and will instead be an
   *          nsIUpdate object with the error information for the update check.
   */

void showUpdateError (in nsIUpdate update);

[src]

/**
   * Shows a list of all updates installed to date.
   * @param   parent
   *          An nsIDOMWindow to set as the parent for this window. Can be null.
   */

void showUpdateHistory (in nsIDOMWindow parent);

[src]

/**
   * Shows the application update downloaded user interface advising that an
   * update, which requires elevation, has now been downloaded and a restart is
   * necessary to complete the update.
   */

void showUpdateElevationRequired ();

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

IID: nsIID = nsID(3471031648, 50532, 17151, [162, 191, 212, 66, 203, 21, 247, 92])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIUpdatePrompt
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.