Represents the failed state a task can be in. More...
#include <taskstates.h>


Public Member Functions | |
| QString | name () const |
Static Public Member Functions | |
| static TaskState * | instance () |
Private Member Functions | |
| SettableState | settableState () const |
| void | setProject (Task *task, Project *project) |
| void | setField (Task *task, const QString &id, const QVariant &value) |
| void | addReservation (Task *task, Reservation *reservation) |
Represents the failed state a task can be in.
Definition at line 192 of file taskstates.h.
| void TaskFailed::addReservation | ( | Task * | task, | |
| Reservation * | reservation | |||
| ) | [private, virtual] |
Adds a given reservation to a given task.
| task | The task to change | |
| reservation | The reservation to add |
| StringException |
Reimplemented from domain::TaskState.
Definition at line 202 of file taskstates.cpp.

| void TaskFailed::setField | ( | Task * | task, | |
| const QString & | id, | |||
| const QVariant & | value | |||
| ) | [private, virtual] |
Sets a field of a given task.
| task | The task to change | |
| id | The id of the field to set | |
| value | The value to set the field to |
| StringException |
Reimplemented from domain::TaskState.
Definition at line 197 of file taskstates.cpp.

Sets the project of a given task to the given project.
| task | The task to change | |
| project | The project to set |
| StringException |
Reimplemented from domain::TaskState.
Definition at line 192 of file taskstates.cpp.

| TaskState::SettableState TaskFailed::settableState | ( | ) | const [private, virtual] |
Returns the settable state for this task state.
Implements domain::TaskState.
Definition at line 176 of file taskstates.cpp.
1.6.3