summaryrefslogtreecommitdiff
path: root/libopie/todoevent.h
authorzecke <zecke>2002-03-20 21:55:54 (UTC)
committer zecke <zecke>2002-03-20 21:55:54 (UTC)
commitc6e7f6e2ab8556064ec79fc9bbaa9e0398a7b344 (patch) (unidiff)
treef68d6a7c899e1ffe297af30002a3dc8b4f3762c6 /libopie/todoevent.h
parent0d759d6e9c84a8597b6594bb7c5ad5d17621b966 (diff)
downloadopie-c6e7f6e2ab8556064ec79fc9bbaa9e0398a7b344.zip
opie-c6e7f6e2ab8556064ec79fc9bbaa9e0398a7b344.tar.gz
opie-c6e7f6e2ab8556064ec79fc9bbaa9e0398a7b344.tar.bz2
tododb vCal support
Diffstat (limited to 'libopie/todoevent.h') (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 79522b2..bca7f6e 100644
--- a/libopie/todoevent.h
+++ b/libopie/todoevent.h
@@ -1,46 +1,47 @@
1 1
2#ifndef todoevent_h 2#ifndef todoevent_h
3#define todoevent_h 3#define todoevent_h
4 4
5#include <qdatetime.h> 5#include <qdatetime.h>
6 6
7class ToDoEvent { 7class ToDoEvent {
8 friend class ToDoDB; 8 friend class ToDoDB;
9 public: 9 public:
10 enum Priority { VERYHIGH=1, HIGH, NORMAL, LOW, VERYLOW }; 10 enum Priority { VERYHIGH=1, HIGH, NORMAL, LOW, VERYLOW };
11 ToDoEvent( bool completed = false, int priority = NORMAL, 11 ToDoEvent( bool completed = false, int priority = NORMAL,
12 const QString &category = QString::null, 12 const QString &category = QString::null,
13 const QString &description = QString::null , 13 const QString &description = QString::null ,
14 bool hasDate = false, QDate date = QDate::currentDate(), int uid = -1 ); 14 bool hasDate = false, QDate date = QDate::currentDate(), int uid = -1 );
15 ToDoEvent(const ToDoEvent & );
15 bool isCompleted() const; 16 bool isCompleted() const;
16 bool hasDate() const; 17 bool hasDate() const;
17 int priority()const ; 18 int priority()const ;
18 QString category()const; 19 QString category()const;
19 QDate date()const; 20 QDate date()const;
20 QString description()const; 21 QString description()const;
21 22
22 int uid()const { return m_uid;}; 23 int uid()const { return m_uid;};
23 void setCompleted(bool completed ); 24 void setCompleted(bool completed );
24 void setHasDate( bool hasDate ); 25 void setHasDate( bool hasDate );
25 // if the category doesn't exist we will create it 26 // if the category doesn't exist we will create it
26 void setCategory( const QString &category ); 27 void setCategory( const QString &category );
27 void setPriority(int priority ); 28 void setPriority(int priority );
28 void setDate( QDate date ); 29 void setDate( QDate date );
29 void setDescription(const QString& ); 30 void setDescription(const QString& );
30 bool isOverdue(); 31 bool isOverdue();
31 32
32 void setUid(int id) {m_uid = id; }; 33 void setUid(int id) {m_uid = id; };
33 bool operator<(const ToDoEvent &toDoEvent )const; 34 bool operator<(const ToDoEvent &toDoEvent )const;
34 bool operator<=(const ToDoEvent &toDoEvent )const; 35 bool operator<=(const ToDoEvent &toDoEvent )const;
35 bool operator!=(const ToDoEvent &toDoEvent )const { return !(*this == toDoEvent); }; 36 bool operator!=(const ToDoEvent &toDoEvent )const { return !(*this == toDoEvent); };
36 bool operator>(const ToDoEvent &toDoEvent )const; 37 bool operator>(const ToDoEvent &toDoEvent )const;
37 bool operator>=(const ToDoEvent &toDoEvent)const; 38 bool operator>=(const ToDoEvent &toDoEvent)const;
38 bool operator==(const ToDoEvent &toDoEvent )const; 39 bool operator==(const ToDoEvent &toDoEvent )const;
39 ToDoEvent &operator=(const ToDoEvent &toDoEvent ); 40 ToDoEvent &operator=(const ToDoEvent &toDoEvent );
40 private: 41 private:
41 class ToDoEventPrivate; 42 class ToDoEventPrivate;
42 ToDoEventPrivate *d; 43 ToDoEventPrivate *d;
43 QDate m_date; 44 QDate m_date;
44 bool m_isCompleted:1; 45 bool m_isCompleted:1;
45 bool m_hasDate:1; 46 bool m_hasDate:1;
46 int m_priority; 47 int m_priority;