sbDeviceProgressListener Class Reference

#include <sbDeviceProgressListener.h>

Inheritance diagram for sbDeviceProgressListener:
[legend]
Collaboration diagram for sbDeviceProgressListener:
[legend]

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Parameters
aCompleteNotifyMonitorMonitor to notify upon job completion.
aDeviceStatusHelperHelper for updating device status.

Definition at line 175 of file sbDeviceProgressListener.cpp.

sbDeviceProgressListener::~sbDeviceProgressListener ( )
virtual

Destroy a device progress listener.

Definition at line 189 of file sbDeviceProgressListener.cpp.

Member Function Documentation

PRBool sbDeviceProgressListener::IsComplete ( )

Return true if the job is complete.

Definition at line 163 of file sbDeviceProgressListener.cpp.

nsresult sbDeviceProgressListener::New ( sbDeviceProgressListener **  aDeviceProgressListener,
PRMonitor *  aCompleteNotifyMonitor = nsnull,
sbDeviceStatusHelper aDeviceStatusHelper = nsnull 
)
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.

Parameters
aDeviceProgressListenerReturned device progress listener.
aCompleteNotifyMonitorMonitor to notify upon job completion.
aDeviceStatusHelperHelper for updating device status.

Definition at line 137 of file sbDeviceProgressListener.cpp.

Here is the caller graph for this function:


The documentation for this class was generated from the following files: