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/suspendapplet/suspend.cpp | |
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!!
Diffstat (limited to 'core/applets/suspendapplet/suspend.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/suspendapplet/suspend.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
@@ -62,24 +62,26 @@ void SuspendApplet::activated ( ) | |||
62 | // suspend | 62 | // suspend |
63 | QCopEnvelope ( "QPE/System", "suspend()" ); | 63 | QCopEnvelope ( "QPE/System", "suspend()" ); |
64 | } | 64 | } |
65 | 65 | ||
66 | 66 | ||
67 | QRESULT SuspendApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) | 67 | QRESULT SuspendApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) |
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 | ||
80 | Q_EXPORT_INTERFACE( ) | 82 | Q_EXPORT_INTERFACE( ) |
81 | { | 83 | { |
82 | Q_CREATE_INSTANCE( SuspendApplet ) | 84 | Q_CREATE_INSTANCE( SuspendApplet ) |
83 | } | 85 | } |
84 | 86 | ||
85 | 87 | ||