WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIUpdatePrompt

IID:6f145728-abc0-11dc-8314-0800200c9a66
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

void checkForUpdates ( ) void showUpdateAvailable ( nsIUpdate update ) void showUpdateDownloaded ( nsIUpdate update , PRBool background ) void showUpdateError ( nsIUpdate update ) void showUpdateHistory ( nsIDOMWindow parent ) void showUpdateInstalled ( nsIUpdate update )

void checkForUpdates ( )

Shows a user interface that checks for and then displays the available updates.


void showUpdateAvailable ( nsIUpdate update )

Show a message advising that an update is available for download and install.

Arguments:
update: The update to be downloaded and installed

void showUpdateDownloaded ( nsIUpdate update , PRBool background )

Show a message advising that an update has now been downloaded and that the user should restart their software should be restarted so that the update can be installed.

Arguments:
update: The update that was downloaded
background: Less obtrusive UI, starting with a non-modal notification alert

void showUpdateError ( nsIUpdate update )

Shows an error message UI telling the user about some kind of update failure, e.g. failure to apply patch.

Arguments:
update: The nsIUpdate object which we could not install

void showUpdateHistory ( nsIDOMWindow parent )

Shows a list of all updates installed to date.

Arguments:
parent: A parent window to anchor this window to. Can be null.

void showUpdateInstalled ( nsIUpdate update )

Shows a message detailing the update which was installed.

Arguments:
update: The nsIUpdate object which was just installed

Reference documentation is generated from Mozilla's source.