summaryrefslogtreecommitdiff
authorzecke <zecke>2004-01-27 18:51:03 (UTC)
committer zecke <zecke>2004-01-27 18:51:03 (UTC)
commitb2823e2919b746107b13ebdf603fa04cec8fba72 (patch) (side-by-side diff)
tree2af5f5c5ebae9873605d069dfc2ebceb63d615aa
parentfbe767bcc9f46f1d9bf680dc91eba983bc39fdeb (diff)
downloadopie-b2823e2919b746107b13ebdf603fa04cec8fba72.zip
opie-b2823e2919b746107b13ebdf603fa04cec8fba72.tar.gz
opie-b2823e2919b746107b13ebdf603fa04cec8fba72.tar.bz2
Return QS_FALSE if we don't implement the interface queried for
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginimpl.cpp4
-rw-r--r--core/pim/today/plugins/datebook/datebookpluginimpl.cpp4
-rw-r--r--core/pim/today/plugins/mail/mailpluginimpl.cpp4
-rw-r--r--core/pim/today/plugins/todolist/todopluginimpl.cpp4
4 files changed, 12 insertions, 4 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginimpl.cpp b/core/pim/today/plugins/addressbook/addresspluginimpl.cpp
index 54e620e..15cd805 100644
--- a/core/pim/today/plugins/addressbook/addresspluginimpl.cpp
+++ b/core/pim/today/plugins/addressbook/addresspluginimpl.cpp
@@ -31,16 +31,18 @@ AddressBookPluginImpl::~AddressBookPluginImpl() {
TodayPluginObject* AddressBookPluginImpl::guiPart() {
return addressbookPlugin;
}
QRESULT AddressBookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) {
*iface = 0;
if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) {
*iface = this, (*iface)->addRef();
- }
+ }else
+ return QS_FALSE;
+
return QS_OK;
}
Q_EXPORT_INTERFACE() {
Q_CREATE_INSTANCE( AddressBookPluginImpl );
}
diff --git a/core/pim/today/plugins/datebook/datebookpluginimpl.cpp b/core/pim/today/plugins/datebook/datebookpluginimpl.cpp
index 45736bb..6baffb9 100644
--- a/core/pim/today/plugins/datebook/datebookpluginimpl.cpp
+++ b/core/pim/today/plugins/datebook/datebookpluginimpl.cpp
@@ -28,16 +28,18 @@ DatebookPluginImpl::~DatebookPluginImpl() {
TodayPluginObject* DatebookPluginImpl::guiPart() {
return datebookPlugin;
}
QRESULT DatebookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) {
*iface = 0;
if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) {
*iface = this, (*iface)->addRef();
- }
+ }else
+ return QS_FALSE;
+
return QS_OK;
}
Q_EXPORT_INTERFACE() {
Q_CREATE_INSTANCE( DatebookPluginImpl );
}
diff --git a/core/pim/today/plugins/mail/mailpluginimpl.cpp b/core/pim/today/plugins/mail/mailpluginimpl.cpp
index bd57bc9..dfd3a64 100644
--- a/core/pim/today/plugins/mail/mailpluginimpl.cpp
+++ b/core/pim/today/plugins/mail/mailpluginimpl.cpp
@@ -31,16 +31,18 @@ MailPluginImpl::~MailPluginImpl() {
TodayPluginObject* MailPluginImpl::guiPart() {
return mailPlugin;
}
QRESULT MailPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) {
*iface = 0;
if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) {
*iface = this, (*iface)->addRef();
- }
+ }else
+ return QS_FALSE;
+
return QS_OK;
}
Q_EXPORT_INTERFACE() {
Q_CREATE_INSTANCE( MailPluginImpl );
}
diff --git a/core/pim/today/plugins/todolist/todopluginimpl.cpp b/core/pim/today/plugins/todolist/todopluginimpl.cpp
index c64113c..639587f 100644
--- a/core/pim/today/plugins/todolist/todopluginimpl.cpp
+++ b/core/pim/today/plugins/todolist/todopluginimpl.cpp
@@ -29,16 +29,18 @@ TodolistPluginImpl::~TodolistPluginImpl() {
TodayPluginObject* TodolistPluginImpl::guiPart() {
return todolistPlugin;
}
QRESULT TodolistPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) {
*iface = 0;
if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) {
*iface = this, (*iface)->addRef();
- }
+ }else
+ return QS_FALSE;
+
return QS_OK;
}
Q_EXPORT_INTERFACE() {
Q_CREATE_INSTANCE( TodolistPluginImpl );
}