nsISupports
Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)void addDownloadListener(in nsIRequestObserver listener); |
AString downloadUpdate(in nsIUpdate update, in boolean background); |
void pauseDownload(); |
void removeDownloadListener(in nsIRequestObserver listener); |
nsIUpdate selectUpdate([array, size_is(updateCount)] in nsIUpdate updates, in unsigned long updateCount); |
Attribute | Type | Description |
backgroundChecker |
| The update checker being used for background update checking. Read only. |
canApplyUpdates | boolean | true if the Update Service can download and install updates. Indicates if the current user has access privileges to the install directory. Read only. |
canCheckForUpdates | boolean | true if the Update Service can check for updates. Application updates might be disabled by the application and the platform the application is running on. Read only. |
canUpdate | boolean | true if the update service is able to download and install updates. This depends on whether or not the current user has the necessary access privileges for the install directory. Read only. Obsolete since Gecko 1.9.1.7pre |
isDownloading | boolean | true if a download is in progress, otherwise false . Read only. |
Adds a listener that receives progress and state information about the update that is currently being downloaded. This information is most commonly used to update a user interface that informs the user as to the status of an update.
void addDownloadListener( in nsIRequestObserver listener );
listener
nsIRequestObserver
and optionally nsIProgressEventSink
that will be notified of state and progress information as the update is downloaded.Starts downloading a software update.
AString downloadUpdate( in nsIUpdate update, in boolean background );
update
nsIUpdate
object indicating the update to download.background
true
to download the update in the background or false
to download it in the foreground.A string indicating the status of the update upon return:
Pauses the currently active update download.
void pauseDownload();
None.
Removes a listener that is receiving progress and state information about the update that is currently being downloaded.
void removeDownloadListener( in nsIRequestObserver listener );
listener
Selects the best update to install from a provided list of available updates.
nsIUpdate selectUpdate( [array, size_is(updateCount)] in nsIUpdate updates, in unsigned long updateCount );
updates
updateCount
updates
array.An nsIUpdate
object indicating the most appropriate update to install.