summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/addressbook/addressplugin.cpp18
-rw-r--r--core/pim/today/plugins/addressbook/addressplugin.h6
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginwidget.h4
3 files changed, 21 insertions, 7 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
@@ -22,6 +22,6 @@
#include "addresspluginconfig.h"
-#include "addresspluginwidget.h"
-
-AddressBookPlugin::AddressBookPlugin() {
+AddressBookPlugin::AddressBookPlugin():
+ m_abWidget( 0l )
+{
}
@@ -36,3 +36,3 @@ QString AddressBookPlugin::pluginName() const {
double AddressBookPlugin::versionNumber() const {
- return 0.1;
+ return 0.2;
}
@@ -44,3 +44,4 @@ QString AddressBookPlugin::pixmapNameWidget() const {
QWidget* AddressBookPlugin::widget( QWidget *wid ) {
- return new AddressBookPluginWidget( wid, "AddressBook" );
+ m_abWidget = new AddressBookPluginWidget( wid, "AddressBook" );
+ return m_abWidget;
}
@@ -61,3 +62,8 @@ QString AddressBookPlugin::appName() const {
bool AddressBookPlugin::excludeFromRefresh() const {
- return true;
+ return false;
+}
+
+void AddressBookPlugin::refresh()
+{
+ m_abWidget->refresh( NULL );
}
diff --git a/core/pim/today/plugins/addressbook/addressplugin.h b/core/pim/today/plugins/addressbook/addressplugin.h
index 5b655f5..04e4faf 100644
--- a/core/pim/today/plugins/addressbook/addressplugin.h
+++ b/core/pim/today/plugins/addressbook/addressplugin.h
@@ -27,2 +27,4 @@
+#include "addresspluginwidget.h"
+
class AddressBookPlugin : public TodayPluginObject {
@@ -41,2 +43,6 @@ public:
bool excludeFromRefresh() const;
+ void refresh();
+
+ private:
+ AddressBookPluginWidget* m_abWidget;
};
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.h b/core/pim/today/plugins/addressbook/addresspluginwidget.h
index 89ffe7f..63f2a2b 100644
--- a/core/pim/today/plugins/addressbook/addresspluginwidget.h
+++ b/core/pim/today/plugins/addressbook/addresspluginwidget.h
@@ -37,5 +37,7 @@ public:
+public slots:
+ void refresh( const OContactAccess* db );
+
protected slots:
void startAddressBook();
- void refresh( const OContactAccess* db );