From 011c84e728826d6f90ff6b15198308f3f9b9135a Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 20 Mar 2002 21:34:11 +0000 Subject: - these files have been moved back to libopie/ (copied directly on the CVS server to preserve history) . They will be symlinked into this directory from there --- (limited to 'include/opie/todoevent.h') diff --git a/include/opie/todoevent.h b/include/opie/todoevent.h deleted file mode 100644 index 79522b2..0000000 --- a/include/opie/todoevent.h +++ b/dev/null @@ -1,53 +0,0 @@ - -#ifndef todoevent_h -#define todoevent_h - -#include - -class ToDoEvent { - friend class ToDoDB; - public: - enum Priority { VERYHIGH=1, HIGH, NORMAL, LOW, VERYLOW }; - ToDoEvent( bool completed = false, int priority = NORMAL, - const QString &category = QString::null, - const QString &description = QString::null , - bool hasDate = false, QDate date = QDate::currentDate(), int uid = -1 ); - bool isCompleted() const; - bool hasDate() const; - int priority()const ; - QString category()const; - QDate date()const; - QString description()const; - - int uid()const { return m_uid;}; - void setCompleted(bool completed ); - void setHasDate( bool hasDate ); - // if the category doesn't exist we will create it - void setCategory( const QString &category ); - void setPriority(int priority ); - void setDate( QDate date ); - void setDescription(const QString& ); - bool isOverdue(); - - void setUid(int id) {m_uid = id; }; - bool operator<(const ToDoEvent &toDoEvent )const; - bool operator<=(const ToDoEvent &toDoEvent )const; - bool operator!=(const ToDoEvent &toDoEvent )const { return !(*this == toDoEvent); }; - bool operator>(const ToDoEvent &toDoEvent )const; - bool operator>=(const ToDoEvent &toDoEvent)const; - bool operator==(const ToDoEvent &toDoEvent )const; - ToDoEvent &operator=(const ToDoEvent &toDoEvent ); - private: - class ToDoEventPrivate; - ToDoEventPrivate *d; - QDate m_date; - bool m_isCompleted:1; - bool m_hasDate:1; - int m_priority; - QString m_category; - QString m_desc; - int m_uid; -}; - - -#endif -- cgit v0.9.0.2