Diffstat (limited to 'core/applets/volumeapplet/volumeappletimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/applets/volumeapplet/volumeappletimpl.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/core/applets/volumeapplet/volumeappletimpl.cpp b/core/applets/volumeapplet/volumeappletimpl.cpp index 943e71a..47506cc 100644 --- a/core/applets/volumeapplet/volumeappletimpl.cpp +++ b/core/applets/volumeapplet/volumeappletimpl.cpp | |||
@@ -27,33 +27,24 @@ VolumeAppletImpl::VolumeAppletImpl() | |||
27 | { | 27 | { |
28 | } | 28 | } |
29 | 29 | ||
30 | VolumeAppletImpl::~VolumeAppletImpl() | 30 | VolumeAppletImpl::~VolumeAppletImpl() |
31 | { | 31 | { |
32 | delete volume; | 32 | delete volume; |
33 | } | 33 | } |
34 | 34 | ||
35 | QWidget *VolumeAppletImpl::applet( QWidget *parent ) | 35 | QWidget *VolumeAppletImpl::applet( QWidget *parent ) |
36 | { | 36 | { |
37 | if ( !volume ) | 37 | if ( !volume ) |
38 | volume = new VolumeApplet( parent ); | 38 | volume = new VolumeApplet( parent ); |
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 | ||
48 | return volume; | 39 | return volume; |
49 | } | 40 | } |
50 | 41 | ||
51 | int VolumeAppletImpl::position() const | 42 | int VolumeAppletImpl::position() const |
52 | { | 43 | { |
53 | return 6; | 44 | return 6; |
54 | } | 45 | } |
55 | 46 | ||
56 | QRESULT VolumeAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 47 | QRESULT VolumeAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
57 | { | 48 | { |
58 | *iface = 0; | 49 | *iface = 0; |
59 | if ( uuid == IID_QUnknown ) | 50 | if ( uuid == IID_QUnknown ) |