sbMediacoreManager Class Reference

#include <sbMediacoreManager.h>

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

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBIMEDIACOREMANAGER
NS_DECL_SBPIMEDIACOREMANAGER
NS_DECL_SBIMEDIACOREEVENTTARGET
NS_DECL_SBIMEDIACOREFACTORYREGISTRAR
NS_DECL_SBIMEDIACOREVIDEOWINDOW
NS_DECL_SBIMEDIACOREVOTING
NS_DECL_NSICLASSINFO
NS_DECL_NSIOBSERVER 
sbMediacoreManager ()
 
nsresult Init ()
 
nsresult PreShutdown ()
 
nsresult Shutdown ()
 
virtual nsresult OnInitBaseMediacoreMultibandEqualizer ()
 
virtual nsresult OnSetEqEnabled (PRBool aEqEnabled)
 
virtual nsresult OnGetBandCount (PRUint32 *aBandCount)
 
virtual nsresult OnGetBand (PRUint32 aBandIndex, sbIMediacoreEqualizerBand *aBand)
 
virtual nsresult OnSetBand (sbIMediacoreEqualizerBand *aBand)
 
virtual nsresult OnInitBaseMediacoreVolumeControl ()
 
virtual nsresult OnSetMute (PRBool aMute)
 
virtual nsresult OnSetVolume (PRFloat64 aVolume)
 
nsresult SetVolumeDataRemote (PRFloat64 aVolume)
 
nsresult GetAndEnsureEQBandHasDataRemote (PRUint32 aBandIndex, sbIDataRemote **aRemote)
 
nsresult SetAndEnsureEQBandHasDataRemote (sbIMediacoreEqualizerBand *aBand)
 
nsresult CreateDataRemoteForEqualizerBand (PRUint32 aBandIndex, sbIDataRemote **aRemote)
 
nsresult InitVideoDataRemotes ()
 
nsresult VideoWindowUnloaded ()
 
- Public Member Functions inherited from sbBaseMediacoreMultibandEqualizer
NS_DECL_ISUPPORTS
NS_DECL_SBIMEDIACOREMULTIBANDEQUALIZER 
sbBaseMediacoreMultibandEqualizer ()
 
nsresult InitBaseMediacoreMultibandEqualizer ()
 
- Public Member Functions inherited from sbIMediacoreMultibandEqualizer
sbIMediacoreEqualizerBand getBand (in unsigned long aBandIndex)
 Get a band. More...
 
void setBand (in sbIMediacoreEqualizerBand aBand)
 Set a band. More...
 
- Public Member Functions inherited from sbBaseMediacoreVolumeControl
NS_DECL_ISUPPORTS
NS_DECL_SBIMEDIACOREVOLUMECONTROL 
sbBaseMediacoreVolumeControl ()
 
nsresult InitBaseMediacoreVolumeControl ()
 
- Public Member Functions inherited from sbIMediacoreManager
sbIMediacoreVideoWindow getPrimaryVideoWindow (in boolean aCreate, [optional] in unsigned long aWidthHint, [optional] in unsigned long aHeightHint)
 
sbIMediacoreEvent createEvent (in unsigned long aType, in sbIMediacore aOrigin, [optional] in nsIVariant aData, [optional] in sbIMediacoreError aError)
 
- Public Member Functions inherited from sbPIMediacoreManager
void setPrimaryCore (in sbIMediacore aMediacore)
 
- Public Member Functions inherited from sbIMediacoreEventTarget
void addListener (in sbIMediacoreEventListener aListener)
 
void removeListener (in sbIMediacoreEventListener aListener)
 
boolean dispatchEvent (in sbIMediacoreEvent aEvent, [optional] in boolean aAsync)
 
- Public Member Functions inherited from sbIMediacoreFactoryRegistrar
sbIMediacore createMediacore (in AString aContractID, in AString aUniqueName)
 
sbIMediacore createMediacoreWithFactory (in sbIMediacoreFactory aFactory, in AString aUniqueName)
 
sbIMediacore getMediacore (in AString aInstanceName)
 
void destroyMediacore (in AString aInstanceName)
 
void registerFactory (in sbIMediacoreFactory aFactory)
 
void unregisterFactory (in sbIMediacoreFactory aFactory)
 
- Public Member Functions inherited from sbIMediacoreVoting
sbIMediacoreVotingChain voteWithURI (in nsIURI aURI)
 
sbIMediacoreVotingChain voteWithChannel (in nsIChannel aChannel)
 
