35 #include <kpimutils/supertrait.h> 
   36 #include <QtCore/QByteArray> 
   55     typedef boost::shared_ptr<Todo> 
Ptr;
 
   60     typedef boost::shared_ptr<const Todo> 
ConstPtr;
 
   82     QByteArray type() 
const;
 
  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;
 
  416     Todo &operator=( 
const Todo &other );
 
  422     bool operator==( 
const Todo &todo ) 
const;
 
  428     virtual KDateTime endDateRecurrenceBase() 
const;
 
  447 namespace KPIMUtils {
 
  448   template <> 
struct SuperClass<KCal::Todo> : 
public SuperClassTrait<KCal::Incidence>{};
 
ListBase< Todo > List
List of to-dos. 
 
boost::shared_ptr< const Todo > ConstPtr
A shared pointer to a non-mutable Todo object. 
 
Provides a To-do in the sense of RFC2445. 
 
This class provides the interface for a visitor of calendar components. 
 
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
 
This class provides a template for lists of pointers. 
 
boost::shared_ptr< Todo > Ptr
A shared pointer to a Todo object. 
 
This file is part of the API for handling calendar data and defines the Incidence class...
 
virtual bool visit(Event *event)
Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on a...