author | llornkcor <llornkcor> | 2002-06-16 18:56:32 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-06-16 18:56:32 (UTC) |
commit | b1d106338eca0c28573e2fc83c63c8ed3c76a239 (patch) (unidiff) | |
tree | fce10ba80c7cac1052e7226f62b750188b92f5eb /core/applets/volumeapplet/volumeappletimpl.cpp | |
parent | 0a92e4f6ac0f3f288dbd0b83489366eb0760975a (diff) | |
download | opie-b1d106338eca0c28573e2fc83c63c8ed3c76a239.zip opie-b1d106338eca0c28573e2fc83c63c8ed3c76a239.tar.gz opie-b1d106338eca0c28573e2fc83c63c8ed3c76a239.tar.bz2 |
made mute config
Diffstat (limited to 'core/applets/volumeapplet/volumeappletimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/volumeapplet/volumeappletimpl.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/core/applets/volumeapplet/volumeappletimpl.cpp b/core/applets/volumeapplet/volumeappletimpl.cpp index fb2b79f..943e71a 100644 --- a/core/applets/volumeapplet/volumeappletimpl.cpp +++ b/core/applets/volumeapplet/volumeappletimpl.cpp | |||
@@ -20,7 +20,7 @@ | |||
20 | #include "volume.h" | 20 | #include "volume.h" |
21 | #include "volumeappletimpl.h" | 21 | #include "volumeappletimpl.h" |
22 | #include <qpe/qcopenvelope_qws.h> | 22 | #include <qpe/qcopenvelope_qws.h> |
23 | 23 | #include <qpe/config.h> | |
24 | 24 | ||
25 | VolumeAppletImpl::VolumeAppletImpl() | 25 | VolumeAppletImpl::VolumeAppletImpl() |
26 | : volume(0), ref(0) | 26 | : volume(0), ref(0) |
@@ -36,7 +36,15 @@ QWidget *VolumeAppletImpl::applet( QWidget *parent ) | |||
36 | { | 36 | { |
37 | if ( !volume ) | 37 | if ( !volume ) |
38 | volume = new VolumeApplet( parent ); | 38 | volume = new VolumeApplet( parent ); |
39 | QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << TRUE; //mute | 39 | |
40 | Config cfg("qpe"); | ||
41 | cfg.setGroup("Volume"); | ||
42 | QString foo = cfg.readEntry("Mute","TRUE"); | ||
43 | bool muted; | ||
44 | if(foo.find("TRUE",0,TRUE) != -1) | ||
45 | muted = TRUE; | ||
46 | else muted = FALSE; | ||
47 | QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << muted; //mute | ||
40 | return volume; | 48 | return volume; |
41 | } | 49 | } |
42 | 50 | ||