#include <sbDeviceProgressListener.h>
Public Member Functions | |
| PRBool | IsComplete () |
| sbDeviceProgressListener (PRMonitor *aCompleteNotifyMonitor, sbDeviceStatusHelper *aDeviceStatusHelper) | |
| virtual | ~sbDeviceProgressListener () |
Public Member Functions inherited from sbIJobProgressListener | |
| void | onJobProgress (in sbIJobProgress aJobProgress) |
| Notification that an object implementing sbIJobProgress has changed. More... | |
Static Public Member Functions | |
| NS_DECL_ISUPPORTS static NS_DECL_SBIJOBPROGRESSLISTENER nsresult | New (sbDeviceProgressListener **aDeviceProgressListener, PRMonitor *aCompleteNotifyMonitor=nsnull, sbDeviceStatusHelper *aDeviceStatusHelper=nsnull) |
This class implements a job progress listener that will send notification to a monitor upon job completion.
Definition at line 70 of file sbDeviceProgressListener.h.
| sbDeviceProgressListener::sbDeviceProgressListener | ( | PRMonitor * | aCompleteNotifyMonitor, |
| sbDeviceStatusHelper * | aDeviceStatusHelper | ||
| ) |
Construct a new device progress listener using the job completion notification monitor specified by aCompleteNotifyMonitor and the device status helper specified by aDeviceStatusHelper.
| aCompleteNotifyMonitor | Monitor to notify upon job completion. |
| aDeviceStatusHelper | Helper for updating device status. |
Definition at line 175 of file sbDeviceProgressListener.cpp.
|
virtual |
Destroy a device progress listener.
Definition at line 189 of file sbDeviceProgressListener.cpp.
| PRBool sbDeviceProgressListener::IsComplete | ( | ) |
Return true if the job is complete.
Definition at line 163 of file sbDeviceProgressListener.cpp.
|
static |
Create a new device progress listener and return it in aDeviceProgressListener. If aCompleteNotifyMonitor is specified, send notification to it upon job completion. If aDevicesStatusHelper is specified, use it to update device status.
| aDeviceProgressListener | Returned device progress listener. |
| aCompleteNotifyMonitor | Monitor to notify upon job completion. |
| aDeviceStatusHelper | Helper for updating device status. |
Definition at line 137 of file sbDeviceProgressListener.cpp.