author | zecke <zecke> | 2004-01-27 18:48:09 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-01-27 18:48:09 (UTC) |
commit | fbe767bcc9f46f1d9bf680dc91eba983bc39fdeb (patch) (unidiff) | |
tree | 453b0a48a4e40316ea377b0b4a05a39a16849136 | |
parent | 068604863e009b20790cd2aa482e216eb40b8876 (diff) | |
download | opie-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!!
-rw-r--r-- | core/applets/batteryapplet/batteryappletimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/cardmon/cardmonimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/clipboardapplet/clipboardappletimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/clockapplet/clockappletimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/homeapplet/home.cpp | 2 | ||||
-rw-r--r-- | core/applets/irdaapplet/irdaappletimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/logoutapplet/logout.cpp | 2 | ||||
-rw-r--r-- | core/applets/multikeyapplet/multikeyappletimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/restartapplet/restartappletimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/restartapplet2/restart.cpp | 2 | ||||
-rw-r--r-- | core/applets/rotateapplet/rotate.cpp | 2 | ||||
-rw-r--r-- | core/applets/screenshotapplet/screenshotappletimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/suspendapplet/suspend.cpp | 2 | ||||
-rw-r--r-- | core/applets/vmemo/vmemoimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/volumeapplet/volumeappletimpl.cpp | 2 | ||||
-rw-r--r-- | core/applets/vtapplet/vt.cpp | 2 | ||||
-rw-r--r-- | core/obex/obeximpl.cpp | 2 |
17 files changed, 34 insertions, 0 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 | |||
@@ -51,4 +51,6 @@ QRESULT BatteryAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface | |||
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 ) |
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 | |||
@@ -28,4 +28,6 @@ QRESULT CardMonitorImpl::queryInterface( const QUuid &uuid, QUnknownInterface ** | |||
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 | ||
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 | |||
@@ -51,4 +51,6 @@ QRESULT ClipboardAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterfac | |||
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 ) |
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 | |||
@@ -52,4 +52,6 @@ QRESULT ClockAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface ** | |||
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 ) |
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 | |||
@@ -72,4 +72,6 @@ QRESULT HomeApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **ifac | |||
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 ) |
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 | |||
@@ -51,4 +51,6 @@ QRESULT IrdaAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **i | |||
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 ) |
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 | |||
@@ -112,4 +112,6 @@ QRESULT LogoutApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **if | |||
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 ) |
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 | |||
@@ -45,4 +45,6 @@ QRESULT MultikeyAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface | |||
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 ) |
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 | |||
@@ -52,4 +52,6 @@ QRESULT RestartAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface | |||
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 ) |
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 | |||
@@ -94,4 +94,6 @@ QRESULT RestartApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **i | |||
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 ) |
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 | |||
@@ -243,4 +243,6 @@ QRESULT RotateApplet::queryInterface( const QUuid &uuid, QUnknownInterface **ifa | |||
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 ) |
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 | |||
@@ -51,4 +51,6 @@ QRESULT ScreenshotAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterfa | |||
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 ) |
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 | |||
@@ -72,4 +72,6 @@ QRESULT SuspendApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **i | |||
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 ) |
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 | |||
@@ -48,4 +48,6 @@ QRESULT VMemoAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface ** | |||
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 ) |
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 | |||
@@ -52,4 +52,6 @@ QRESULT VolumeAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface * | |||
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 ) |
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 | |||
@@ -149,4 +149,6 @@ QRESULT VTApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface | |||
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 ) |
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 | |||
@@ -18,4 +18,6 @@ QRESULT ObexImpl::queryInterface( const QUuid& uuid, QUnknownInterface **iface ) | |||
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) |