summaryrefslogtreecommitdiff
path: root/libopie/tododb.h
authorzecke <zecke>2002-03-20 21:55:54 (UTC)
committer zecke <zecke>2002-03-20 21:55:54 (UTC)
commitc6e7f6e2ab8556064ec79fc9bbaa9e0398a7b344 (patch) (unidiff)
treef68d6a7c899e1ffe297af30002a3dc8b4f3762c6 /libopie/tododb.h
parent0d759d6e9c84a8597b6594bb7c5ad5d17621b966 (diff)
downloadopie-c6e7f6e2ab8556064ec79fc9bbaa9e0398a7b344.zip
opie-c6e7f6e2ab8556064ec79fc9bbaa9e0398a7b344.tar.gz
opie-c6e7f6e2ab8556064ec79fc9bbaa9e0398a7b344.tar.bz2
tododb vCal support
Diffstat (limited to 'libopie/tododb.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/tododb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopie/tododb.h b/libopie/tododb.h
index 945f343..e77a0f4 100644
--- a/libopie/tododb.h
+++ b/libopie/tododb.h
@@ -7,38 +7,38 @@
7#include <opie/todoevent.h> 7#include <opie/todoevent.h>
8 8
9class ToDoResource; 9class ToDoResource;
10class ToDoDB 10class ToDoDB
11{ 11{
12 public: 12 public:
13 // if no argument is supplied pick the default book 13 // if no argument is supplied pick the default book
14 ToDoDB(const QString &fileName = QString::null, ToDoResource* resource= 0 ); 14 ToDoDB(const QString &fileName = QString::null, ToDoResource* resource= 0 );
15 ~ToDoDB(); 15 ~ToDoDB();
16 QValueList<ToDoEvent> effectiveToDos(const QDate &from, 16 QValueList<ToDoEvent> effectiveToDos(const QDate &from,
17 const QDate &to, 17 const QDate &to,
18 bool includeNoDates = true); 18 bool includeNoDates = true);
19 QValueList<ToDoEvent> effectiveToDos(const QDate &start, bool includeNoDates = true ); 19 QValueList<ToDoEvent> effectiveToDos(const QDate &start, bool includeNoDates = true );
20 QValueList<ToDoEvent> rawToDos(); // all events 20 QValueList<ToDoEvent> rawToDos(); // all events
21 QValueList<ToDoEvent> overDue(); 21 QValueList<ToDoEvent> overDue();
22 22
23 void addEvent(const ToDoEvent &event ); 23 void addEvent(const ToDoEvent &event );
24 void editEvent(const ToDoEvent &editEvent ); 24 void editEvent(const ToDoEvent &editEvent );
25 void removeEvent(const ToDoEvent &event); 25 void removeEvent(const ToDoEvent &event);
26 26
27 void reload(); 27 void reload();
28 void setFileName(const QString & ); 28 void setFileName(const QString & );
29 QString fileName()const; 29 QString fileName()const;
30 bool save(); 30 bool save();
31 ToDoResource *resource(); 31 ToDoResource *resource();
32 void setResource(ToDoResource* res); 32 void setResource(ToDoResource* res);
33 33
34 private: 34 private:
35 class ToDoDBPrivate; 35 class ToDoDBPrivate;
36 ToDoDBPrivate *d; 36 ToDoDBPrivate *d;
37 QString m_fileName; 37 QString m_fileName;
38 ToDoResource *m_res; 38 ToDoResource *m_res;
39 QValueList<ToDoEvent> m_todos; 39 QValueList<ToDoEvent> m_todos;
40 void load(); 40 void load();
41}; 41};
42 42
43 43
44#endif 44#endif