summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/volumecontrol.h
authorharlekin <harlekin>2002-08-07 19:30:13 (UTC)
committer harlekin <harlekin>2002-08-07 19:30:13 (UTC)
commitc80f0885bf402b6dd4ea637ad1b7d8b3ebd69300 (patch) (unidiff)
tree558e8528408f0ab27d644554279f646723c6dad9 /noncore/multimedia/opieplayer2/volumecontrol.h
parent7effde67fd121736ec658e690858c6c54bd6d125 (diff)
downloadopie-c80f0885bf402b6dd4ea637ad1b7d8b3ebd69300.zip
opie-c80f0885bf402b6dd4ea637ad1b7d8b3ebd69300.tar.gz
opie-c80f0885bf402b6dd4ea637ad1b7d8b3ebd69300.tar.bz2
added volume handling for audio gui and other small fixes
Diffstat (limited to 'noncore/multimedia/opieplayer2/volumecontrol.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/volumecontrol.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/volumecontrol.h b/noncore/multimedia/opieplayer2/volumecontrol.h
new file mode 100644
index 0000000..37be398
--- a/dev/null
+++ b/noncore/multimedia/opieplayer2/volumecontrol.h
@@ -0,0 +1,47 @@
1/*************
2 * this is only a quick hack and will be later replaced by osound
3 *
4 **********/
5
6
7#ifndef VOLUMECONTROL_H
8#define VOLUMECONTROL_H
9
10
11
12#include <qobject.h>
13
14class VolumeControl : public QObject {
15 Q_OBJECT
16public:
17 VolumeControl();
18 ~VolumeControl();
19
20 // increase by "ammount"
21 void incVol( int ammount );
22 void decVol( int ammount );
23
24 /**
25 * Get the volume in percent
26 * @return volume percentage
27 */
28 int getVolume();
29
30public slots:
31
32 /**
33 * Set the volume in percent
34 * @value volumePerc between 0 and 100
35 */
36 void setVolume( int volumePerc );
37
38
39
40private:
41
42 int m_volumePerc;
43
44};
45
46#endif
47