author | llornkcor <llornkcor> | 2002-06-16 17:22:40 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-06-16 17:22:40 (UTC) |
commit | 0a92e4f6ac0f3f288dbd0b83489366eb0760975a (patch) (unidiff) | |
tree | 6487150faec5f13472606dfcd98fd58bcdb151a8 | |
parent | f63c4f952daeeda9787b8b700a9d50f20cdff88c (diff) | |
download | opie-0a92e4f6ac0f3f288dbd0b83489366eb0760975a.zip opie-0a92e4f6ac0f3f288dbd0b83489366eb0760975a.tar.gz opie-0a92e4f6ac0f3f288dbd0b83489366eb0760975a.tar.bz2 |
default is now moot.. err rather mute d
-rw-r--r-- | core/applets/volumeapplet/volume.cpp | 1 | ||||
-rw-r--r-- | core/applets/volumeapplet/volumeappletimpl.cpp | 10 |
2 files changed, 7 insertions, 4 deletions
diff --git a/core/applets/volumeapplet/volume.cpp b/core/applets/volumeapplet/volume.cpp index e8921f0..069f8ab 100644 --- a/core/applets/volumeapplet/volume.cpp +++ b/core/applets/volumeapplet/volume.cpp | |||
@@ -41,16 +41,17 @@ | |||
41 | 41 | ||
42 | #define RATE_TIMER_INTERVAL 100 | 42 | #define RATE_TIMER_INTERVAL 100 |
43 | // Ten times per second is fine (RATE_TIMER_INTERVAL 100). A shorter time | 43 | // Ten times per second is fine (RATE_TIMER_INTERVAL 100). A shorter time |
44 | // results in "hanging" buttons on the iPAQ due to quite high CPU consumption. | 44 | // results in "hanging" buttons on the iPAQ due to quite high CPU consumption. |
45 | 45 | ||
46 | VolumeControl::VolumeControl( bool showMic, QWidget *parent, const char *name ) | 46 | VolumeControl::VolumeControl( bool showMic, QWidget *parent, const char *name ) |
47 | : QFrame( parent, name, WDestructiveClose | WStyle_StaysOnTop | WType_Popup ) | 47 | : QFrame( parent, name, WDestructiveClose | WStyle_StaysOnTop | WType_Popup ) |
48 | { | 48 | { |
49 | QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << TRUE; //mute | ||
49 | setFrameStyle( QFrame::PopupPanel | QFrame::Raised ); | 50 | setFrameStyle( QFrame::PopupPanel | QFrame::Raised ); |
50 | createView(showMic); | 51 | createView(showMic); |
51 | } | 52 | } |
52 | 53 | ||
53 | void VolumeControl::createView(bool showMic) | 54 | void VolumeControl::createView(bool showMic) |
54 | { | 55 | { |
55 | Config cfg("qpe"); | 56 | Config cfg("qpe"); |
56 | cfg.setGroup("Volume"); | 57 | cfg.setGroup("Volume"); |
diff --git a/core/applets/volumeapplet/volumeappletimpl.cpp b/core/applets/volumeapplet/volumeappletimpl.cpp index 676ab61..fb2b79f 100644 --- a/core/applets/volumeapplet/volumeappletimpl.cpp +++ b/core/applets/volumeapplet/volumeappletimpl.cpp | |||
@@ -14,50 +14,52 @@ | |||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "volume.h" | 20 | #include "volume.h" |
21 | #include "volumeappletimpl.h" | 21 | #include "volumeappletimpl.h" |
22 | #include <qpe/qcopenvelope_qws.h> | ||
22 | 23 | ||
23 | 24 | ||
24 | VolumeAppletImpl::VolumeAppletImpl() | 25 | VolumeAppletImpl::VolumeAppletImpl() |
25 | : volume(0), ref(0) | 26 | : volume(0), ref(0) |
26 | { | 27 | { |
27 | } | 28 | } |
28 | 29 | ||
29 | VolumeAppletImpl::~VolumeAppletImpl() | 30 | VolumeAppletImpl::~VolumeAppletImpl() |
30 | { | 31 | { |
31 | delete volume; | 32 | delete volume; |
32 | } | 33 | } |
33 | 34 | ||
34 | QWidget *VolumeAppletImpl::applet( QWidget *parent ) | 35 | QWidget *VolumeAppletImpl::applet( QWidget *parent ) |
35 | { | 36 | { |
36 | if ( !volume ) | 37 | if ( !volume ) |
37 | volume = new VolumeApplet( parent ); | 38 | volume = new VolumeApplet( parent ); |
39 | QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << TRUE; //mute | ||
38 | return volume; | 40 | return volume; |
39 | } | 41 | } |
40 | 42 | ||
41 | int VolumeAppletImpl::position() const | 43 | int VolumeAppletImpl::position() const |
42 | { | 44 | { |
43 | return 6; | 45 | return 6; |
44 | } | 46 | } |
45 | 47 | ||
46 | QRESULT VolumeAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 48 | QRESULT VolumeAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
47 | { | 49 | { |
48 | *iface = 0; | 50 | *iface = 0; |
49 | if ( uuid == IID_QUnknown ) | 51 | if ( uuid == IID_QUnknown ) |
50 | *iface = this; | 52 | *iface = this; |
51 | else if ( uuid == IID_TaskbarApplet ) | 53 | else if ( uuid == IID_TaskbarApplet ) |
52 | *iface = this; | 54 | *iface = this; |
53 | 55 | ||
54 | if ( *iface ) | 56 | if ( *iface ) |
55 | (*iface)->addRef(); | 57 | (*iface)->addRef(); |
56 | return QS_OK; | 58 | return QS_OK; |
57 | } | 59 | } |
58 | 60 | ||
59 | Q_EXPORT_INTERFACE() | 61 | Q_EXPORT_INTERFACE() |
60 | { | 62 | { |
61 | Q_CREATE_INSTANCE( VolumeAppletImpl ) | 63 | Q_CREATE_INSTANCE( VolumeAppletImpl ) |
62 | } | 64 | } |
63 | 65 | ||