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();
27 QString getIconString(); //! Used to create icons in task list and flags in mapview
28 void setAwake(const QString &s);
29 void setAwake(Awake a);
31 QString getAwakeString();
35 void setPriority(int p);
39 void setDateCreation (const QString &s);
40 void setDateModified ();
41 void setDateModified (const QString &s);
42 void setDateSleep (int n);
43 void setDateSleep (const QString &s);
46 void setBranch (BranchItem *bi);
47 BranchItem* getBranch();
58 QDateTime date_creation;
59 QDateTime date_modified;