summaryrefslogtreecommitdiff
path: root/core/pim/datebook2/managertemplate.h
authorzecke <zecke>2003-02-22 22:59:37 (UTC)
committer zecke <zecke>2003-02-22 22:59:37 (UTC)
commit47fc358e914aecd13c4cb3d9cb4b3f2ca1a93b6c (patch) (unidiff)
tree034af2ca8bb5ee3e0b751739f9f9a9fbcc241530 /core/pim/datebook2/managertemplate.h
parent00c146960fa7fd05dc56fac2a24b3d7968a4a772 (diff)
downloadopie-47fc358e914aecd13c4cb3d9cb4b3f2ca1a93b6c.zip
opie-47fc358e914aecd13c4cb3d9cb4b3f2ca1a93b6c.tar.gz
opie-47fc358e914aecd13c4cb3d9cb4b3f2ca1a93b6c.tar.bz2
import the new layout/design of datebook
sorry this was not put into a branch and once its done it'll replace datebook and be put into that subdir. but currently I want both versions available so I can test... So by design it'll feature Showing BirthDays Showing Due and OVerDue Todos Better AllDay handling Pinning Events to TimeZones Exceptions to Recurrence
Diffstat (limited to 'core/pim/datebook2/managertemplate.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook2/managertemplate.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/core/pim/datebook2/managertemplate.h b/core/pim/datebook2/managertemplate.h
new file mode 100644
index 0000000..668fda7
--- a/dev/null
+++ b/core/pim/datebook2/managertemplate.h
@@ -0,0 +1,36 @@
1#ifndef OPIE_DATE_BOOK_MANAGER_TEMPLATE_H
2#define OPIE_DATE_BOOK_MANAGER_TEMPLATE_H
3
4#include <qdialog.h>
5#include <qstring.h>
6
7namespace Datebook {
8 /**
9 * ManagerTemplate is a template which manages
10 * all kind of managers :)
11 */
12 template<class T>
13 class ManagerTemplate {
14 public:
15 ManagerTemplate();
16 ~ManagerTemplate();
17
18 virtual void add( const QString&, const T& t );
19 void remove( const QString& );
20 bool load();
21 bool save();
22
23 QStringList names();
24 T value(const QString&)const;
25
26 protected:
27 QMap<QString, T> m_map;
28
29 private:
30 virtual bool doSave() = 0;
31 virtual bool doLoad() = 0;
32
33 };
34}
35
36#endif