00001 /* 00002 * addressplugin.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 00020 00021 #include "addressplugin.h" 00022 #include "addresspluginconfig.h" 00023 00024 AddressBookPlugin::AddressBookPlugin(): 00025 m_abWidget( 0l ) 00026 { 00027 } 00028 00029 AddressBookPlugin::~AddressBookPlugin() { 00030 } 00031 00032 QString AddressBookPlugin::pluginName() const { 00033 return QObject::tr( "AddressBook plugin" ); 00034 } 00035 00036 double AddressBookPlugin::versionNumber() const { 00037 return 0.3; 00038 } 00039 00040 QString AddressBookPlugin::pixmapNameWidget() const { 00041 return "addressbook/AddressBook"; 00042 } 00043 00044 QWidget* AddressBookPlugin::widget( QWidget *wid ) { 00045 m_abWidget = new AddressBookPluginWidget( wid, "AddressBook" ); 00046 return m_abWidget; 00047 } 00048 00049 QString AddressBookPlugin::pixmapNameConfig() const { 00050 return "addressbook/AddressBook"; 00051 } 00052 00053 TodayConfigWidget* AddressBookPlugin::configWidget( QWidget* wid ) { 00054 return new AddressBookPluginConfig( wid , "AddressBook" ); 00055 } 00056 00057 QString AddressBookPlugin::appName() const { 00058 return "addressbook"; 00059 } 00060 00061 00062 bool AddressBookPlugin::excludeFromRefresh() const { 00063 return false; 00064 } 00065 00066 void AddressBookPlugin::refresh() 00067 { 00068 if(m_abWidget) 00069 m_abWidget->refresh( 0l ); 00070 } 00071 00072 void AddressBookPlugin::reinitialize() 00073 { 00074 if(m_abWidget) 00075 m_abWidget->reinitialize(); 00076 }
1.4.2