summaryrefslogtreecommitdiff
path: root/libopie/tododb.h
authorharlekin <harlekin>2002-03-18 21:24:16 (UTC)
committer harlekin <harlekin>2002-03-18 21:24:16 (UTC)
commit0a553fa7c46beb00d2a852ecf61233569b5a5e4e (patch) (unidiff)
treef13c2b8ebb57c064a51ac4e132b2a030338263b8 /libopie/tododb.h
parent29628f9eaa9f2436d8f590c014bb41d35c8cf65f (diff)
downloadopie-0a553fa7c46beb00d2a852ecf61233569b5a5e4e.zip
opie-0a553fa7c46beb00d2a852ecf61233569b5a5e4e.tar.gz
opie-0a553fa7c46beb00d2a852ecf61233569b5a5e4e.tar.bz2
tododb - simular to datebookdb but for todos, initial import
Diffstat (limited to 'libopie/tododb.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/tododb.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/libopie/tododb.h b/libopie/tododb.h
new file mode 100644
index 0000000..6478363
--- a/dev/null
+++ b/libopie/tododb.h
@@ -0,0 +1,40 @@
1
2#ifndef tododb_h
3#define tododb_h
4
5#include <qvaluelist.h>
6
7#include <opie/todoevent.h>
8
9class ToDoDB
10{
11 public:
12 // if no argument is supplied pick the default book
13 ToDoDB(const QString &fileName = QString::null );
14 ~ToDoDB();
15 QValueList<ToDoEvent> effectiveToDos(const QDate &from,
16 const QDate &to,
17 bool includeNoDates = true);
18 QValueList<ToDoEvent> effectiveToDos(const QDate &start, bool includeNoDates = true );
19 QValueList<ToDoEvent> rawToDos(); // all events
20 QValueList<ToDoEvent> overDue();
21
22 void addEvent(const ToDoEvent &event );
23 void editEvent(const ToDoEvent &editEvent );
24 void removeEvent(const ToDoEvent &event);
25
26 void reload();
27 void setFileName(const QString & );
28 QString fileName()const;
29 bool save();
30
31 private:
32 class ToDoDBPrivate;
33 ToDoDBPrivate *d;
34 QString m_fileName;
35 QValueList<ToDoEvent> m_todos;
36 void load();
37};
38
39
40#endif