VolumeControl Class Reference

The VolumeControl class provides the base interface class for volume control. More...

#include <volumecontrol.h>

Inheritance diagram for VolumeControl:

SoftwareVolume

List of all members.

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 VolumeControlcreate (QObject *parent=0)

Protected Member Functions

virtual void volume (int *left, int *right)=0


Detailed Description

The VolumeControl class provides the base interface class for volume control.

Author:
Ilya Kotov <forkotov02@hotmail.ru>

Constructor & Destructor Documentation

VolumeControl ( QObject *  parent = 0  ) 

Object constructor.

Parameters:
parent Parent object.

~VolumeControl (  ) 

Destructor.


Member Function Documentation

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.

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

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

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

Parameters:
left Left channel volume level. It should be 0..100
right Right channel volume level. It should be 0..100


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

Generated on Thu Nov 10 20:39:11 2011 for Qmmp by  doxygen 1.5.9