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;
81 QByteArray typeStr()
const;
98 void setDtDue(
const KDateTime &dtDue,
bool first =
false);
109 KDateTime dtDue(
bool first =
false)
const;
115 bool hasDueDate()
const;
122 KDE_DEPRECATED
void setHasDueDate(
bool hasDueDate);
128 bool hasStartDate()
const;
135 KDE_DEPRECATED
void setHasStartDate(
bool hasStartDate);
140 virtual KDateTime dtStart()
const;
152 KDateTime dtStart(
bool first)
const;
158 void setDtStart(
const KDateTime &dtStart);
167 bool isCompleted()
const;
177 void setCompleted(
bool completed);
184 int percentComplete()
const;
195 void setPercentComplete(
int percent);
203 KDateTime completed()
const;
211 void setCompleted(
const KDateTime &completeDate);
219 bool hasCompletedDate()
const;
233 bool isInProgress(
bool first)
const;
239 bool isOpenEnded()
const;
252 bool isNotStarted(
bool first)
const;
257 virtual void shiftTimes(
const KDateTime::Spec &oldSpec,
258 const KDateTime::Spec &newSpec);
263 void setAllDay(
bool allDay);
270 void setDtRecurrence(
const KDateTime &dt);
275 KDateTime dtRecurrence()
const;
286 virtual bool recursOn(
const QDate &date,
287 const KDateTime::Spec &timeSpec)
const;
294 bool isOverdue()
const;
304 void setDateTime(
const KDateTime &dateTime,
DateTimeRole role);
309 QLatin1String mimeType()
const;
314 QLatin1String iconName(
const KDateTime &recurrenceId = KDateTime())
const;
319 static QLatin1String todoMimeType();
336 virtual void virtual_hook(
int id,
void *data);
363 namespace KPIMUtils {
365 template <>
struct SuperClass<KCalCore::Todo> :
public SuperClassTrait<KCalCore::Incidence> {};
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Fri Jan 17 2014 22:11:59 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.