summaryrefslogtreecommitdiff
path: root/include/opie/tododb.h
Side-by-side diff
Diffstat (limited to 'include/opie/tododb.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/opie/tododb.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/opie/tododb.h b/include/opie/tododb.h
index 6478363..945f343 100644
--- a/include/opie/tododb.h
+++ b/include/opie/tododb.h
@@ -7,9 +7,10 @@
#include <opie/todoevent.h>
+class ToDoResource;
class ToDoDB
{
public:
// if no argument is supplied pick the default book
- ToDoDB(const QString &fileName = QString::null );
+ ToDoDB(const QString &fileName = QString::null, ToDoResource* resource= 0 );
~ToDoDB();
QValueList<ToDoEvent> effectiveToDos(const QDate &from,
@@ -28,4 +29,6 @@ class ToDoDB
QString fileName()const;
bool save();
+ ToDoResource *resource();
+ void setResource(ToDoResource* res);
private:
@@ -33,4 +36,5 @@ class ToDoDB
ToDoDBPrivate *d;
QString m_fileName;
+ ToDoResource *m_res;
QValueList<ToDoEvent> m_todos;
void load();