-rw-r--r-- | libopie/tododb.h | 4 |
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 | |||
@@ -1,44 +1,44 @@ | |||
1 | 1 | ||
2 | #ifndef tododb_h | 2 | #ifndef tododb_h |
3 | #define tododb_h | 3 | #define tododb_h |
4 | 4 | ||
5 | #include <qvaluelist.h> | 5 | #include <qvaluelist.h> |
6 | 6 | ||
7 | #include <opie/todoevent.h> | 7 | #include <opie/todoevent.h> |
8 | 8 | ||
9 | class ToDoResource; | 9 | class ToDoResource; |
10 | class ToDoDB | 10 | class 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 |