summaryrefslogtreecommitdiff
authoreilers <eilers>2003-03-03 15:40:14 (UTC)
committer eilers <eilers>2003-03-03 15:40:14 (UTC)
commitfa8d1cc0721068b814f152d60f853600e42ef6e3 (patch) (unidiff)
tree53241d41ba43e79b761719ac24e5026ce824c8d0
parent22d353f6b27e06d02f652c064083ad41ab5bf977 (diff)
downloadopie-fa8d1cc0721068b814f152d60f853600e42ef6e3.zip
opie-fa8d1cc0721068b814f152d60f853600e42ef6e3.tar.gz
opie-fa8d1cc0721068b814f152d60f853600e42ef6e3.tar.bz2
Added refresh. Otherwise it is not updating correctly if today is running
in fastload-mode.. Is there any possibility to get a signal after resume ?
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
@@ -20,10 +20,10 @@
20 20
21#include "addressplugin.h" 21#include "addressplugin.h"
22#include "addresspluginconfig.h" 22#include "addresspluginconfig.h"
23#include "addresspluginwidget.h"
24 23
25 24AddressBookPlugin::AddressBookPlugin():
26AddressBookPlugin::AddressBookPlugin() { 25 m_abWidget( 0l )
26{
27} 27}
28 28
29AddressBookPlugin::~AddressBookPlugin() { 29AddressBookPlugin::~AddressBookPlugin() {
@@ -34,7 +34,7 @@ QString AddressBookPlugin::pluginName() const {
34} 34}
35 35
36double AddressBookPlugin::versionNumber() const { 36double AddressBookPlugin::versionNumber() const {
37 return 0.1; 37 return 0.2;
38} 38}
39 39
40QString AddressBookPlugin::pixmapNameWidget() const { 40QString AddressBookPlugin::pixmapNameWidget() const {
@@ -42,7 +42,8 @@ QString AddressBookPlugin::pixmapNameWidget() const {
42} 42}
43 43
44QWidget* AddressBookPlugin::widget( QWidget *wid ) { 44QWidget* 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
48QString AddressBookPlugin::pixmapNameConfig() const { 49QString AddressBookPlugin::pixmapNameConfig() const {
@@ -59,5 +60,10 @@ QString AddressBookPlugin::appName() const {
59 60
60 61
61bool AddressBookPlugin::excludeFromRefresh() const { 62bool AddressBookPlugin::excludeFromRefresh() const {
62 return true; 63 return false;
64}
65
66void 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
@@ -25,6 +25,8 @@
25#include <opie/oclickablelabel.h> 25#include <opie/oclickablelabel.h>
26#include <opie/todayplugininterface.h> 26#include <opie/todayplugininterface.h>
27 27
28#include "addresspluginwidget.h"
29
28class AddressBookPlugin : public TodayPluginObject { 30class AddressBookPlugin : public TodayPluginObject {
29 31
30public: 32public:
@@ -39,6 +41,10 @@ public:
39 TodayConfigWidget* configWidget(QWidget *); 41 TodayConfigWidget* configWidget(QWidget *);
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
44#endif 50#endif
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
@@ -35,9 +35,11 @@ public:
35 AddressBookPluginWidget( QWidget *parent, const char *name ); 35 AddressBookPluginWidget( QWidget *parent, const char *name );
36 ~AddressBookPluginWidget(); 36 ~AddressBookPluginWidget();
37 37
38public slots:
39 void refresh( const OContactAccess* db );
40
38protected slots: 41protected slots:
39 void startAddressBook(); 42 void startAddressBook();
40 void refresh( const OContactAccess* db );
41 43
42private: 44private:
43 OClickableLabel* addressLabel; 45 OClickableLabel* addressLabel;