domain::TaskDeleting Class Reference

A task that is being deleted will be set in this state. More...

#include <taskstates.h>

Inheritance diagram for domain::TaskDeleting:
Inheritance graph
[legend]
Collaboration diagram for domain::TaskDeleting:
Collaboration graph
[legend]

List of all members.

Public Member Functions

QString name () const

Static Public Member Functions

static TaskStateinstance ()

Private Member Functions

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)
SettableState settableState () const

Detailed Description

A task that is being deleted will be set in this state.

This state allows all operations, so everything can be deleted of the task that is being deleted.

Definition at line 277 of file taskstates.h.


Member Function Documentation

void TaskDeleting::addReservation ( Task task,
Reservation reservation 
) [private, virtual]

Adds a given reservation to a given task.

Parameters:
task The task to change
reservation The reservation to add
Exceptions:
StringException 

Reimplemented from domain::TaskState.

Definition at line 338 of file taskstates.cpp.

Here is the call graph for this function:

void TaskDeleting::addSubTask ( Task task,
Task subTask 
) [private, virtual]

Adds a given subtask to a given task.

Parameters:
task The task to change
subTask The task to add as subtask
Exceptions:
StringException 

Reimplemented from domain::TaskState.

Definition at line 343 of file taskstates.cpp.

Here is the call graph for this function:

void TaskDeleting::setField ( Task task,
const QString &  id,
const QVariant &  value 
) [private, virtual]

Sets a field of a given task.

Parameters:
task The task to change
id The id of the field to set
value The value to set the field to
Exceptions:
StringException 

Reimplemented from domain::TaskState.

Definition at line 358 of file taskstates.cpp.

Here is the call graph for this function:

void TaskDeleting::setProject ( Task task,
Project project 
) [private, virtual]

Sets the project of a given task to the given project.

Parameters:
task The task to change
project The project to set
Exceptions:
StringException 

Reimplemented from domain::TaskState.

Definition at line 353 of file taskstates.cpp.

Here is the call graph for this function:

TaskState::SettableState TaskDeleting::settableState (  )  const [private, virtual]

Returns the settable state for this task state.

Implements domain::TaskState.

Definition at line 363 of file taskstates.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Enumerations Enumerator
Generated on Thu May 27 14:20:17 2010 for MopTaskManager by  doxygen 1.6.3