Diffstat (limited to 'core/pim/today/plugins/addressbook/addressplugin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/plugins/addressbook/addressplugin.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/core/pim/today/plugins/addressbook/addressplugin.cpp b/core/pim/today/plugins/addressbook/addressplugin.cpp index b78a54c..cb1683b 100644 --- a/core/pim/today/plugins/addressbook/addressplugin.cpp +++ b/core/pim/today/plugins/addressbook/addressplugin.cpp @@ -21,8 +21,8 @@ #include "addressplugin.h" #include "addresspluginconfig.h" -#include "addresspluginwidget.h" - -AddressBookPlugin::AddressBookPlugin() { +AddressBookPlugin::AddressBookPlugin(): + m_abWidget( 0l ) +{ } @@ -35,5 +35,5 @@ QString AddressBookPlugin::pluginName() const { double AddressBookPlugin::versionNumber() const { - return 0.1; + return 0.2; } @@ -43,5 +43,6 @@ QString AddressBookPlugin::pixmapNameWidget() const { QWidget* AddressBookPlugin::widget( QWidget *wid ) { - return new AddressBookPluginWidget( wid, "AddressBook" ); + m_abWidget = new AddressBookPluginWidget( wid, "AddressBook" ); + return m_abWidget; } @@ -60,4 +61,9 @@ QString AddressBookPlugin::appName() const { bool AddressBookPlugin::excludeFromRefresh() const { - return true; + return false; +} + +void AddressBookPlugin::refresh() +{ + m_abWidget->refresh( NULL ); } |