Diffstat (limited to 'core/pim/todo/todotemplatemanager.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/todo/todotemplatemanager.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/core/pim/todo/todotemplatemanager.h b/core/pim/todo/todotemplatemanager.h new file mode 100644 index 0000000..387ced1 --- a/dev/null +++ b/core/pim/todo/todotemplatemanager.h | |||
@@ -0,0 +1,32 @@ | |||
1 | #ifndef OPIE_TODO_TEMPLATE_H | ||
2 | #define OPIE_TODO_TEMPLATE_H | ||
3 | |||
4 | #include <qstring.h> | ||
5 | #include <qmap.h> | ||
6 | |||
7 | #include <opie/otodo.h> | ||
8 | |||
9 | |||
10 | namespace Todo { | ||
11 | class TemplateManager { | ||
12 | public: | ||
13 | TemplateManager(); | ||
14 | ~TemplateManager(); | ||
15 | void load(); | ||
16 | void save(); | ||
17 | QStringList templates()const; | ||
18 | OTodo templateEvent( const QString& templateName ); | ||
19 | |||
20 | /* also replaces one */ | ||
21 | void addEvent( const QString&, const OTodo& ); | ||
22 | void removeEvent( const QString& ); | ||
23 | private: | ||
24 | QString m_path; | ||
25 | QMap<QString, OTodo> m_templates; | ||
26 | |||
27 | |||
28 | |||
29 | }; | ||
30 | }; | ||
31 | |||
32 | #endif | ||