14 class Task : public XMLObj {
16 enum Status { NotStarted, WIP, Finished };
17 enum Awake { Sleeping, Morning, WideAwake };
21 void setModel(TaskModel *tm);
22 void cycleStatus(bool reverse = false);
23 void setStatus(const QString &s);
24 void setStatus(Status ts);
26 QString getStatusString();
28 getIconString(); //! Used to create icons in task list and flags in mapview
29 void setAwake(const QString &s);
30 void setAwake(Awake a);
32 QString getAwakeString();
36 void setPriority(int p);
39 int getAgeModification();
40 void setDateCreation(const QString &s);
41 QDateTime getDateCreation();
42 void setDateModification();
43 void setDateModification(const QString &s);
44 QDateTime getDateModification();
45 bool setDaysSleep(qint64 n);
46 bool setHoursSleep(qint64 n);
47 bool setSecsSleep(qint64 n);
48 bool setDateSleep(const QString &s);
49 bool setDateSleep(const QDateTime &d);
50 qint64 getDaysSleep();
51 qint64 getSecsSleep();
54 void setPriorityDelta(const int &n);
55 int getPriorityDelta();
56 void setBranch(BranchItem *bi);
57 BranchItem *getBranch();
69 QDateTime date_creation;
70 QDateTime date_modification;