summaryrefslogtreecommitdiff
path: root/include/opie/tododb.h
authorsimon <simon>2002-03-20 21:34:11 (UTC)
committer simon <simon>2002-03-20 21:34:11 (UTC)
commit011c84e728826d6f90ff6b15198308f3f9b9135a (patch) (unidiff)
tree17a732f43b79c38a310c84193f4b262082370b76 /include/opie/tododb.h
parenta209ccfd83698cf14ec7302275f7425f5023d81f (diff)
downloadopie-011c84e728826d6f90ff6b15198308f3f9b9135a.zip
opie-011c84e728826d6f90ff6b15198308f3f9b9135a.tar.gz
opie-011c84e728826d6f90ff6b15198308f3f9b9135a.tar.bz2
- these files have been moved back to libopie/ (copied directly on the CVS
server to preserve history) . They will be symlinked into this directory from there
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