blob: ee8aaaf83a7e73ca82a8d3b8bb965c5ad4be3cdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef OPIE_TODO_TEMPLATE_H
#define OPIE_TODO_TEMPLATE_H
#include <opie2/opimtodo.h>
#include <qstring.h>
#include <qmap.h>
using namespace Opie;
namespace Todo {
class TemplateManager {
public:
TemplateManager();
~TemplateManager();
void load();
void save();
QStringList templates()const;
OPimTodo templateEvent( const QString& templateName );
/* also replaces one */
void addEvent( const QString&, const OPimTodo& );
void removeEvent( const QString& );
private:
QString m_path;
QMap<QString, OPimTodo> m_templates;
};
};
#endif
|