#include <volumecontrol.h>
Public Slots | |
void | checkVolume () |
Signals | |
void | volumeChanged (int left, int right) |
Public Member Functions | |
VolumeControl (QObject *parent=0) | |
~VolumeControl () | |
virtual void | setVolume (int left, int right)=0 |
int | left () |
int | right () |
Static Public Member Functions | |
static VolumeControl * | create (QObject *parent=0) |
Protected Member Functions | |
virtual void | volume (int *left, int *right)=0 |
VolumeControl | ( | QObject * | parent = 0 |
) |
Object constructor.
parent | Parent object. |
~VolumeControl | ( | ) |
Destructor.
void checkVolume | ( | ) | [slot] |
Forces the volumeChanged signal to emit.
static VolumeControl* create | ( | QObject * | parent = 0 |
) | [static] |
Creates output volume control object if implemented, otherwise it creates SoftwareVolume object.
parent | Parent object. |
int left | ( | ) |
Returns left channel volume.
int right | ( | ) |
Returns right channel volume.
virtual void setVolume | ( | int | left, | |
int | right | |||
) | [pure virtual] |
Setups volume level. Subclass should reimplement this fucntion.
left | Left channel volume level. It should be 0..100 | |
right | Right channel volume level. It should be 0..100 |
Implemented in SoftwareVolume.
virtual void volume | ( | int * | left, | |
int * | right | |||
) | [protected, pure virtual] |
Gets current volume.
left | Pointer to the left volume level. | |
right | Pointer to the right volume level |
Implemented in SoftwareVolume.
void volumeChanged | ( | int | left, | |
int | right | |||
) | [signal] |
Emitted when volume is changed.
left | Left channel volume level. It should be 0..100 | |
right | Right channel volume level. It should be 0..100 |