24 #include "incidence.h"
40 bool operator==(
const Todo& )
const;
42 TQCString type()
const {
return "Todo"; }
56 void setDtDue(
const TQDateTime &dtDue,
bool first =
false);
65 TQDateTime dtDue(
bool first =
false )
const;
71 TDE_DEPRECATED TQString dtDueTimeStr()
const;
81 TDE_DEPRECATED TQString dtDueDateStr(
bool shortfmt =
true )
const;
88 TDE_DEPRECATED TQString dtDueStr()
const;
93 bool hasDueDate()
const;
99 void setHasDueDate(
bool hasDueDate );
104 bool hasStartDate()
const;
110 void setHasStartDate(
bool hasStartDate );
119 TQDateTime dtStart(
bool first =
false )
const;
124 void setDtStart(
const TQDateTime &dtStart );
133 TQString dtStartTimeStr(
bool first =
false )
const;
143 TQString dtStartDateStr(
bool shortfmt =
true,
bool first =
false )
const;
151 TQString dtStartStr(
bool first =
false )
const;
156 bool isCompleted()
const;
163 void setCompleted(
bool completed );
169 int percentComplete()
const;
174 void setPercentComplete(
int );
179 TQDateTime completed()
const;
184 TQString completedStr()
const;
188 void setCompleted(
const TQDateTime &completed );
194 bool hasCompletedDate()
const;
199 void setDtRecurrence(
const TQDateTime &dt );
204 TQDateTime dtRecurrence()
const;
212 virtual bool recursOn(
const TQDate &date )
const;
218 bool isOverdue()
const;
225 bool accept(Visitor &v) {
return v.visit(
this ); }
238 TQDateTime mDtRecurrence;
243 TQDateTime mCompleted;
244 bool mHasCompletedDate;
246 int mPercentComplete;
virtual TQDateTime endDateRecurrenceBase() const
Return the end date/time of the base incidence.
This class provides a Todo in the sense of RFC2445.
This class provides the base class common to all calendar components.