-rw-r--r-- | libopie2/opiepim/otodo.h | 59 |
1 files changed, 43 insertions, 16 deletions
diff --git a/libopie2/opiepim/otodo.h b/libopie2/opiepim/otodo.h index 70b0253..2f66f55 100644 --- a/libopie2/opiepim/otodo.h +++ b/libopie2/opiepim/otodo.h | |||
@@ -20,4 +20,5 @@ class OPimState; | |||
20 | class ORecur; | 20 | class ORecur; |
21 | class OPimMaintainer; | 21 | class OPimMaintainer; |
22 | class OPimNotifyManager; | ||
22 | class OTodo : public OPimRecord { | 23 | class OTodo : public OPimRecord { |
23 | public: | 24 | public: |
@@ -36,11 +37,12 @@ public: | |||
36 | Progress, | 37 | Progress, |
37 | CrossReference, | 38 | CrossReference, |
38 | HasAlarmDateTime, | ||
39 | AlarmDateTime, | ||
40 | State, | 39 | State, |
41 | Recurrance, | 40 | Recurrence, |
42 | Alarms, | 41 | Alarms, |
43 | Reminders, | 42 | Reminders, |
44 | Notifiers | 43 | Notifiers, |
44 | Maintainer, | ||
45 | StartDate, | ||
46 | CompletedDate | ||
45 | }; | 47 | }; |
46 | public: | 48 | public: |
@@ -74,7 +76,7 @@ public: | |||
74 | int uid = 0 /* empty */ ); | 76 | int uid = 0 /* empty */ ); |
75 | 77 | ||
76 | /* Copy c'tor | 78 | /** Copy c'tor |
77 | 79 | * | |
78 | **/ | 80 | */ |
79 | OTodo(const OTodo & ); | 81 | OTodo(const OTodo & ); |
80 | 82 | ||
@@ -93,4 +95,6 @@ public: | |||
93 | */ | 95 | */ |
94 | bool hasDueDate() const; | 96 | bool hasDueDate() const; |
97 | bool hasStartDate()const; | ||
98 | bool hasCompletedDate()const; | ||
95 | 99 | ||
96 | /** | 100 | /** |
@@ -115,7 +119,12 @@ public: | |||
115 | 119 | ||
116 | /** | 120 | /** |
117 | * Alarm Date and Time | 121 | * When did it start? |
122 | */ | ||
123 | QDate startDate()const; | ||
124 | |||
125 | /** | ||
126 | * When was it completed? | ||
118 | */ | 127 | */ |
119 | QDateTime alarmDateTime()const; | 128 | QDate completedDate()const; |
120 | 129 | ||
121 | /** | 130 | /** |
@@ -150,6 +159,14 @@ public: | |||
150 | QString toRichText() const; | 159 | QString toRichText() const; |
151 | 160 | ||
161 | /* | ||
162 | * check if the sharing is still fine!! -zecke | ||
163 | */ | ||
164 | /** | ||
165 | * return a reference to our notifiers... | ||
166 | */ | ||
167 | OPimNotifyManager ¬ifiers(); | ||
168 | |||
152 | /** | 169 | /** |
153 | * reimplementation | 170 | * reimplementations |
154 | */ | 171 | */ |
155 | QString type()const; | 172 | QString type()const; |
@@ -173,9 +190,8 @@ public: | |||
173 | */ | 190 | */ |
174 | void setHasDueDate( bool hasDate ); | 191 | void setHasDueDate( bool hasDate ); |
175 | 192 | // FIXME we do not have these for start, completed | |
176 | /** | 193 | // cause we'll use the isNull() of QDate for figuring |
177 | * set if this todo has an alarm time and date | 194 | // out if it's has a date... |
178 | */ | 195 | // decide what to do here? -zecke |
179 | void setHasAlarmDateTime ( bool hasAlarm ); | ||
180 | 196 | ||
181 | /** | 197 | /** |
@@ -192,6 +208,15 @@ public: | |||
192 | * set the end date | 208 | * set the end date |
193 | */ | 209 | */ |
194 | void setDueDate( QDate date ); | 210 | void setDueDate( const QDate& date ); |
195 | 211 | ||
212 | /** | ||
213 | * set the start date | ||
214 | */ | ||
215 | void setStartDate( const QDate& date ); | ||
216 | |||
217 | /** | ||
218 | * set the completed date | ||
219 | */ | ||
220 | void setCompletedDate( const QDate& date ); | ||
196 | 221 | ||
197 | void setRecurrence( const ORecur& ); | 222 | void setRecurrence( const ORecur& ); |
@@ -228,4 +253,6 @@ public: | |||
228 | OTodo &operator=(const OTodo &toDoEvent ); | 253 | OTodo &operator=(const OTodo &toDoEvent ); |
229 | 254 | ||
255 | static int rtti(); | ||
256 | |||
230 | private: | 257 | private: |
231 | class OTodoPrivate; | 258 | class OTodoPrivate; |