#include <sbDeviceStreamingHandler.h>
Public Member Functions | |
nsresult | CheckTransferable () |
PRBool | IsComplete () |
PRBool | IsStreamingItemSupported () |
sbDeviceStreamingHandler (sbIMediaItem *aMediaItem, PRMonitor *aCompleteNotifyMonitor) | |
virtual | ~sbDeviceStreamingHandler () |
Public Member Functions inherited from sbIMediaItemControllerListener | |
void | onValidatePlaybackComplete (in sbIMediaItem aItem, in long aResult) |
Event triggered when the controller is done validating playback for an item. More... | |
Static Public Member Functions | |
NS_DECL_ISUPPORTS static NS_DECL_SBIMEDIAITEMCONTROLLERLISTENER nsresult | New (sbDeviceStreamingHandler **aDeviceStreamingHandler, sbIMediaItem *aMediaItem, PRMonitor *aCompleteNotifyMonitor) |
Additional Inherited Members | |
Public Attributes inherited from sbIMediaItemControllerListener | |
const long | VALIDATEPLAYBACKCOMPLETE_PROCEED = 0 |
Result constant for onValidatePlaybackComplete used to proceed with playing the validated item. More... | |
const long | VALIDATEPLAYBACKCOMPLETE_SKIP = 1 |
Result constant for onValidatePlaybackComplete used to skip item and continue on with the next in queue. More... | |
This class implements a media item controller listener that will send notification to a monitor upon validate completion.
Definition at line 68 of file sbDeviceStreamingHandler.h.
sbDeviceStreamingHandler::sbDeviceStreamingHandler | ( | sbIMediaItem * | aMediaItem, |
PRMonitor * | aCompleteNotifyMonitor | ||
) |
Construct a new device streaming handler using the validate completion notification monitor specified by aCompleteNotifyMonitor.
aMediaItem | Streaming media item. |
aCompleteNotifyMonitor | Monitor to notify upon validate completion. |
Definition at line 192 of file sbDeviceStreamingHandler.cpp.
|
virtual |
Destroy a device streaming handler.
Definition at line 207 of file sbDeviceStreamingHandler.cpp.
nsresult sbDeviceStreamingHandler::CheckTransferable | ( | ) |
Check trigger the check on whether the streaming item can be transferred to the device.
Definition at line 133 of file sbDeviceStreamingHandler.cpp.
PRBool sbDeviceStreamingHandler::IsComplete | ( | ) |
Return true if the validation is complete.
Definition at line 168 of file sbDeviceStreamingHandler.cpp.
PRBool sbDeviceStreamingHandler::IsStreamingItemSupported | ( | ) |
Return true if the streaming item is supported.
Definition at line 180 of file sbDeviceStreamingHandler.cpp.
|
static |
Create a new device streaming handler and return it in aDeviceStreamingHandler. If aCompleteNotifyMonitor is specified, send notification to it upon validate completion.
aDeviceStreamingHandler | Returned device streaming handler. |
aMediaItem | Streaming media item. |
aCompleteNotifyMonitor | Monitor to notify upon validate completion. |
Definition at line 107 of file sbDeviceStreamingHandler.cpp.