50 typedef ListBase<Todo>
List;
55 typedef boost::shared_ptr<Todo>
Ptr;
60 typedef boost::shared_ptr<const Todo>
ConstPtr;
105 void setDtDue(
const KDateTime &dtDue,
bool first =
false );
115 KDateTime dtDue(
bool first =
false )
const;
127 KCAL_DEPRECATED QString dtDueTimeStr(
128 bool shortfmt =
true,
const KDateTime::Spec &spec = KDateTime::Spec() )
const;
140 KCAL_DEPRECATED QString dtDueDateStr(
141 bool shortfmt =
true,
const KDateTime::Spec &spec = KDateTime::Spec() )
const;
153 KCAL_DEPRECATED QString dtDueStr(
154 bool shortfmt =
true,
const KDateTime::Spec &spec = KDateTime::Spec() )
const;
159 bool hasDueDate()
const;
166 void setHasDueDate(
bool hasDueDate );
171 bool hasStartDate()
const;
178 void setHasStartDate(
bool hasStartDate );
184 virtual KDateTime dtStart()
const;
194 KDateTime dtStart(
bool first )
const;
201 void setDtStart(
const KDateTime &dtStart );
218 KCAL_DEPRECATED QString dtStartTimeStr(
219 bool shortfmt,
bool first,
const KDateTime::Spec &spec = KDateTime::Spec() )
const;
225 virtual KCAL_DEPRECATED QString dtStartTimeStr(
226 bool shortfmt =
true,
const KDateTime::Spec &spec = KDateTime::Spec() )
const;
243 KCAL_DEPRECATED QString dtStartDateStr(
244 bool shortfmt,
bool first,
const KDateTime::Spec &spec = KDateTime::Spec() )
const;
250 virtual KCAL_DEPRECATED QString dtStartDateStr(
251 bool shortfmt =
true,
const KDateTime::Spec &spec = KDateTime::Spec() )
const;
268 KCAL_DEPRECATED QString dtStartStr(
269 bool shortfmt,
bool first,
const KDateTime::Spec &spec = KDateTime::Spec() )
const;
275 virtual KCAL_DEPRECATED QString dtStartStr(
276 bool shortfmt =
true,
const KDateTime::Spec &spec = KDateTime::Spec() )
const;
283 bool isCompleted()
const;
293 void setCompleted(
bool completed );
299 int percentComplete()
const;
310 void setPercentComplete(
int percent );
315 KDateTime completed()
const;
323 QString completedStr(
bool shortfmt =
false )
const;
330 void setCompleted(
const KDateTime &completeDate );
336 bool hasCompletedDate()
const;
351 bool isInProgress(
bool first )
const;
358 bool isOpenEnded()
const;
372 bool isNotStarted(
bool first )
const;
378 virtual void shiftTimes(
const KDateTime::Spec &oldSpec,
379 const KDateTime::Spec &newSpec );
386 void setDtRecurrence(
const KDateTime &dt );
391 KDateTime dtRecurrence()
const;
402 virtual bool recursOn(
const QDate &date,
403 const KDateTime::Spec &timeSpec )
const;
410 bool isOverdue()
const;
428 virtual KDateTime endDateRecurrenceBase()
const;
435 bool accept(
Visitor &v ) {
return v.visit(
this ); }