///////////////////////////////////////////////////////////////////////////
| 170 | |
| 171 | //////////////////////////////////////////////////////////////////////////////// |
| 172 | std::string Task::statusToText(Task::status s) { |
| 173 | if (s == Task::pending) |
| 174 | return "pending"; |
| 175 | else if (s == Task::recurring) |
| 176 | return "recurring"; |
| 177 | else if (s == Task::waiting) |
| 178 | return "waiting"; |
| 179 | else if (s == Task::completed) |
| 180 | return "completed"; |
| 181 | else if (s == Task::deleted) |
| 182 | return "deleted"; |
| 183 | |
| 184 | return "pending"; |
| 185 | } |
| 186 | |
| 187 | //////////////////////////////////////////////////////////////////////////////// |
| 188 | // Returns a proper handle to the task. Tasks should not be referenced by UUIDs |