author | eilers <eilers> | 2003-01-03 13:15:30 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-01-03 13:15:30 (UTC) |
commit | 19ee7f3b3e06fcf434dcd6a104e912b12220af3b (patch) (unidiff) | |
tree | bf813eecb39d52da95591b561e9bd1c3cc329432 /core/pim/today/plugins/addressbook/addresspluginwidget.h | |
parent | 54ebecbfd86a9ce6782dc55dad7ae15c73adef21 (diff) | |
download | opie-19ee7f3b3e06fcf434dcd6a104e912b12220af3b.zip opie-19ee7f3b3e06fcf434dcd6a104e912b12220af3b.tar.gz opie-19ee7f3b3e06fcf434dcd6a104e912b12220af3b.tar.bz2 |
NEW: This plugin shows the next birthdays and anniversaries for the next
n days !
Diffstat (limited to 'core/pim/today/plugins/addressbook/addresspluginwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/plugins/addressbook/addresspluginwidget.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.h b/core/pim/today/plugins/addressbook/addresspluginwidget.h new file mode 100644 index 0000000..75e223a --- a/dev/null +++ b/core/pim/today/plugins/addressbook/addresspluginwidget.h | |||
@@ -0,0 +1,57 @@ | |||
1 | /* | ||
2 | * addresspluginwidget.h | ||
3 | * | ||
4 | * copyright : (c) 2003 by Stefan Eilers | ||
5 | * email : eilers.stefan@epost.de | ||
6 | * | ||
7 | * This implementation was derived from the todolist plugin implementation | ||
8 | * | ||
9 | */ | ||
10 | /*************************************************************************** | ||
11 | * * | ||
12 | * This program is free software; you can redistribute it and/or modify * | ||
13 | * it under the terms of the GNU General Public License as published by * | ||
14 | * the Free Software Foundation; either version 2 of the License, or * | ||
15 | * (at your option) any later version. * | ||
16 | * * | ||
17 | ***************************************************************************/ | ||
18 | |||
19 | #ifndef ADDRESSBOOK_PLUGIN_WIDGET_H | ||
20 | #define ADDRESSBOOK_PLUGIN_WIDGET_H | ||
21 | |||
22 | #include <qstring.h> | ||
23 | #include <qwidget.h> | ||
24 | #include <qlayout.h> | ||
25 | |||
26 | #include <opie/ocontactaccess.h> | ||
27 | #include <opie/oclickablelabel.h> | ||
28 | |||
29 | |||
30 | class AddressBookPluginWidget : public QWidget { | ||
31 | |||
32 | Q_OBJECT | ||
33 | |||
34 | public: | ||
35 | AddressBookPluginWidget( QWidget *parent, const char *name ); | ||
36 | ~AddressBookPluginWidget(); | ||
37 | |||
38 | protected slots: | ||
39 | void startAddressBook(); | ||
40 | void refresh( const OContactAccess* db ); | ||
41 | |||
42 | private: | ||
43 | OClickableLabel* addressLabel; | ||
44 | QVBoxLayout* layoutTodo; | ||
45 | OContactAccess * m_contactdb; | ||
46 | |||
47 | OContactAccess::List m_list; | ||
48 | OContactAccess::List::Iterator m_it; | ||
49 | |||
50 | void readConfig(); | ||
51 | void getAddress(); | ||
52 | int m_maxLinesTask; | ||
53 | int m_maxCharClip; | ||
54 | int m_daysLookAhead; | ||
55 | }; | ||
56 | |||
57 | #endif | ||