- Public Member Functions inherited from sbSupportsWeakReference
 sbSupportsWeakReference ()
 

Protected Member Functions

virtual ~sbMediacoreManager ()
 
nsresult GenerateInstanceName (nsAString &aInstanceName)
 
nsresult VoteWithURIOrChannel (nsIURI *aURI, nsIChannel *aChannel, sbIMediacoreVotingChain **_retval)
 
- Protected Member Functions inherited from sbBaseMediacoreMultibandEqualizer
virtual ~sbBaseMediacoreMultibandEqualizer ()
 
nsresult EnsureBandIsCached (sbIMediacoreEqualizerBand *aBand)
 
- Protected Member Functions inherited from sbBaseMediacoreVolumeControl
virtual ~sbBaseMediacoreVolumeControl ()
 
- Protected Member Functions inherited from sbSupportsWeakReference
 ~sbSupportsWeakReference ()
 
void ClearWeakReferences ()
 
PRBool HasWeakReferences () const
 

Static Protected Member Functions

template<class T >
static NS_HIDDEN_ (PLDHashOperator) EnumerateIntoArrayStringKey(const nsAString &aKey
 
template<class T >
static NS_HIDDEN_ (PLDHashOperator) EnumerateIntoArrayISupportsKey(nsISupports *aKey
 
template<class T >
static NS_HIDDEN_ (PLDHashOperator) EnumerateIntoArrayUint32Key(const PRUint32 &aKey
 
- Static Protected Member Functions inherited from sbBaseMediacoreMultibandEqualizer
template<class T >
static NS_HIDDEN_ (PLDHashOperator) EnumerateIntoArrayUint32Key(const PRUint32 &aKey
 

Protected Attributes

static T * aData
 
static T void * aArray
 
PRMonitor * mMonitor
 
PRUint32 mLastCore
 
nsInterfaceHashtableMT
< nsStringHashKey,
sbIMediacore
mCores
 
nsInterfaceHashtableMT
< nsISupportsHashKey,
sbIMediacoreFactory
mFactories
 
nsCOMPtr< sbIMediacoremPrimaryCore
 
nsCOMPtr< sbIMediacoreSequencermSequencer
 
nsAutoPtr
< sbBaseMediacoreEventTarget
mBaseEventTarget
 
nsCOMPtr< sbIDataRemotemDataRemoteEqualizerEnabled
 
nsInterfaceHashtableMT
< nsUint32HashKey,
sbIDataRemote
mDataRemoteEqualizerBands
 
nsCOMPtr< sbIDataRemotemDataRemoteFaceplateVolume
 
nsCOMPtr< sbIDataRemotemDataRemoteFaceplateMute
 
nsCOMPtr< sbIDataRemotemDataRemoteVideoFullscreen
 
PRPackedBool mFullscreen
 
PRMonitor * mVideoWindowMonitor
 
nsCOMPtr< nsIDOMXULElement > mVideoWindow
 
PRUint32 mLastVideoWindow
 
- Protected Attributes inherited from sbBaseMediacoreMultibandEqualizer
static T * aData
 
static T void * aArray
 
PRMonitor * mMonitor
 
PRPackedBool mEqEnabled
 
eqbands_t mBands
 
- Protected Attributes inherited from sbBaseMediacoreVolumeControl
PRMonitor * mMonitor
 
PRBool mMute
 
double mVolume
 

Additional Inherited Members

- Public Attributes inherited from sbIMediacoreMultibandEqualizer
attribute boolean eqEnabled
 Whether the EQ is enabled or not. More...
 
attribute nsISimpleEnumerator bands
 Enumerator containing all available bands. More...
 
readonly attribute unsigned long bandCount
 The number of bands available. More...
 
attribute AString currentPresetName
 The name of the current equalizer preset. More...
 
- Public Attributes inherited from sbIMediacoreVolumeControl
attribute boolean mute
 
attribute double volume
 
- Public Attributes inherited from sbIMediacoreManager
readonly attribute sbIMediacore primaryCore
 
readonly attribute
sbIMediacoreBalanceControl 
balanceControl
 
readonly attribute
sbIMediacoreVolumeControl 
volumeControl
 
readonly attribute
sbIMediacoreMultibandEqualizer 
equalizer
 
readonly attribute
sbIMediacorePlaybackControl 
playbackControl
 
readonly attribute
sbIMediacoreCapabilities 
capabilities
 
readonly attribute
sbIMediacoreStatus 
status
 
readonly attribute
sbIMediacoreVideoWindow 
video
 
attribute sbIMediacoreSequencer sequencer
 
- Public Attributes inherited from sbIMediacoreFactoryRegistrar
readonly attribute nsIArray factories
 
readonly attribute nsIArray instances
 
- Public Attributes inherited from sbIMediacoreVideoWindow
attribute boolean fullscreen
 Video window fullscreen attribute. More...
 
attribute nsIDOMXULElement videoWindow
 DOM XUL Element used as the video box. More...
 
- Static Public Attributes inherited from sbBaseMediacoreMultibandEqualizer
static const nsEmbedString NO_PRESET = NS_LITERAL_STRING("")
 Value of currentPResetName if the equalizer is not set by a preset. This value is set as empty string (""). More...
 
static const PRUint32 EQUALIZER_BAND_COUNT_DEFAULT = 10
 Suggested default band count for the equalizer. This value is defined as 10. More...
 
static const PRUint32 EQUALIZER_BANDS_10 [10]
 Suggested bands for a 10 band equalizer. More...
 
- Protected Types inherited from sbBaseMediacoreMultibandEqualizer
typedef nsInterfaceHashtable
< nsUint32HashKey,
sbIMediacoreEqualizerBand
eqbands_t
 

Detailed Description

Definition at line 56 of file sbMediacoreManager.h.

Constructor & Destructor Documentation

nsISupportsWeakReference sbMediacoreManager::sbMediacoreManager ( )

"this" is used to construct mBaseEventTarget but it's not accessed till after construction is complete so this is safe.

Definition at line 141 of file sbMediacoreManager.cpp.

sbMediacoreManager::~sbMediacoreManager ( )
protectedvirtual

Definition at line 160 of file sbMediacoreManager.cpp.

Member Function Documentation

nsresult sbMediacoreManager::CreateDataRemoteForEqualizerBand ( PRUint32  aBandIndex,
sbIDataRemote **  aRemote 
)

Definition at line 807 of file sbMediacoreManager.cpp.

Here is the caller graph for this function:

nsresult sbMediacoreManager::GenerateInstanceName ( nsAString &  aInstanceName)
protected

Definition at line 415 of file sbMediacoreManager.cpp.

Here is the caller graph for this function:

nsresult sbMediacoreManager::GetAndEnsureEQBandHasDataRemote ( PRUint32  aBandIndex,
sbIDataRemote **  aRemote 
)

Definition at line 755 of file sbMediacoreManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbMediacoreManager::Init ( )

Definition at line 218 of file sbMediacoreManager.cpp.

Here is the call graph for this function:

nsresult sbMediacoreManager::InitVideoDataRemotes ( )

Definition at line 838 of file sbMediacoreManager.cpp.

Here is the caller graph for this function:

template<class T >
static sbMediacoreManager::NS_HIDDEN_ ( PLDHashOperator  ) const
staticprotected
template<class T >
static sbMediacoreManager::NS_HIDDEN_ ( PLDHashOperator  )
staticprotected
template<class T >
static sbMediacoreManager::NS_HIDDEN_ ( PLDHashOperator  ) const
staticprotected
nsresult sbMediacoreManager::OnGetBand ( PRUint32  aBandIndex,
sbIMediacoreEqualizerBand aBand 
)
virtual

Reimplemented from sbBaseMediacoreMultibandEqualizer.

Definition at line 670 of file sbMediacoreManager.cpp.

Here is the call graph for this function:

nsresult sbMediacoreManager::OnGetBandCount ( PRUint32 *  aBandCount)
virtual

Reimplemented from sbBaseMediacoreMultibandEqualizer.

Definition at line 644 of file sbMediacoreManager.cpp.

nsresult sbMediacoreManager::OnInitBaseMediacoreMultibandEqualizer ( )
virtual

Reimplemented from sbBaseMediacoreMultibandEqualizer.

Definition at line 558 of file sbMediacoreManager.cpp.

nsresult sbMediacoreManager::OnInitBaseMediacoreVolumeControl ( )
virtual

Reimplemented from sbBaseMediacoreVolumeControl.

Definition at line 872 of file sbMediacoreManager.cpp.

Here is the call graph for this function:

nsresult sbMediacoreManager::OnSetBand ( sbIMediacoreEqualizerBand aBand)
virtual

Reimplemented from sbBaseMediacoreMultibandEqualizer.

Definition at line 727 of file sbMediacoreManager.cpp.

Here is the call graph for this function:

nsresult sbMediacoreManager::OnSetEqEnabled ( PRBool  aEqEnabled)
virtual

Reimplemented from sbBaseMediacoreMultibandEqualizer.

Definition at line 606 of file sbMediacoreManager.cpp.

nsresult sbMediacoreManager::OnSetMute ( PRBool  aMute)
virtual

Reimplemented from sbBaseMediacoreVolumeControl.

Definition at line 938 of file sbMediacoreManager.cpp.

nsresult sbMediacoreManager::OnSetVolume ( PRFloat64  aVolume)
virtual

Reimplemented from sbBaseMediacoreVolumeControl.

Definition at line 966 of file sbMediacoreManager.cpp.

Here is the call graph for this function:

nsresult sbMediacoreManager::PreShutdown ( )

Definition at line 302 of file sbMediacoreManager.cpp.

nsresult sbMediacoreManager::SetAndEnsureEQBandHasDataRemote ( sbIMediacoreEqualizerBand aBand)

Definition at line 777 of file sbMediacoreManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbMediacoreManager::SetVolumeDataRemote ( PRFloat64  aVolume)

Definition at line 996 of file sbMediacoreManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbMediacoreManager::Shutdown ( )

Definition at line 333 of file sbMediacoreManager.cpp.

Here is the call graph for this function:

nsresult sbMediacoreManager::VideoWindowUnloaded ( )

Definition at line 860 of file sbMediacoreManager.cpp.

nsresult sbMediacoreManager::VoteWithURIOrChannel ( nsIURI *  aURI,
nsIChannel aChannel,
sbIMediacoreVotingChain **  _retval 
)
protected

Definition at line 433 of file sbMediacoreManager.cpp.

Here is the call graph for this function:

Member Data Documentation

static T void * sbMediacoreManager::aArray
protected

Definition at line 118 of file sbMediacoreManager.h.

static T * sbMediacoreManager::aData
protected

Definition at line 118 of file sbMediacoreManager.h.

nsAutoPtr<sbBaseMediacoreEventTarget> sbMediacoreManager::mBaseEventTarget
protected

Definition at line 145 of file sbMediacoreManager.h.

nsInterfaceHashtableMT<nsStringHashKey, sbIMediacore> sbMediacoreManager::mCores
protected

Definition at line 140 of file sbMediacoreManager.h.

nsInterfaceHashtableMT<nsUint32HashKey, sbIDataRemote> sbMediacoreManager::mDataRemoteEqualizerBands
protected

Definition at line 148 of file sbMediacoreManager.h.

nsCOMPtr<sbIDataRemote> sbMediacoreManager::mDataRemoteEqualizerEnabled
protected

Definition at line 147 of file sbMediacoreManager.h.

nsCOMPtr<sbIDataRemote> sbMediacoreManager::mDataRemoteFaceplateMute
protected

Definition at line 151 of file sbMediacoreManager.h.

nsCOMPtr<sbIDataRemote> sbMediacoreManager::mDataRemoteFaceplateVolume
protected

Definition at line 150 of file sbMediacoreManager.h.

nsCOMPtr<sbIDataRemote> sbMediacoreManager::mDataRemoteVideoFullscreen
protected

Definition at line 152 of file sbMediacoreManager.h.

nsInterfaceHashtableMT<nsISupportsHashKey, sbIMediacoreFactory> sbMediacoreManager::mFactories
protected

Definition at line 141 of file sbMediacoreManager.h.

PRPackedBool sbMediacoreManager::mFullscreen
protected

Definition at line 154 of file sbMediacoreManager.h.

PRUint32 sbMediacoreManager::mLastCore
protected

Definition at line 138 of file sbMediacoreManager.h.

PRUint32 sbMediacoreManager::mLastVideoWindow
protected

Definition at line 158 of file sbMediacoreManager.h.

PRMonitor* sbMediacoreManager::mMonitor
protected

Definition at line 137 of file sbMediacoreManager.h.

nsCOMPtr<sbIMediacore> sbMediacoreManager::mPrimaryCore
protected

Definition at line 143 of file sbMediacoreManager.h.

nsCOMPtr<sbIMediacoreSequencer> sbMediacoreManager::mSequencer
protected

Definition at line 144 of file sbMediacoreManager.h.

nsCOMPtr<nsIDOMXULElement> sbMediacoreManager::mVideoWindow
protected

Definition at line 157 of file sbMediacoreManager.h.

PRMonitor* sbMediacoreManager::mVideoWindowMonitor
protected

Definition at line 156 of file sbMediacoreManager.h.


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