#include <dataexercise.h>
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 () | |
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.
| DataExercise::DataExercise | ( | ) |
Definition at line 200 of file dataexercise.cpp.
| DataExercise::DataExercise | ( | DataExercise & | exercise | ) |
| DataExercise::~DataExercise | ( | ) |
Definition at line 215 of file dataexercise.cpp.
| QList<DataAccountingRecord *>* DataExercise::accountingRecords | ( | ) | [inline] |
| QList<DataAccount *>* DataExercise::accounts | ( | ) | [inline] |
| void DataExercise::changed | ( | ) | [signal] |

| void DataExercise::dataChanged | ( | ) | [inline, slot] |
Definition at line 48 of file dataexercise.h.


| QString DataExercise::description | ( | ) | [inline] |
| void DataExercise::hash | ( | unsigned int & | startValue | ) |
Hash value of data
Definition at line 177 of file dataexercise.cpp.
| uint DataExercise::id | ( | ) | [inline] |
| bool DataExercise::loadDataNode | ( | const QDomNode | data | ) |
Load the class attributes from the XML tag "exercise"
Definition at line 7 of file dataexercise.cpp.


| QString DataExercise::name | ( | ) | [inline] |
| 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] |
| void DataExercise::setExerciseId | ( | uint | id | ) | [inline] |
| void DataExercise::setExerciseName | ( | QString | name | ) | [inline] |
Definition at line 33 of file dataexercise.h.


| void DataExercise::setStatus | ( | DataExerciseStatus | status | ) | [inline] |
Definition at line 32 of file dataexercise.h.


| QList<DataAccountingRecord *>* DataExercise::solutionRecords | ( | ) | [inline] |
| DataExerciseStatus DataExercise::status | ( | ) | [inline] |
1.5.9