sbBaseMediacoreVolumeControl Class Reference

#include <sbBaseMediacoreVolumeControl.h>

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

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBIMEDIACOREVOLUMECONTROL 
sbBaseMediacoreVolumeControl ()
 
nsresult InitBaseMediacoreVolumeControl ()
 
virtual nsresult OnInitBaseMediacoreVolumeControl ()
 
virtual nsresult OnSetMute (PRBool aMute)
 
virtual nsresult OnSetVolume (PRFloat64 aVolume)
 

Protected Member Functions

virtual ~sbBaseMediacoreVolumeControl ()
 

Protected Attributes

PRMonitor * mMonitor
 
PRBool mMute
 
double mVolume
 

Additional Inherited Members

- Public Attributes inherited from sbIMediacoreVolumeControl
attribute boolean mute
 
attribute double volume
 

Detailed Description

Definition at line 43 of file sbBaseMediacoreVolumeControl.h.

Constructor & Destructor Documentation

NS_DECL_ISUPPORTS NS_DECL_SBIMEDIACOREVOLUMECONTROL sbBaseMediacoreVolumeControl::sbBaseMediacoreVolumeControl ( )
sbBaseMediacoreVolumeControl::~sbBaseMediacoreVolumeControl ( )
protectedvirtual

Definition at line 84 of file sbBaseMediacoreVolumeControl.cpp.

Member Function Documentation

nsresult sbBaseMediacoreVolumeControl::InitBaseMediacoreVolumeControl ( )

Definition at line 96 of file sbBaseMediacoreVolumeControl.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbBaseMediacoreVolumeControl::OnInitBaseMediacoreVolumeControl ( )
virtual

This is where you may want to set what the current volume is so that the value is initialized properly.

Reimplemented in sbGStreamerMediacore, sbMediacoreWrapper, and sbMediacoreManager.

Definition at line 163 of file sbBaseMediacoreVolumeControl.cpp.

Here is the caller graph for this function:

nsresult sbBaseMediacoreVolumeControl::OnSetMute ( PRBool  aMute)
virtual

This is where you would set the actual mute flag on the mediacore implementation.

The value is always cached for you if this method succeeds. If it fails the current value remains.

Reimplemented in sbGStreamerMediacore, sbMediacoreWrapper, and sbMediacoreManager.

Definition at line 174 of file sbBaseMediacoreVolumeControl.cpp.

nsresult sbBaseMediacoreVolumeControl::OnSetVolume ( PRFloat64  aVolume)
virtual

This is where you would set the actual volume on the mediacore implementation.

The value is always cached for you if this method succeeds. If it fails the current value remains.

Reimplemented in sbGStreamerMediacore, sbMediacoreWrapper, and sbMediacoreManager.

Definition at line 188 of file sbBaseMediacoreVolumeControl.cpp.

Member Data Documentation

PRMonitor* sbBaseMediacoreVolumeControl::mMonitor
protected

Definition at line 65 of file sbBaseMediacoreVolumeControl.h.

PRBool sbBaseMediacoreVolumeControl::mMute
protected

Definition at line 67 of file sbBaseMediacoreVolumeControl.h.

double sbBaseMediacoreVolumeControl::mVolume
protected

Definition at line 68 of file sbBaseMediacoreVolumeControl.h.


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