summaryrefslogtreecommitdiff
path: root/include/opie/tododb.h
authorzecke <zecke>2002-03-19 19:14:32 (UTC)
committer zecke <zecke>2002-03-19 19:14:32 (UTC)
commitc23db0c35b77cc1656ac8822ca948e73c50e8ee6 (patch) (side-by-side diff)
treef1f61cd24074a9ce60561e13681c386e89088dc9 /include/opie/tododb.h
parent51762a579019d09fc1af83ef4838260493b534a7 (diff)
downloadopie-c23db0c35b77cc1656ac8822ca948e73c50e8ee6.zip
opie-c23db0c35b77cc1656ac8822ca948e73c50e8ee6.tar.gz
opie-c23db0c35b77cc1656ac8822ca948e73c50e8ee6.tar.bz2
Make multiple backends possible
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
@@ -6,11 +6,12 @@
#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,
const QDate &to,
@@ -27,11 +28,14 @@ class ToDoDB
void setFileName(const QString & );
QString fileName()const;
bool save();
+ ToDoResource *resource();
+ void setResource(ToDoResource* res);
private:
class ToDoDBPrivate;
ToDoDBPrivate *d;
QString m_fileName;
+ ToDoResource *m_res;
QValueList<ToDoEvent> m_todos;
void load();
};