blob: 37be398d15833c8500fa5c8e944434488fdd5cc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*************
* this is only a quick hack and will be later replaced by osound
*
**********/
#ifndef VOLUMECONTROL_H
#define VOLUMECONTROL_H
#include <qobject.h>
class VolumeControl : public QObject {
Q_OBJECT
public:
VolumeControl();
~VolumeControl();
// increase by "ammount"
void incVol( int ammount );
void decVol( int ammount );
/**
* Get the volume in percent
* @return volume percentage
*/
int getVolume();
public slots:
/**
* Set the volume in percent
* @value volumePerc between 0 and 100
*/
void setVolume( int volumePerc );
private:
int m_volumePerc;
};
#endif
|