summaryrefslogtreecommitdiff
path: root/noncore
Side-by-side diff
Diffstat (limited to 'noncore') (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
@@ -29,7 +29,8 @@ void VolumeControl::setVolume( int volumePerc ) {
m_volumePerc = volumePerc;
cfg.writeEntry("VolumePercent", volumePerc );
- QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << false;
+// QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << false;
+ QCopEnvelope( "QPE/System", "setVolume(int,int)" ) << 0, volumePerc;
}
@@ -52,7 +53,9 @@ VolumeControl::~VolumeControl() {
QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << false;
}
-
+void VolumeControl::setMute(bool on) {
+ QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << on;
+}
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
@@ -35,6 +35,7 @@ public slots:
*/
void setVolume( int volumePerc );
+ void setMute(bool);
private: