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) (side-by-side diff)
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 @@
+/*************
+ * 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
+