author | eilers <eilers> | 2003-03-03 15:40:14 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-03-03 15:40:14 (UTC) |
commit | fa8d1cc0721068b814f152d60f853600e42ef6e3 (patch) (unidiff) | |
tree | 53241d41ba43e79b761719ac24e5026ce824c8d0 /core/pim/today/plugins/addressbook/addressplugin.cpp | |
parent | 22d353f6b27e06d02f652c064083ad41ab5bf977 (diff) | |
download | opie-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 (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 | |||
@@ -17,35 +17,36 @@ | |||
17 | ***************************************************************************/ | 17 | ***************************************************************************/ |
18 | 18 | ||
19 | 19 | ||
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 | 24 | AddressBookPlugin::AddressBookPlugin(): | |
26 | AddressBookPlugin::AddressBookPlugin() { | 25 | m_abWidget( 0l ) |
26 | { | ||
27 | } | 27 | } |
28 | 28 | ||
29 | AddressBookPlugin::~AddressBookPlugin() { | 29 | AddressBookPlugin::~AddressBookPlugin() { |
30 | } | 30 | } |
31 | 31 | ||
32 | QString AddressBookPlugin::pluginName() const { | 32 | QString AddressBookPlugin::pluginName() const { |
33 | return QObject::tr( "AddressBook plugin" ); | 33 | return QObject::tr( "AddressBook plugin" ); |
34 | } | 34 | } |
35 | 35 | ||
36 | double AddressBookPlugin::versionNumber() const { | 36 | double AddressBookPlugin::versionNumber() const { |
37 | return 0.1; | 37 | return 0.2; |
38 | } | 38 | } |
39 | 39 | ||
40 | QString AddressBookPlugin::pixmapNameWidget() const { | 40 | QString AddressBookPlugin::pixmapNameWidget() const { |
41 | return "AddressBook"; | 41 | return "AddressBook"; |
42 | } | 42 | } |
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 | ||
48 | QString AddressBookPlugin::pixmapNameConfig() const { | 49 | QString AddressBookPlugin::pixmapNameConfig() const { |
49 | return "AddressBook"; | 50 | return "AddressBook"; |
50 | } | 51 | } |
51 | 52 | ||
@@ -56,8 +57,13 @@ TodayConfigWidget* AddressBookPlugin::configWidget( QWidget* wid ) { | |||
56 | QString AddressBookPlugin::appName() const { | 57 | QString AddressBookPlugin::appName() const { |
57 | return "addressbook"; | 58 | return "addressbook"; |
58 | } | 59 | } |
59 | 60 | ||
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 | } |