DataExercise Class Reference

Data class holding the information of one exercise. More...

#include <dataexercise.h>

List of all members.

Public Slots

void dataChanged ()

Signals

void changed ()

Public Member Functions

QString name ()
QString description ()
uint id ()
QList< DataAccount * > * accounts ()
QList< DataAccountingRecord * > * accountingRecords ()
QList< DataAccountingRecord * > * solutionRecords ()
DataExerciseStatus status ()
void setExerciseId (uint id)
void setStatus (DataExerciseStatus status)
void setExerciseName (QString name)
void setDescription (QString description)
void hash (unsigned int &startValue)
bool loadDataNode (const QDomNode data)
QDomElement saveDataNode (QDomDocument *xml)
 DataExercise ()
 DataExercise (DataExercise &exercise)
 ~DataExercise ()


Detailed Description

Data class holding the information of one exercise.

An exercise consists of a short name, a task description, saved accounting records, accounting records of the solution (optional), an exercise status and a list of accounts which store name and opening stock. Represents the content of the XML tag <exercise>, which is stored in <chapter>. See doc/Hacking/Proposals/daten.dbku and doc/Planning/Datenmodell.pdf

Definition at line 19 of file dataexercise.h.


Constructor & Destructor Documentation

DataExercise::DataExercise (  ) 

Definition at line 200 of file dataexercise.cpp.

DataExercise::DataExercise ( DataExercise exercise  ) 

Definition at line 204 of file dataexercise.cpp.

Here is the call graph for this function:

DataExercise::~DataExercise (  ) 

Definition at line 215 of file dataexercise.cpp.


Member Function Documentation

QList<DataAccountingRecord *>* DataExercise::accountingRecords (  )  [inline]

Definition at line 28 of file dataexercise.h.

Here is the caller graph for this function:

QList<DataAccount *>* DataExercise::accounts (  )  [inline]

Definition at line 27 of file dataexercise.h.

Here is the caller graph for this function:

void DataExercise::changed (  )  [signal]

Here is the caller graph for this function:

void DataExercise::dataChanged (  )  [inline, slot]

Definition at line 48 of file dataexercise.h.

Here is the call graph for this function:

Here is the caller graph for this function:

QString DataExercise::description (  )  [inline]

Definition at line 25 of file dataexercise.h.

Here is the caller graph for this function:

void DataExercise::hash ( unsigned int &  startValue  ) 

Hash value of data

Definition at line 177 of file dataexercise.cpp.

uint DataExercise::id (  )  [inline]

Definition at line 26 of file dataexercise.h.

Here is the caller graph for this function:

bool DataExercise::loadDataNode ( const QDomNode  data  ) 

Load the class attributes from the XML tag "exercise"

Definition at line 7 of file dataexercise.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QString DataExercise::name (  )  [inline]

Definition at line 24 of file dataexercise.h.

Here is the caller graph for this function:

QDomElement DataExercise::saveDataNode ( QDomDocument *  xml  ) 

Returns an XML tag "exercise" with the class attributes

Definition at line 136 of file dataexercise.cpp.

void DataExercise::setDescription ( QString  description  )  [inline]

Definition at line 34 of file dataexercise.h.

Here is the call graph for this function:

void DataExercise::setExerciseId ( uint  id  )  [inline]

Definition at line 31 of file dataexercise.h.

Here is the caller graph for this function:

void DataExercise::setExerciseName ( QString  name  )  [inline]

Definition at line 33 of file dataexercise.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void DataExercise::setStatus ( DataExerciseStatus  status  )  [inline]

Definition at line 32 of file dataexercise.h.

Here is the call graph for this function:

Here is the caller graph for this function:

QList<DataAccountingRecord *>* DataExercise::solutionRecords (  )  [inline]

Definition at line 29 of file dataexercise.h.

Here is the caller graph for this function:

DataExerciseStatus DataExercise::status (  )  [inline]

Definition at line 30 of file dataexercise.h.

Here is the caller graph for this function:


The documentation for this class was generated from the following files:

Generated on Mon Jun 15 15:39:29 2009 for Allevo II Doublebookkeeping by  doxygen 1.5.9