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 /core/applets/vmemo | |
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/vmemo/vmemoimpl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
@@ -38,22 +38,24 @@ QWidget *VMemoAppletImpl::applet( QWidget *parent ) | |||
38 | int VMemoAppletImpl::position() const | 38 | int VMemoAppletImpl::position() const |
39 | { | 39 | { |
40 | return 6; | 40 | return 6; |
41 | } | 41 | } |
42 | 42 | ||
43 | QRESULT VMemoAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 43 | QRESULT VMemoAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
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 | ||
56 | Q_EXPORT_INTERFACE() | 58 | Q_EXPORT_INTERFACE() |
57 | { | 59 | { |
58 | Q_CREATE_INSTANCE( VMemoAppletImpl ) | 60 | Q_CREATE_INSTANCE( VMemoAppletImpl ) |
59 | } | 61 | } |