summaryrefslogtreecommitdiff
path: root/core/applets/cardmon
authorzecke <zecke>2004-01-27 18:48:09 (UTC)
committer zecke <zecke>2004-01-27 18:48:09 (UTC)
commitfbe767bcc9f46f1d9bf680dc91eba983bc39fdeb (patch) (unidiff)
tree453b0a48a4e40316ea377b0b4a05a39a16849136 /core/applets/cardmon
parent068604863e009b20790cd2aa482e216eb40b8876 (diff)
downloadopie-fbe767bcc9f46f1d9bf680dc91eba983bc39fdeb.zip
opie-fbe767bcc9f46f1d9bf680dc91eba983bc39fdeb.tar.gz
opie-fbe767bcc9f46f1d9bf680dc91eba983bc39fdeb.tar.bz2
Funny what my SDK all triggers
Ok the reason to use a bool as return type is that you can say that something worked or not worked. So if we don't implement the given interface don't lie!!
Diffstat (limited to 'core/applets/cardmon') (more/less context) (show whitespace changes)
-rw-r--r--core/applets/cardmon/cardmonimpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/applets/cardmon/cardmonimpl.cpp b/core/applets/cardmon/cardmonimpl.cpp
index 0aa55de..265214e 100644
--- a/core/applets/cardmon/cardmonimpl.cpp
+++ b/core/applets/cardmon/cardmonimpl.cpp
@@ -18,23 +18,25 @@ QWidget *CardMonitorImpl::applet( QWidget *parent ) {
18} 18}
19 19
20int CardMonitorImpl::position() const { 20int CardMonitorImpl::position() const {
21 return 7; 21 return 7;
22} 22}
23 23
24QRESULT CardMonitorImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { 24QRESULT CardMonitorImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) {
25 *iface = 0; 25 *iface = 0;
26 if ( uuid == IID_QUnknown ) { 26 if ( uuid == IID_QUnknown ) {
27 *iface = this; 27 *iface = this;
28 } else if ( uuid == IID_TaskbarApplet ) { 28 } else if ( uuid == IID_TaskbarApplet ) {
29 *iface = this; 29 *iface = this;
30 } else {
31 return QS_FALSE;
30 } 32 }
31 33
32 if ( *iface ) { 34 if ( *iface ) {
33 (*iface)->addRef(); 35 (*iface)->addRef();
34 } 36 }
35 return QS_OK; 37 return QS_OK;
36} 38}
37 39
38Q_EXPORT_INTERFACE() { 40Q_EXPORT_INTERFACE() {
39 Q_CREATE_INSTANCE( CardMonitorImpl ) 41 Q_CREATE_INSTANCE( CardMonitorImpl )
40} 42}