00001 /* 00002 * todopluginimpl.cpp 00003 * 00004 * copyright : (c) 2002, 2003, 2004 by Maximilian Reiß 00005 * email : harlekin@handhelds.org 00006 * 00007 */ 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 00017 #include "todoplugin.h" 00018 #include "todopluginimpl.h" 00019 00020 TodolistPluginImpl::TodolistPluginImpl() { 00021 todolistPlugin = new TodolistPlugin(); 00022 } 00023 00024 TodolistPluginImpl::~TodolistPluginImpl() { 00025 delete todolistPlugin; 00026 } 00027 00028 00029 TodayPluginObject* TodolistPluginImpl::guiPart() { 00030 return todolistPlugin; 00031 } 00032 00033 QRESULT TodolistPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { 00034 *iface = 0; 00035 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { 00036 *iface = this, (*iface)->addRef(); 00037 }else 00038 return QS_FALSE; 00039 00040 return QS_OK; 00041 00042 } 00043 00044 Q_EXPORT_INTERFACE() { 00045 Q_CREATE_INSTANCE( TodolistPluginImpl ); 00046 }
1.4.2