nsIApplicationUpdateService

IID:9849c4bf-5197-4d22-baa8-e3b44a1703d2
Inherits From:nsISupports

This interface is intended to be used as a service.

This interface is implemented by the following components:


Properties

readonly nsIUpdateChecker backgroundChecker

The Update Checker used for background update checking.

readonly PRBool canUpdate

Whether or not the Update Service can download and install updates. This is a function of whether or not the current user has access privileges to the install directory.

readonly PRBool isDownloading

Whether or not there is an download happening at the moment.


Methods

void addDownloadListener ( nsIRequestObserver listener ) AString downloadUpdate ( nsIUpdate update , PRBool background ) void pauseDownload ( ) void removeDownloadListener ( nsIRequestObserver listener ) nsIUpdate selectUpdate ( nsIUpdate updates , PRUint32 updateCount )

void addDownloadListener ( nsIRequestObserver listener )

Adds a listener that receives progress and state information about the update that is currently being downloaded, e.g. to update a user interface.

Arguments:
listener: An object implementing nsIRequestObserver and optionally nsIProgressEventSink that is to be notified of state and progress information as the update is downloaded.

AString downloadUpdate ( nsIUpdate update , PRBool background )

Arguments:
update
background

void pauseDownload ( )

Pauses the active update download process


void removeDownloadListener ( nsIRequestObserver listener )

Removes a listener that is receiving progress and state information about the update that is currently being downloaded.

Arguments:
listener: The listener object to remove.

nsIUpdate selectUpdate ( nsIUpdate updates , PRUint32 updateCount )

Selects the best update to install from a list of available updates.

Arguments:
updates: An array of updates that are available
updateCount: The length of the |updates| array

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com