From 55dd11ddae09bfc4907399c473f0387c135fdae6 Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 20 Sep 2002 17:28:20 +0000 Subject: OTodo know is the first implementation of OPimRecord --- (limited to 'libopie2/opiepim/otodo.h') diff --git a/libopie2/opiepim/otodo.h b/libopie2/opiepim/otodo.h index 429108a..e1729db 100644 --- a/libopie2/opiepim/otodo.h +++ b/libopie2/opiepim/otodo.h @@ -18,7 +18,7 @@ class OTodo : public OPimRecord { public: - typedef QValueList ValueList; + typedef QValueList ValueList; enum RecordFields { Uid = Qtopia::UID_ID, Category = Qtopia::CATEGORY_ID, @@ -118,6 +118,13 @@ public: */ QString toRichText() const; + /** + * reimplementation + */ + QString type()const; + QString toShortText()const; + QMap toExtraMap()const; + QString recordField(int id )const; /** * returns a list of apps which have related items @@ -183,23 +190,22 @@ public: bool operator>(const OTodo &toDoEvent )const; bool operator>=(const OTodo &toDoEvent)const; bool operator==(const OTodo &toDoEvent )const; - ToDoEvent &operator=(const OTodo &toDoEvent ); + OTodo &operator=(const OTodo &toDoEvent ); private: class OTodoPrivate; - struct OTodoEventData; + struct OTodoData; void deref(); void changeOrModify(); void copy( OTodoData* src, OTodoData* dest ); - ToDoEventPrivate *d; - ToDoEventData *data; + OTodoPrivate *d; + OTodoData *data; - static Qtopia::UidGen m_gen; -}; - inline bool ToDoEvent::operator!=(const ToDoEvent &toDoEvent )const { - return !(*this == toDoEvent); - } }; +inline bool OTodo::operator!=(const OTodo &toDoEvent )const { + return !(*this == toDoEvent); +} + #endif -- cgit v0.9.0.2