-rw-r--r-- | libkcal/todo.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/libkcal/todo.h b/libkcal/todo.h index a22d4b7..fe43357 100644 --- a/libkcal/todo.h +++ b/libkcal/todo.h @@ -27,2 +27,4 @@ +#include <qtimer.h> + namespace KCal { @@ -32,4 +34,5 @@ namespace KCal { */ -class Todo : public Incidence + class Todo : public QObject,public Incidence { + Q_OBJECT public: @@ -116,4 +119,13 @@ class Todo : public Incidence bool setRecurDates(); - + bool isRunning() {return mRunning;} + bool hasRunningSub(); + void setRunning( bool ); + int runTime(); + QDateTime runStart () const { return mRunStart;} + public slots: + void saveRunningInfoToFile(); private: + bool mRunning; + QTimer * mRunSaveTimer; + QDateTime mRunStart; bool accept(Visitor &v) { return v.visit(this); } |