summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/volumecontrol.cpp7
-rw-r--r--noncore/multimedia/opieplayer2/volumecontrol.h1
2 files changed, 6 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/volumecontrol.cpp b/noncore/multimedia/opieplayer2/volumecontrol.cpp
index b8ec0df..219f63e 100644
--- a/noncore/multimedia/opieplayer2/volumecontrol.cpp
+++ b/noncore/multimedia/opieplayer2/volumecontrol.cpp
@@ -28,9 +28,10 @@ void VolumeControl::setVolume( int volumePerc ) {
28 } 28 }
29 29
30 m_volumePerc = volumePerc; 30 m_volumePerc = volumePerc;
31 cfg.writeEntry("VolumePercent", volumePerc ); 31 cfg.writeEntry("VolumePercent", volumePerc );
32 QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << false; 32// QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << false;
33 QCopEnvelope( "QPE/System", "setVolume(int,int)" ) << 0, volumePerc;
33} 34}
34 35
35 36
36void VolumeControl::incVol( int ammount ) { 37void VolumeControl::incVol( int ammount ) {
@@ -51,9 +52,11 @@ VolumeControl::VolumeControl( ) {
51VolumeControl::~VolumeControl() { 52VolumeControl::~VolumeControl() {
52 QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << false; 53 QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << false;
53} 54}
54 55
55 56void VolumeControl::setMute(bool on) {
57 QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << on;
58}
56 59
57 60
58 61
59 62
diff --git a/noncore/multimedia/opieplayer2/volumecontrol.h b/noncore/multimedia/opieplayer2/volumecontrol.h
index 37be398..d0d34a2 100644
--- a/noncore/multimedia/opieplayer2/volumecontrol.h
+++ b/noncore/multimedia/opieplayer2/volumecontrol.h
@@ -34,8 +34,9 @@ public slots:
34 * @value volumePerc between 0 and 100 34 * @value volumePerc between 0 and 100
35 */ 35 */
36 void setVolume( int volumePerc ); 36 void setVolume( int volumePerc );
37 37
38 void setMute(bool);
38 39
39 40
40private: 41private:
41 42