summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/volumecontrol.cpp
Side-by-side diff
Diffstat (limited to 'noncore/multimedia/opieplayer2/volumecontrol.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/volumecontrol.cpp7
1 files changed, 5 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
@@ -26,13 +26,14 @@ void VolumeControl::setVolume( int volumePerc ) {
if ( volumePerc < 0 ) {
volumePerc = 0;
}
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;
}
void VolumeControl::incVol( int ammount ) {
int oldVol = getVolume();
setVolume( oldVol + ammount);
@@ -49,11 +50,13 @@ VolumeControl::VolumeControl( ) {
}
VolumeControl::~VolumeControl() {
QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << false;
}
-
+void VolumeControl::setMute(bool on) {
+ QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << on;
+}