summaryrefslogtreecommitdiff
path: root/libopie/todoevent.h
Side-by-side diff
Diffstat (limited to 'libopie/todoevent.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/todoevent.h15
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
@@ -4,2 +4,3 @@
+#include <qstringlist.h>
#include <qdatetime.h>
@@ -11,3 +12,3 @@ class ToDoEvent {
ToDoEvent( bool completed = false, int priority = NORMAL,
- const QString &category = QString::null,
+ const QStringList &category = QStringList(),
const QString &description = QString::null ,
@@ -18,3 +19,3 @@ class ToDoEvent {
int priority()const ;
- QString category()const;
+ QStringList allCategories()const;
QArray<int> categories() const;
@@ -26,4 +27,10 @@ class ToDoEvent {
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 );
@@ -50,3 +57,3 @@ class ToDoEvent {
int m_priority;
- QString m_category;
+ QStringList m_category;
QString m_desc;