00001 /* 00002 * datebookpluginimpl.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 "datebookplugin.h" 00018 #include "datebookpluginimpl.h" 00019 00020 DatebookPluginImpl::DatebookPluginImpl() { 00021 datebookPlugin = new DatebookPlugin(); 00022 } 00023 00024 DatebookPluginImpl::~DatebookPluginImpl() { 00025 delete datebookPlugin; 00026 } 00027 00028 TodayPluginObject* DatebookPluginImpl::guiPart() { 00029 return datebookPlugin; 00030 } 00031 00032 QRESULT DatebookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { 00033 *iface = 0; 00034 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { 00035 *iface = this, (*iface)->addRef(); 00036 }else 00037 return QS_FALSE; 00038 00039 return QS_OK; 00040 00041 } 00042 00043 Q_EXPORT_INTERFACE() { 00044 Q_CREATE_INSTANCE( DatebookPluginImpl ); 00045 }
1.4.2