-rw-r--r-- | core/pim/today/plugins/addressbook/addressplugin.cpp | 18 | ||||
-rw-r--r-- | core/pim/today/plugins/addressbook/addressplugin.h | 6 | ||||
-rw-r--r-- | core/pim/today/plugins/addressbook/addresspluginwidget.h | 4 |
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 | |||
@@ -21,8 +21,8 @@ | |||
21 | #include "addressplugin.h" | 21 | #include "addressplugin.h" |
22 | #include "addresspluginconfig.h" | 22 | #include "addresspluginconfig.h" |
23 | #include "addresspluginwidget.h" | ||
24 | 23 | ||
25 | 24 | AddressBookPlugin::AddressBookPlugin(): | |
26 | AddressBookPlugin::AddressBookPlugin() { | 25 | m_abWidget( 0l ) |
26 | { | ||
27 | } | 27 | } |
28 | 28 | ||
@@ -35,5 +35,5 @@ QString AddressBookPlugin::pluginName() const { | |||
35 | 35 | ||
36 | double AddressBookPlugin::versionNumber() const { | 36 | double AddressBookPlugin::versionNumber() const { |
37 | return 0.1; | 37 | return 0.2; |
38 | } | 38 | } |
39 | 39 | ||
@@ -43,5 +43,6 @@ QString AddressBookPlugin::pixmapNameWidget() const { | |||
43 | 43 | ||
44 | QWidget* AddressBookPlugin::widget( QWidget *wid ) { | 44 | QWidget* AddressBookPlugin::widget( QWidget *wid ) { |
45 | return new AddressBookPluginWidget( wid, "AddressBook" ); | 45 | m_abWidget = new AddressBookPluginWidget( wid, "AddressBook" ); |
46 | return m_abWidget; | ||
46 | } | 47 | } |
47 | 48 | ||
@@ -60,4 +61,9 @@ QString AddressBookPlugin::appName() const { | |||
60 | 61 | ||
61 | bool AddressBookPlugin::excludeFromRefresh() const { | 62 | bool AddressBookPlugin::excludeFromRefresh() const { |
62 | return true; | 63 | return false; |
64 | } | ||
65 | |||
66 | void AddressBookPlugin::refresh() | ||
67 | { | ||
68 | m_abWidget->refresh( NULL ); | ||
63 | } | 69 | } |
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 | |||
@@ -26,4 +26,6 @@ | |||
26 | #include <opie/todayplugininterface.h> | 26 | #include <opie/todayplugininterface.h> |
27 | 27 | ||
28 | #include "addresspluginwidget.h" | ||
29 | |||
28 | class AddressBookPlugin : public TodayPluginObject { | 30 | class AddressBookPlugin : public TodayPluginObject { |
29 | 31 | ||
@@ -40,4 +42,8 @@ public: | |||
40 | QString appName() const; | 42 | QString appName() const; |
41 | bool excludeFromRefresh() const; | 43 | bool excludeFromRefresh() const; |
44 | void refresh(); | ||
45 | |||
46 | private: | ||
47 | AddressBookPluginWidget* m_abWidget; | ||
42 | }; | 48 | }; |
43 | 49 | ||
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 | |||
@@ -36,7 +36,9 @@ public: | |||
36 | ~AddressBookPluginWidget(); | 36 | ~AddressBookPluginWidget(); |
37 | 37 | ||
38 | public slots: | ||
39 | void refresh( const OContactAccess* db ); | ||
40 | |||
38 | protected slots: | 41 | protected slots: |
39 | void startAddressBook(); | 42 | void startAddressBook(); |
40 | void refresh( const OContactAccess* db ); | ||
41 | 43 | ||
42 | private: | 44 | private: |