Class to represent a project. More...
#include <project.h>


Public Member Functions | |
| const QString & | description () const |
| QList< const Task * > | tasks () const |
| void | setDescription (const QString &description) |
| QList< StorableData * > | dependentData () const |
Private Member Functions | |
| Project (const QString &description) | |
| ~Project () | |
| Project (const Project &other) | |
| Project & | operator= (const Project &other) |
| void | addTask (Task *task) |
| void | removeTask (Task *task) |
Private Attributes | |
| ProjectPrivate *const | d |
Friends | |
| class | TaskManagerData |
| class | Task |
Class to represent a project.
A project consists of a number of tasks.
Constructors and destructor are private, creating and deleting projects is handled by TaskManagerData.
Definition at line 24 of file project.h.
| domain::Project::Project | ( | const QString & | description | ) | [private] |
Creates a new project with the given description.
Definition at line 10 of file project.cpp.
| domain::Project::~Project | ( | ) | [private] |
Destructor for the project. This will delete all dependentData().
Definition at line 15 of file project.cpp.
| void domain::Project::addTask | ( | Task * | task | ) | [private] |
Adds the given task the this projects list of tasks().
Definition at line 46 of file project.cpp.
| QList< StorableData * > domain::Project::dependentData | ( | ) | const [virtual] |
All tasks() depend on the existence of this project.
Reimplemented from domain::StorableData.
Definition at line 60 of file project.cpp.

| const QString & domain::Project::description | ( | ) | const |
Returns the description of this project.
Definition at line 22 of file project.cpp.
| void domain::Project::removeTask | ( | Task * | task | ) | [private] |
Removes the given tasks from this projects list of tasks().
Definition at line 52 of file project.cpp.
| void domain::Project::setDescription | ( | const QString & | description | ) |
Sets the description of this project.
| InvalidDataException | If the given description is empty. |
Definition at line 37 of file project.cpp.
| QList< const domain::Task * > domain::Project::tasks | ( | ) | const |
Returns a list of Task objects that are part of this project.
Definition at line 27 of file project.cpp.
1.6.3