sbBaseMediacoreEventTarget Class Reference

#include <sbBaseMediacoreEventTarget.h>

Public Member Functions

 sbBaseMediacoreEventTarget (sbIMediacoreEventTarget *aTarget)
 
virtual ~sbBaseMediacoreEventTarget ()
 
virtual nsresult AddListener (sbIMediacoreEventListener *aListener)
 
virtual nsresult RemoveListener (sbIMediacoreEventListener *aListener)
 
virtual nsresult DispatchEvent (sbIMediacoreEvent *aEvent, PRBool aAsync, PRBool *aDispatched)
 

Protected Member Functions

nsresult DispatchEventInternal (sbIMediacoreEvent *aEvent, PRBool *_retval)
 

Friends

class RemovalHelper
 

Detailed Description

Base implementation of a mediacore event target. This class provides a thread safe implementation of an event target. All events are dispatched on the main thread. TODO: Revisit the main thread dispatching this may prove a bottleneck for media cores.

Definition at line 55 of file sbBaseMediacoreEventTarget.h.

Constructor & Destructor Documentation

sbBaseMediacoreEventTarget::sbBaseMediacoreEventTarget ( sbIMediacoreEventTarget aTarget)

Constructor and destructor

Definition at line 40 of file sbBaseMediacoreEventTarget.cpp.

sbBaseMediacoreEventTarget::~sbBaseMediacoreEventTarget ( )
virtual

Definition at line 45 of file sbBaseMediacoreEventTarget.cpp.

Member Function Documentation

nsresult sbBaseMediacoreEventTarget::AddListener ( sbIMediacoreEventListener aListener)
virtual

See sbIMediacoreEventTarget

Definition at line 138 of file sbBaseMediacoreEventTarget.cpp.

Here is the call graph for this function:

nsresult sbBaseMediacoreEventTarget::DispatchEvent ( sbIMediacoreEvent aEvent,
PRBool  aAsync,
PRBool *  aDispatched 
)
virtual

See sbIMediacoreEventTarget

Definition at line 53 of file sbBaseMediacoreEventTarget.cpp.

Here is the call graph for this function:

nsresult sbBaseMediacoreEventTarget::DispatchEventInternal ( sbIMediacoreEvent aEvent,
PRBool *  _retval 
)
protected

Definition at line 92 of file sbBaseMediacoreEventTarget.cpp.

Here is the caller graph for this function:

nsresult sbBaseMediacoreEventTarget::RemoveListener ( sbIMediacoreEventListener aListener)
virtual

See sbIMediacoreEventTarget

Definition at line 175 of file sbBaseMediacoreEventTarget.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class RemovalHelper
friend

Definition at line 100 of file sbBaseMediacoreEventTarget.h.


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