summaryrefslogtreecommitdiff
authorzecke <zecke>2004-01-27 18:48:09 (UTC)
committer zecke <zecke>2004-01-27 18:48:09 (UTC)
commitfbe767bcc9f46f1d9bf680dc91eba983bc39fdeb (patch) (unidiff)
tree453b0a48a4e40316ea377b0b4a05a39a16849136
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 (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/batteryapplet/batteryappletimpl.cpp2
-rw-r--r--core/applets/cardmon/cardmonimpl.cpp2
-rw-r--r--core/applets/clipboardapplet/clipboardappletimpl.cpp2
-rw-r--r--core/applets/clockapplet/clockappletimpl.cpp2
-rw-r--r--core/applets/homeapplet/home.cpp2
-rw-r--r--core/applets/irdaapplet/irdaappletimpl.cpp4
-rw-r--r--core/applets/logoutapplet/logout.cpp2
-rw-r--r--core/applets/multikeyapplet/multikeyappletimpl.cpp2
-rw-r--r--core/applets/restartapplet/restartappletimpl.cpp4
-rw-r--r--core/applets/restartapplet2/restart.cpp2
-rw-r--r--core/applets/rotateapplet/rotate.cpp2
-rw-r--r--core/applets/screenshotapplet/screenshotappletimpl.cpp4
-rw-r--r--core/applets/suspendapplet/suspend.cpp2
-rw-r--r--core/applets/vmemo/vmemoimpl.cpp2
-rw-r--r--core/applets/volumeapplet/volumeappletimpl.cpp2
-rw-r--r--core/applets/vtapplet/vt.cpp2
-rw-r--r--core/obex/obeximpl.cpp2
17 files changed, 37 insertions, 3 deletions
diff --git a/core/applets/batteryapplet/batteryappletimpl.cpp b/core/applets/batteryapplet/batteryappletimpl.cpp
index 3f3079a..9ad0382 100644
--- a/core/applets/batteryapplet/batteryappletimpl.cpp
+++ b/core/applets/batteryapplet/batteryappletimpl.cpp
@@ -47,12 +47,14 @@ QRESULT BatteryAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface
47{ 47{
48 *iface = 0; 48 *iface = 0;
49 if ( uuid == IID_QUnknown ) 49 if ( uuid == IID_QUnknown )
50 *iface = this; 50 *iface = this;
51 else if ( uuid == IID_TaskbarApplet ) 51 else if ( uuid == IID_TaskbarApplet )
52 *iface = this; 52 *iface = this;
53 else
54 return QS_FALSE;
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
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
@@ -24,12 +24,14 @@ int CardMonitorImpl::position() const {
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;
diff --git a/core/applets/clipboardapplet/clipboardappletimpl.cpp b/core/applets/clipboardapplet/clipboardappletimpl.cpp
index 8080690..8fcf117 100644
--- a/core/applets/clipboardapplet/clipboardappletimpl.cpp
+++ b/core/applets/clipboardapplet/clipboardappletimpl.cpp
@@ -47,12 +47,14 @@ QRESULT ClipboardAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterfac
47{ 47{
48 *iface = 0; 48 *iface = 0;
49 if ( uuid == IID_QUnknown ) 49 if ( uuid == IID_QUnknown )
50 *iface = this; 50 *iface = this;
51 else if ( uuid == IID_TaskbarApplet ) 51 else if ( uuid == IID_TaskbarApplet )
52 *iface = this; 52 *iface = this;
53 else
54 return QS_FALSE;
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
diff --git a/core/applets/clockapplet/clockappletimpl.cpp b/core/applets/clockapplet/clockappletimpl.cpp
index 8bf1baf..2b9cc05 100644
--- a/core/applets/clockapplet/clockappletimpl.cpp
+++ b/core/applets/clockapplet/clockappletimpl.cpp
@@ -48,12 +48,14 @@ QRESULT ClockAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **
48{ 48{
49 *iface = 0; 49 *iface = 0;
50 if ( uuid == IID_QUnknown ) 50 if ( uuid == IID_QUnknown )
51 *iface = this; 51 *iface = this;
52 else if ( uuid == IID_TaskbarApplet ) 52 else if ( uuid == IID_TaskbarApplet )
53 *iface = this; 53 *iface = this;
54 else
55 return QS_FALSE;
54 56
55 if ( *iface ) 57 if ( *iface )
56 (*iface)->addRef(); 58 (*iface)->addRef();
57 return QS_OK; 59 return QS_OK;
58} 60}
59 61
diff --git a/core/applets/homeapplet/home.cpp b/core/applets/homeapplet/home.cpp
index 017de27..36307ab 100644
--- a/core/applets/homeapplet/home.cpp
+++ b/core/applets/homeapplet/home.cpp
@@ -68,12 +68,14 @@ QRESULT HomeApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **ifac
68{ 68{
69 *iface = 0; 69 *iface = 0;
70 if ( uuid == IID_QUnknown ) 70 if ( uuid == IID_QUnknown )
71 *iface = this; 71 *iface = this;
72 else if ( uuid == IID_MenuApplet ) 72 else if ( uuid == IID_MenuApplet )
73 *iface = this; 73 *iface = this;
74 else
75 return QS_FALSE;
74 76
75 if ( *iface ) 77 if ( *iface )
76 (*iface)-> addRef ( ); 78 (*iface)-> addRef ( );
77 return QS_OK; 79 return QS_OK;
78} 80}
79 81
diff --git a/core/applets/irdaapplet/irdaappletimpl.cpp b/core/applets/irdaapplet/irdaappletimpl.cpp
index 02443db..3617698 100644
--- a/core/applets/irdaapplet/irdaappletimpl.cpp
+++ b/core/applets/irdaapplet/irdaappletimpl.cpp
@@ -47,13 +47,15 @@ QRESULT IrdaAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **i
47{ 47{
48 *iface = 0; 48 *iface = 0;
49 if ( uuid == IID_QUnknown ) 49 if ( uuid == IID_QUnknown )
50 *iface = this; 50 *iface = this;
51 else if ( uuid == IID_TaskbarApplet ) 51 else if ( uuid == IID_TaskbarApplet )
52 *iface = this; 52 *iface = this;
53 53 else
54 return QS_FALSE;
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
59Q_EXPORT_INTERFACE() 61Q_EXPORT_INTERFACE()
diff --git a/core/applets/logoutapplet/logout.cpp b/core/applets/logoutapplet/logout.cpp
index 1769ae6..8d3cdba 100644
--- a/core/applets/logoutapplet/logout.cpp
+++ b/core/applets/logoutapplet/logout.cpp
@@ -108,12 +108,14 @@ QRESULT LogoutApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **if
108{ 108{
109 *iface = 0; 109 *iface = 0;
110 if ( uuid == IID_QUnknown ) 110 if ( uuid == IID_QUnknown )
111 *iface = this; 111 *iface = this;
112 else if ( uuid == IID_MenuApplet ) 112 else if ( uuid == IID_MenuApplet )
113 *iface = this; 113 *iface = this;
114 else
115 return QS_FALSE;
114 116
115 if ( *iface ) 117 if ( *iface )
116 (*iface)-> addRef ( ); 118 (*iface)-> addRef ( );
117 return QS_OK; 119 return QS_OK;
118} 120}
119 121
diff --git a/core/applets/multikeyapplet/multikeyappletimpl.cpp b/core/applets/multikeyapplet/multikeyappletimpl.cpp
index 4644556..adf92c4 100644
--- a/core/applets/multikeyapplet/multikeyappletimpl.cpp
+++ b/core/applets/multikeyapplet/multikeyappletimpl.cpp
@@ -41,12 +41,14 @@ QRESULT MultikeyAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface
41{ 41{
42 *iface = 0; 42 *iface = 0;
43 if ( uuid == IID_QUnknown ) 43 if ( uuid == IID_QUnknown )
44 *iface = this; 44 *iface = this;
45 else if ( uuid == IID_TaskbarApplet ) 45 else if ( uuid == IID_TaskbarApplet )
46 *iface = this; 46 *iface = this;
47 else
48 return QS_FALSE;
47 49
48 if ( *iface ) 50 if ( *iface )
49 (*iface)->addRef(); 51 (*iface)->addRef();
50 return QS_OK; 52 return QS_OK;
51} 53}
52 54
diff --git a/core/applets/restartapplet/restartappletimpl.cpp b/core/applets/restartapplet/restartappletimpl.cpp
index e675c0b..5b0092d 100644
--- a/core/applets/restartapplet/restartappletimpl.cpp
+++ b/core/applets/restartapplet/restartappletimpl.cpp
@@ -48,13 +48,15 @@ QRESULT RestartAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface
48{ 48{
49 *iface = 0; 49 *iface = 0;
50 if ( uuid == IID_QUnknown ) 50 if ( uuid == IID_QUnknown )
51 *iface = this; 51 *iface = this;
52 else if ( uuid == IID_TaskbarApplet ) 52 else if ( uuid == IID_TaskbarApplet )
53 *iface = this; 53 *iface = this;
54 54 else
55 return QS_FALSE;
56
55 if ( *iface ) 57 if ( *iface )
56 (*iface)->addRef(); 58 (*iface)->addRef();
57 return QS_OK; 59 return QS_OK;
58} 60}
59 61
60Q_EXPORT_INTERFACE() 62Q_EXPORT_INTERFACE()
diff --git a/core/applets/restartapplet2/restart.cpp b/core/applets/restartapplet2/restart.cpp
index caed9e5..576087b 100644
--- a/core/applets/restartapplet2/restart.cpp
+++ b/core/applets/restartapplet2/restart.cpp
@@ -90,12 +90,14 @@ QRESULT RestartApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **i
90{ 90{
91 *iface = 0; 91 *iface = 0;
92 if ( uuid == IID_QUnknown ) 92 if ( uuid == IID_QUnknown )
93 *iface = this; 93 *iface = this;
94 else if ( uuid == IID_MenuApplet ) 94 else if ( uuid == IID_MenuApplet )
95 *iface = this; 95 *iface = this;
96 else
97 return QS_FALSE;
96 98
97 if ( *iface ) 99 if ( *iface )
98 (*iface)-> addRef ( ); 100 (*iface)-> addRef ( );
99 return QS_OK; 101 return QS_OK;
100} 102}
101 103
diff --git a/core/applets/rotateapplet/rotate.cpp b/core/applets/rotateapplet/rotate.cpp
index 906063e..b676c74 100644
--- a/core/applets/rotateapplet/rotate.cpp
+++ b/core/applets/rotateapplet/rotate.cpp
@@ -239,12 +239,14 @@ QRESULT RotateApplet::queryInterface( const QUuid &uuid, QUnknownInterface **ifa
239{ 239{
240 *iface = 0; 240 *iface = 0;
241 if ( uuid == IID_QUnknown ) 241 if ( uuid == IID_QUnknown )
242 *iface = this; 242 *iface = this;
243 else if ( uuid == IID_MenuApplet ) 243 else if ( uuid == IID_MenuApplet )
244 *iface = this; 244 *iface = this;
245 else
246 return QS_FALSE;
245 247
246 if ( *iface ) 248 if ( *iface )
247 (*iface)->addRef(); 249 (*iface)->addRef();
248 return QS_OK; 250 return QS_OK;
249} 251}
250 252
diff --git a/core/applets/screenshotapplet/screenshotappletimpl.cpp b/core/applets/screenshotapplet/screenshotappletimpl.cpp
index a537162..4a7512e 100644
--- a/core/applets/screenshotapplet/screenshotappletimpl.cpp
+++ b/core/applets/screenshotapplet/screenshotappletimpl.cpp
@@ -47,13 +47,15 @@ QRESULT ScreenshotAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterfa
47{ 47{
48 *iface = 0; 48 *iface = 0;
49 if ( uuid == IID_QUnknown ) 49 if ( uuid == IID_QUnknown )
50 *iface = this; 50 *iface = this;
51 else if ( uuid == IID_TaskbarApplet ) 51 else if ( uuid == IID_TaskbarApplet )
52 *iface = this; 52 *iface = this;
53 53 else
54 return QS_FALSE;
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
59Q_EXPORT_INTERFACE() 61Q_EXPORT_INTERFACE()
diff --git a/core/applets/suspendapplet/suspend.cpp b/core/applets/suspendapplet/suspend.cpp
index 4bdc8fb..63f16b8 100644
--- a/core/applets/suspendapplet/suspend.cpp
+++ b/core/applets/suspendapplet/suspend.cpp
@@ -68,12 +68,14 @@ QRESULT SuspendApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **i
68{ 68{
69 *iface = 0; 69 *iface = 0;
70 if ( uuid == IID_QUnknown ) 70 if ( uuid == IID_QUnknown )
71 *iface = this; 71 *iface = this;
72 else if ( uuid == IID_MenuApplet ) 72 else if ( uuid == IID_MenuApplet )
73 *iface = this; 73 *iface = this;
74 else
75 return QS_FALSE;
74 76
75 if ( *iface ) 77 if ( *iface )
76 (*iface)-> addRef ( ); 78 (*iface)-> addRef ( );
77 return QS_OK; 79 return QS_OK;
78} 80}
79 81
diff --git a/core/applets/vmemo/vmemoimpl.cpp b/core/applets/vmemo/vmemoimpl.cpp
index ef4a3a6..71d47e5 100644
--- a/core/applets/vmemo/vmemoimpl.cpp
+++ b/core/applets/vmemo/vmemoimpl.cpp
@@ -44,12 +44,14 @@ QRESULT VMemoAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **
44{ 44{
45 *iface = 0; 45 *iface = 0;
46 if ( uuid == IID_QUnknown ) 46 if ( uuid == IID_QUnknown )
47 *iface = this; 47 *iface = this;
48 else if ( uuid == IID_TaskbarApplet ) 48 else if ( uuid == IID_TaskbarApplet )
49 *iface = this; 49 *iface = this;
50 else
51 return QS_FALSE;
50 52
51 if ( *iface ) 53 if ( *iface )
52 (*iface)->addRef(); 54 (*iface)->addRef();
53 return QS_OK; 55 return QS_OK;
54} 56}
55 57
diff --git a/core/applets/volumeapplet/volumeappletimpl.cpp b/core/applets/volumeapplet/volumeappletimpl.cpp
index 47506cc..80b3e74 100644
--- a/core/applets/volumeapplet/volumeappletimpl.cpp
+++ b/core/applets/volumeapplet/volumeappletimpl.cpp
@@ -48,12 +48,14 @@ QRESULT VolumeAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface *
48{ 48{
49 *iface = 0; 49 *iface = 0;
50 if ( uuid == IID_QUnknown ) 50 if ( uuid == IID_QUnknown )
51 *iface = this; 51 *iface = this;
52 else if ( uuid == IID_TaskbarApplet ) 52 else if ( uuid == IID_TaskbarApplet )
53 *iface = this; 53 *iface = this;
54 else
55 return QS_FALSE;
54 56
55 if ( *iface ) 57 if ( *iface )
56 (*iface)->addRef(); 58 (*iface)->addRef();
57 return QS_OK; 59 return QS_OK;
58} 60}
59 61
diff --git a/core/applets/vtapplet/vt.cpp b/core/applets/vtapplet/vt.cpp
index 4cc2d60..cdd3c97 100644
--- a/core/applets/vtapplet/vt.cpp
+++ b/core/applets/vtapplet/vt.cpp
@@ -145,12 +145,14 @@ QRESULT VTApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface
145{ 145{
146 *iface = 0; 146 *iface = 0;
147 if ( uuid == IID_QUnknown ) 147 if ( uuid == IID_QUnknown )
148 *iface = this; 148 *iface = this;
149 else if ( uuid == IID_MenuApplet ) 149 else if ( uuid == IID_MenuApplet )
150 *iface = this; 150 *iface = this;
151 else
152 return QS_FALSE;
151 153
152 if ( *iface ) 154 if ( *iface )
153 (*iface)-> addRef ( ); 155 (*iface)-> addRef ( );
154 return QS_OK; 156 return QS_OK;
155} 157}
156 158
diff --git a/core/obex/obeximpl.cpp b/core/obex/obeximpl.cpp
index 5bfc779..5b53644 100644
--- a/core/obex/obeximpl.cpp
+++ b/core/obex/obeximpl.cpp
@@ -14,12 +14,14 @@ ObexImpl::~ObexImpl() {
14QRESULT ObexImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) { 14QRESULT ObexImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) {
15 *iface = 0; 15 *iface = 0;
16 if ( uuid == IID_QUnknown ) { 16 if ( uuid == IID_QUnknown ) {
17 *iface = this; 17 *iface = this;
18 }else if ( uuid == IID_ObexInterface ) 18 }else if ( uuid == IID_ObexInterface )
19 *iface = this; 19 *iface = this;
20 else
21 return QS_FALSE;
20 22
21 if (*iface) 23 if (*iface)
22 (*iface)->addRef(); 24 (*iface)->addRef();
23 25
24 return QS_OK; 26 return QS_OK;
25} 27}