summaryrefslogtreecommitdiff
path: root/libopie/todoevent.h
Unidiff
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 @@
4 4
5#include <qstringlist.h>
5#include <qdatetime.h> 6#include <qdatetime.h>
@@ -11,3 +12,3 @@ class ToDoEvent {
11 ToDoEvent( bool completed = false, int priority = NORMAL, 12 ToDoEvent( bool completed = false, int priority = NORMAL,
12 const QString &category = QString::null, 13 const QStringList &category = QStringList(),
13 const QString &description = QString::null , 14 const QString &description = QString::null ,
@@ -18,3 +19,3 @@ class ToDoEvent {
18 int priority()const ; 19 int priority()const ;
19 QString category()const; 20 QStringList allCategories()const;
20 QArray<int> categories() const; 21 QArray<int> categories() const;
@@ -26,4 +27,10 @@ class ToDoEvent {
26 void setHasDate( bool hasDate ); 27 void setHasDate( bool hasDate );
27 // if the category doesn't exist we will create it 28 // if the category doesn't exist we will create it
29 // this sets the the Category after this call category will be the only category
28 void setCategory( const QString &category ); 30 void setCategory( const QString &category );
31 // adds a category to the Categories of this event
32 void insertCategory(const QString &category );
33 void clearCategories();
34 void setCategories(const QStringList& );
35
29 void setPriority(int priority ); 36 void setPriority(int priority );
@@ -50,3 +57,3 @@ class ToDoEvent {
50 int m_priority; 57 int m_priority;
51 QString m_category; 58 QStringList m_category;
52 QString m_desc; 59 QString m_desc;