-rw-r--r-- | libopie/pim/otodo.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libopie/pim/otodo.h b/libopie/pim/otodo.h index 2cdc587..70b0253 100644 --- a/libopie/pim/otodo.h +++ b/libopie/pim/otodo.h | |||
@@ -9,24 +9,25 @@ | |||
9 | #include <qstringlist.h> | 9 | #include <qstringlist.h> |
10 | #include <qdatetime.h> | 10 | #include <qdatetime.h> |
11 | #include <qvaluelist.h> | 11 | #include <qvaluelist.h> |
12 | 12 | ||
13 | #include <qpe/recordfields.h> | 13 | #include <qpe/recordfields.h> |
14 | #include <qpe/palmtopuidgen.h> | 14 | #include <qpe/palmtopuidgen.h> |
15 | 15 | ||
16 | #include <opie/opimrecord.h> | 16 | #include <opie/opimrecord.h> |
17 | 17 | ||
18 | 18 | ||
19 | class OPimState; | 19 | class OPimState; |
20 | class ORecur; | 20 | class ORecur; |
21 | class OPimMaintainer; | ||
21 | class OTodo : public OPimRecord { | 22 | class OTodo : public OPimRecord { |
22 | public: | 23 | public: |
23 | typedef QValueList<OTodo> ValueList; | 24 | typedef QValueList<OTodo> ValueList; |
24 | enum RecordFields { | 25 | enum RecordFields { |
25 | Uid = Qtopia::UID_ID, | 26 | Uid = Qtopia::UID_ID, |
26 | Category = Qtopia::CATEGORY_ID, | 27 | Category = Qtopia::CATEGORY_ID, |
27 | HasDate, | 28 | HasDate, |
28 | Completed, | 29 | Completed, |
29 | Description, | 30 | Description, |
30 | Summary, | 31 | Summary, |
31 | Priority, | 32 | Priority, |
32 | DateDay, | 33 | DateDay, |
@@ -119,24 +120,29 @@ public: | |||
119 | 120 | ||
120 | /** | 121 | /** |
121 | * What is the state of this OTodo? | 122 | * What is the state of this OTodo? |
122 | */ | 123 | */ |
123 | OPimState state()const; | 124 | OPimState state()const; |
124 | 125 | ||
125 | /** | 126 | /** |
126 | * the recurrance of this | 127 | * the recurrance of this |
127 | */ | 128 | */ |
128 | ORecur recurrence()const; | 129 | ORecur recurrence()const; |
129 | 130 | ||
130 | /** | 131 | /** |
132 | * the Maintainer of this OTodo | ||
133 | */ | ||
134 | OPimMaintainer maintainer()const; | ||
135 | |||
136 | /** | ||
131 | * The description of the todo | 137 | * The description of the todo |
132 | */ | 138 | */ |
133 | QString description()const; | 139 | QString description()const; |
134 | 140 | ||
135 | /** | 141 | /** |
136 | * A small summary of the todo | 142 | * A small summary of the todo |
137 | */ | 143 | */ |
138 | QString summary() const; | 144 | QString summary() const; |
139 | 145 | ||
140 | /** | 146 | /** |
141 | * @reimplemented | 147 | * @reimplemented |
142 | * Return this todoevent in a RichText formatted QString | 148 | * Return this todoevent in a RichText formatted QString |
@@ -193,24 +199,30 @@ public: | |||
193 | * set the alarm time | 199 | * set the alarm time |
194 | */ | 200 | */ |
195 | void setAlarmDateTime ( const QDateTime& alarm ); | 201 | void setAlarmDateTime ( const QDateTime& alarm ); |
196 | 202 | ||
197 | void setDescription(const QString& ); | 203 | void setDescription(const QString& ); |
198 | void setSummary(const QString& ); | 204 | void setSummary(const QString& ); |
199 | 205 | ||
200 | /** | 206 | /** |
201 | * set the state of a Todo | 207 | * set the state of a Todo |
202 | * @param state State what the todo should take | 208 | * @param state State what the todo should take |
203 | */ | 209 | */ |
204 | void setState( const OPimState& state); | 210 | void setState( const OPimState& state); |
211 | |||
212 | /** | ||
213 | * set the Maintainer Mode | ||
214 | */ | ||
215 | void setMaintainer( const OPimMaintainer& ); | ||
216 | |||
205 | bool isOverdue(); | 217 | bool isOverdue(); |
206 | 218 | ||
207 | 219 | ||
208 | bool match( const QRegExp &r )const; | 220 | bool match( const QRegExp &r )const; |
209 | 221 | ||
210 | bool operator<(const OTodo &toDoEvent )const; | 222 | bool operator<(const OTodo &toDoEvent )const; |
211 | bool operator<=(const OTodo &toDoEvent )const; | 223 | bool operator<=(const OTodo &toDoEvent )const; |
212 | bool operator!=(const OTodo &toDoEvent )const; | 224 | bool operator!=(const OTodo &toDoEvent )const; |
213 | bool operator>(const OTodo &toDoEvent )const; | 225 | bool operator>(const OTodo &toDoEvent )const; |
214 | bool operator>=(const OTodo &toDoEvent)const; | 226 | bool operator>=(const OTodo &toDoEvent)const; |
215 | bool operator==(const OTodo &toDoEvent )const; | 227 | bool operator==(const OTodo &toDoEvent )const; |
216 | OTodo &operator=(const OTodo &toDoEvent ); | 228 | OTodo &operator=(const OTodo &toDoEvent ); |