summaryrefslogtreecommitdiff
path: root/core/pim/today/plugins/todolist/todopluginimpl.cpp
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 /core/pim/today/plugins/todolist/todopluginimpl.cpp
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 (limited to 'core/pim/today/plugins/todolist/todopluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/todolist/todopluginimpl.cpp4
1 files changed, 3 insertions, 1 deletions
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
@@ -1,44 +1,46 @@
/*
* todopluginimpl.cpp
*
* copyright : (c) 2002 by Maximilian Reiß
* email : harlekin@handhelds.org
*
*/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "todoplugin.h"
#include "todopluginimpl.h"
TodolistPluginImpl::TodolistPluginImpl() {
todolistPlugin = new TodolistPlugin();
}
TodolistPluginImpl::~TodolistPluginImpl() {
delete todolistPlugin;
}
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 );
}