KCalCore Library
Go to the documentation of this file.
31 #ifndef KCALCORE_TODO_H
32 #define KCALCORE_TODO_H
34 #include "kcalcore_export.h"
36 #include "supertrait.h"
50 typedef QSharedPointer<Todo>
Ptr;
83 QByteArray typeStr()
const;
100 void setDtDue(
const KDateTime &dtDue,
bool first =
false );
110 KDateTime dtDue(
bool first =
false )
const;
115 bool hasDueDate()
const;
122 void setHasDueDate(
bool hasDueDate );
127 bool hasStartDate()
const;
134 void setHasStartDate(
bool hasStartDate );
140 virtual KDateTime dtStart()
const;
150 KDateTime dtStart(
bool first )
const;
157 void setDtStart(
const KDateTime &dtStart );
164 bool isCompleted()
const;
174 void setCompleted(
bool completed );
180 int percentComplete()
const;
191 void setPercentComplete(
int percent );
196 KDateTime completed()
const;
203 void setCompleted(
const KDateTime &completeDate );
209 bool hasCompletedDate()
const;
223 bool isInProgress(
bool first )
const;
229 bool isOpenEnded()
const;
242 bool isNotStarted(
bool first )
const;
248 virtual void shiftTimes(
const KDateTime::Spec &oldSpec,
249 const KDateTime::Spec &newSpec );
255 void setAllDay(
bool allDay );
262 void setDtRecurrence(
const KDateTime &dt );
267 KDateTime dtRecurrence()
const;
278 virtual bool recursOn(
const QDate &date,
279 const KDateTime::Spec &timeSpec )
const;
286 bool isOverdue()
const;
298 void setDateTime(
const KDateTime &dateTime,
DateTimeRole role );
304 QLatin1String mimeType()
const;
310 QLatin1String iconName(
const KDateTime &recurrenceId = KDateTime() )
const;
315 static QLatin1String todoMimeType();
333 virtual void virtual_hook(
int id,
void *data );
348 Todo &operator=(
const Todo &other );
361 namespace KPIMUtils {
363 template <>
struct SuperClass<KCalCore::Todo> :
public SuperClassTrait<KCalCore::Incidence>{};
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:24:52 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.