domain::Project Class Reference

Class to represent a project. More...

#include <project.h>

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

List of all members.

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)
Projectoperator= (const Project &other)
void addTask (Task *task)
void removeTask (Task *task)

Private Attributes

ProjectPrivate *const d

Friends

class TaskManagerData
class Task

Detailed Description

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.


Constructor & Destructor Documentation

domain::Project::Project ( const QString &  description  )  [private]

Creates a new project with the given description.

See also:
setDescription().

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.


Member Function Documentation

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.

Here is the call graph for this function:

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.

Exceptions:
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.


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:09 2010 for MopTaskManager by  doxygen 1.6.3