author | simon <simon> | 2002-03-20 21:34:11 (UTC) |
---|---|---|
committer | simon <simon> | 2002-03-20 21:34:11 (UTC) |
commit | 011c84e728826d6f90ff6b15198308f3f9b9135a (patch) (unidiff) | |
tree | 17a732f43b79c38a310c84193f4b262082370b76 /include/opie/todoevent.h | |
parent | a209ccfd83698cf14ec7302275f7425f5023d81f (diff) | |
download | opie-011c84e728826d6f90ff6b15198308f3f9b9135a.zip opie-011c84e728826d6f90ff6b15198308f3f9b9135a.tar.gz opie-011c84e728826d6f90ff6b15198308f3f9b9135a.tar.bz2 |
- these files have been moved back to libopie/ (copied directly on the CVS
server to preserve history) . They will be symlinked into this directory
from there
-rw-r--r-- | include/opie/todoevent.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/include/opie/todoevent.h b/include/opie/todoevent.h deleted file mode 100644 index 79522b2..0000000 --- a/include/opie/todoevent.h +++ b/dev/null | |||
@@ -1,53 +0,0 @@ | |||
1 | |||
2 | #ifndef todoevent_h | ||
3 | #define todoevent_h | ||
4 | |||
5 | #include <qdatetime.h> | ||
6 | |||
7 | class ToDoEvent { | ||
8 | friend class ToDoDB; | ||
9 | public: | ||
10 | enum Priority { VERYHIGH=1, HIGH, NORMAL, LOW, VERYLOW }; | ||
11 | ToDoEvent( bool completed = false, int priority = NORMAL, | ||
12 | const QString &category = QString::null, | ||
13 | const QString &description = QString::null , | ||
14 | bool hasDate = false, QDate date = QDate::currentDate(), int uid = -1 ); | ||
15 | bool isCompleted() const; | ||
16 | bool hasDate() const; | ||
17 | int priority()const ; | ||
18 | QString category()const; | ||
19 | QDate date()const; | ||
20 | QString description()const; | ||
21 | |||
22 | int uid()const { return m_uid;}; | ||
23 | void setCompleted(bool completed ); | ||
24 | void setHasDate( bool hasDate ); | ||
25 | // if the category doesn't exist we will create it | ||
26 | void setCategory( const QString &category ); | ||
27 | void setPriority(int priority ); | ||
28 | void setDate( QDate date ); | ||
29 | void setDescription(const QString& ); | ||
30 | bool isOverdue(); | ||
31 | |||
32 | void setUid(int id) {m_uid = id; }; | ||
33 | bool operator<(const ToDoEvent &toDoEvent )const; | ||
34 | bool operator<=(const ToDoEvent &toDoEvent )const; | ||
35 | bool operator!=(const ToDoEvent &toDoEvent )const { return !(*this == toDoEvent); }; | ||
36 | bool operator>(const ToDoEvent &toDoEvent )const; | ||
37 | bool operator>=(const ToDoEvent &toDoEvent)const; | ||
38 | bool operator==(const ToDoEvent &toDoEvent )const; | ||
39 | ToDoEvent &operator=(const ToDoEvent &toDoEvent ); | ||
40 | private: | ||
41 | class ToDoEventPrivate; | ||
42 | ToDoEventPrivate *d; | ||
43 | QDate m_date; | ||
44 | bool m_isCompleted:1; | ||
45 | bool m_hasDate:1; | ||
46 | int m_priority; | ||
47 | QString m_category; | ||
48 | QString m_desc; | ||
49 | int m_uid; | ||
50 | }; | ||
51 | |||
52 | |||
53 | #endif | ||