summaryrefslogtreecommitdiff
path: root/include/opie/tododb.h
Unidiff
Diffstat (limited to 'include/opie/tododb.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/opie/tododb.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/include/opie/tododb.h b/include/opie/tododb.h
deleted file mode 100644
index 945f343..0000000
--- a/include/opie/tododb.h
+++ b/dev/null
@@ -1,44 +0,0 @@
1
2#ifndef tododb_h
3#define tododb_h
4
5#include <qvaluelist.h>
6
7#include <opie/todoevent.h>
8
9class ToDoResource;
10class ToDoDB
11{
12 public:
13 // if no argument is supplied pick the default book
14 ToDoDB(const QString &fileName = QString::null, ToDoResource* resource= 0 );
15 ~ToDoDB();
16 QValueList<ToDoEvent> effectiveToDos(const QDate &from,
17 const QDate &to,
18 bool includeNoDates = true);
19 QValueList<ToDoEvent> effectiveToDos(const QDate &start, bool includeNoDates = true );
20 QValueList<ToDoEvent> rawToDos(); // all events
21 QValueList<ToDoEvent> overDue();
22
23 void addEvent(const ToDoEvent &event );
24 void editEvent(const ToDoEvent &editEvent );
25 void removeEvent(const ToDoEvent &event);
26
27 void reload();
28 void setFileName(const QString & );
29 QString fileName()const;
30 bool save();
31 ToDoResource *resource();
32 void setResource(ToDoResource* res);
33
34 private:
35 class ToDoDBPrivate;
36 ToDoDBPrivate *d;
37 QString m_fileName;
38 ToDoResource *m_res;
39 QValueList<ToDoEvent> m_todos;
40 void load();
41};
42
43
44#endif