Represents the unfinished 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 | updateTask (Task *task) | 
| bool | shouldBeFailed (Task *task) | 
| bool | isAvailable (const Task *task) | 
| void | setField (Task *task, const QString &id, const QVariant &value) | 
| void | addReservation (Task *task, Reservation *reservation) | 
| void | setProject (Task *task, Project *project) | 
| void | addSubTask (Task *task, Task *subTask) | 
Represents the unfinished state a task can be in.
Definition at line 214 of file taskstates.h.
| void TaskUnfinished::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 274 of file taskstates.cpp.

Adds a given subtask to a given task.
| task | The task to change | |
| subTask | The task to add as subtask | 
| StringException | 
Reimplemented from domain::TaskState.
Definition at line 284 of file taskstates.cpp.

| void TaskUnfinished::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 269 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 279 of file taskstates.cpp.

| TaskState::SettableState TaskUnfinished::settableState | ( | ) | const  [private, virtual] | 
Returns the settable state for this task state.
Implements domain::TaskState.
Definition at line 213 of file taskstates.cpp.
| void TaskUnfinished::updateTask | ( | Task * | task | ) |  [private, virtual] | 
Updates the state of the given task to the correct state.
| task | The task to update the state of | 
Reimplemented from domain::TaskState.
Definition at line 229 of file taskstates.cpp.

 1.6.3
 1.6.3