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