summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/todoevent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libopie/todoevent.h b/libopie/todoevent.h
index 40d8f0b..8a00f99 100644
--- a/libopie/todoevent.h
+++ b/libopie/todoevent.h
@@ -1,52 +1,53 @@
1 1
2#ifndef todoevent_h 2#ifndef todoevent_h
3#define todoevent_h 3#define todoevent_h
4 4
5#include <qregexp.h>
5#include <qstringlist.h> 6#include <qstringlist.h>
6#include <qdatetime.h> 7#include <qdatetime.h>
7 8
8class ToDoEvent { 9class ToDoEvent {
9 friend class ToDoDB; 10 friend class ToDoDB;
10 public: 11 public:
11 // priorities from Very low to very high 12 // priorities from Very low to very high
12 enum Priority { VERYHIGH=1, HIGH, NORMAL, LOW, VERYLOW }; 13 enum Priority { VERYHIGH=1, HIGH, NORMAL, LOW, VERYLOW };
13 /* Constructs a new ToDoEvent 14 /* Constructs a new ToDoEvent
14 @param completed Is the TodoEvent completed 15 @param completed Is the TodoEvent completed
15 @param priority What is the priority of this ToDoEvent 16 @param priority What is the priority of this ToDoEvent
16 @param category Which category does it belong( uid ) 17 @param category Which category does it belong( uid )
17 @param description What is this ToDoEvent about 18 @param description What is this ToDoEvent about
18 @param hasDate Does this Event got a deadline 19 @param hasDate Does this Event got a deadline
19 @param date what is the deadline? 20 @param date what is the deadline?
20 @param uid what is the UUID of this Event 21 @param uid what is the UUID of this Event
21 **/ 22 **/
22 ToDoEvent( bool completed = false, int priority = NORMAL, 23 ToDoEvent( bool completed = false, int priority = NORMAL,
23 const QStringList &category = QStringList(), 24 const QStringList &category = QStringList(),
24 const QString &description = QString::null , 25 const QString &description = QString::null ,
25 bool hasDate = false, QDate date = QDate::currentDate(), int uid = -1 ); 26 bool hasDate = false, QDate date = QDate::currentDate(), int uid = -1 );
26 /* Copy c'tor 27 /* Copy c'tor
27 28
28 **/ 29 **/
29 ToDoEvent(const ToDoEvent & ); 30 ToDoEvent(const ToDoEvent & );
30 31
31 /* 32 /*
32 Is this event completed? 33 Is this event completed?
33 **/ 34 **/
34 bool isCompleted() const; 35 bool isCompleted() const;
35 36
36 /* 37 /*
37 Does this Event have a deadline 38 Does this Event have a deadline
38 **/ 39 **/
39 bool hasDate() const; 40 bool hasDate() const;
40 41
41 /* 42 /*
42 What is the priority? 43 What is the priority?
43 **/ 44 **/
44 int priority()const ; 45 int priority()const ;
45 QStringList allCategories()const; 46 QStringList allCategories()const;
46 QArray<int> categories() const; 47 QArray<int> categories() const;
47 QDate date()const; 48 QDate date()const;
48 QString description()const; 49 QString description()const;
49 50
50 QString richText() const; 51 QString richText() const;
51 52
52 int uid()const { return m_uid;}; 53 int uid()const { return m_uid;};