-rw-r--r-- | libopie/todoevent.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/libopie/todoevent.h b/libopie/todoevent.h index ac996a1..0d477fd 100644 --- a/libopie/todoevent.h +++ b/libopie/todoevent.h @@ -3,4 +3,5 @@ #define todoevent_h +#include <qstringlist.h> #include <qdatetime.h> @@ -10,5 +11,5 @@ class ToDoEvent { enum Priority { VERYHIGH=1, HIGH, NORMAL, LOW, VERYLOW }; ToDoEvent( bool completed = false, int priority = NORMAL, - const QString &category = QString::null, + const QStringList &category = QStringList(), const QString &description = QString::null , bool hasDate = false, QDate date = QDate::currentDate(), int uid = -1 ); @@ -17,5 +18,5 @@ class ToDoEvent { bool hasDate() const; int priority()const ; - QString category()const; + QStringList allCategories()const; QArray<int> categories() const; QDate date()const; @@ -25,6 +26,12 @@ class ToDoEvent { void setCompleted(bool completed ); void setHasDate( bool hasDate ); - // if the category doesn't exist we will create it + // if the category doesn't exist we will create it + // this sets the the Category after this call category will be the only category void setCategory( const QString &category ); + // adds a category to the Categories of this event + void insertCategory(const QString &category ); + void clearCategories(); + void setCategories(const QStringList& ); + void setPriority(int priority ); void setDate( QDate date ); @@ -49,5 +56,5 @@ class ToDoEvent { bool m_hasDate:1; int m_priority; - QString m_category; + QStringList m_category; QString m_desc; int m_uid; |