summaryrefslogtreecommitdiff
path: root/libopie/tododb.h
authorzecke <zecke>2003-02-21 16:52:49 (UTC)
committer zecke <zecke>2003-02-21 16:52:49 (UTC)
commit0bb9d0f9e7da80f0ae3b91d4ebbb7aab4d2b9df7 (patch) (side-by-side diff)
treef3ce9c9441a1073762f3e0c61cc85f0d5a1fd81d /libopie/tododb.h
parenta298235aa1489937e7657079e6352adfc8746acf (diff)
downloadopie-0bb9d0f9e7da80f0ae3b91d4ebbb7aab4d2b9df7.zip
opie-0bb9d0f9e7da80f0ae3b91d4ebbb7aab4d2b9df7.tar.gz
opie-0bb9d0f9e7da80f0ae3b91d4ebbb7aab4d2b9df7.tar.bz2
-Remove old Todo classes they're deprecated and today I already using the
new API -Guard against self assignment in OTodo -Add test apps for OPIM -Opiefied Event classes -Added TimeZone handling and pinning of TimeZones to OEvent -Adjust ORecur and the widget to better timezone behaviour
Diffstat (limited to 'libopie/tododb.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/tododb.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/libopie/tododb.h b/libopie/tododb.h
deleted file mode 100644
index 7fd9f96..0000000
--- a/libopie/tododb.h
+++ b/dev/null
@@ -1,46 +0,0 @@
-
-#ifndef tododb_h
-#define tododb_h
-
-#include <qvaluelist.h>
-
-#include <opie/todoevent.h>
-
-class ToDoResource;
-class ToDoDB
-{
- public:
- // if no argument is supplied pick the default book
- ToDoDB(const QString &fileName = QString::null, ToDoResource* resource= 0 );
- ~ToDoDB();
- QValueList<ToDoEvent> effectiveToDos(const QDate &from,
- const QDate &to,
- bool includeNoDates = true);
- QValueList<ToDoEvent> effectiveToDos(const QDate &start, bool includeNoDates = true );
- QValueList<ToDoEvent> rawToDos(); // all events
- QValueList<ToDoEvent> overDue();
-
- void addEvent(const ToDoEvent &event );
- void editEvent(const ToDoEvent &editEvent );
- void removeEvent(const ToDoEvent &event);
- void replaceEvent(const ToDoEvent &event );
- // QValueList<ToDoEvents will overwrite existing ones no smart code at all ;)
- void mergeWith(const QValueList<ToDoEvent>& );
- void reload();
- 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();
-};
-
-
-#endif