summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/volumecontrol.h
blob: 040f978ed5e19dd61417c18595c2f5a28eb56930 (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
48
/*************
 * 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 volume();

public slots:

    /**
     * Set the volume in percent
     * @value volumePerc between 0 and 100
     */
    void setVolume( int volumePerc );

    void setMute(bool); 


private:

    int m_volumePerc;

};

#endif