sbDeviceStreamingHandler Class Reference

#include <sbDeviceStreamingHandler.h>

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

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

sbDeviceStreamingHandler::sbDeviceStreamingHandler ( sbIMediaItem aMediaItem,
PRMonitor *  aCompleteNotifyMonitor 
)

Construct a new device streaming handler using the validate completion notification monitor specified by aCompleteNotifyMonitor.

Parameters
aMediaItemStreaming media item.
aCompleteNotifyMonitorMonitor to notify upon validate completion.

Definition at line 192 of file sbDeviceStreamingHandler.cpp.

sbDeviceStreamingHandler::~sbDeviceStreamingHandler ( )
virtual

Destroy a device streaming handler.

Definition at line 207 of file sbDeviceStreamingHandler.cpp.

Member Function Documentation

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.

Here is the call graph for this function:

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.

nsresult sbDeviceStreamingHandler::New ( sbDeviceStreamingHandler **  aDeviceStreamingHandler,
sbIMediaItem aMediaItem,
PRMonitor *  aCompleteNotifyMonitor 
)
static

Create a new device streaming handler and return it in aDeviceStreamingHandler. If aCompleteNotifyMonitor is specified, send notification to it upon validate completion.

Parameters
aDeviceStreamingHandlerReturned device streaming handler.
aMediaItemStreaming media item.
aCompleteNotifyMonitorMonitor to notify upon validate completion.

Definition at line 107 of file sbDeviceStreamingHandler.cpp.

Here is the caller graph for this function:


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