00001 /* 00002 * examplepluginimpl.cpp 00003 * 00004 * email : harlekin@handhelds.org 00005 * 00006 */ 00007 00008 00009 00010 #include "exampleplugin.h" 00011 #include "examplepluginimpl.h" 00012 00013 ExamplePluginImpl::ExamplePluginImpl() { 00014 examplePlugin = new ExamplePlugin(); 00015 } 00016 00017 ExamplePluginImpl::~ExamplePluginImpl() { 00018 delete examplePlugin; 00019 } 00020 00021 00022 TodayPluginObject* ExamplePluginImpl::guiPart() { 00023 return examplePlugin; 00024 } 00025 00026 QRESULT ExamplePluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { 00027 *iface = 0; 00028 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { 00029 *iface = this, (*iface)->addRef(); 00030 }else 00031 return QS_FALSE; 00032 00033 return QS_OK; 00034 00035 } 00036 00037 Q_EXPORT_INTERFACE() { 00038 Q_CREATE_INSTANCE( ExamplePluginImpl ); 00039 }
1.4.2