#include <dataproject.h>
Public Slots | |
| void | dataChanged () |
Signals | |
| void | error (DataError code, QString description) |
Public Member Functions | |
| QList< DataChapter * > | getChapters () |
| QList< DataTableAccount * > | getAccounts () |
| QList< DataFolderHistory * > | getChangeHistory () |
| DataExercise * | exercise (const QString &chapter, const QString &exercise) const |
| DataChapter * | chapter (const QString &name) const |
| void | addChapter (DataChapter *chapter) |
| void | addTableAccount (DataTableAccount *acc) |
| void | clearTableAccount () |
| void | setProjectType (FileType::Type type) |
| FileType::Type | projectType () |
| unsigned int | hash () |
| bool | loadXml (const QString &path) |
| bool | saveXml (const QString &path) |
| bool | hasChanged () |
| DataProject () | |
| ~DataProject () | |
Represents the content of the XML tag <Allevo>, which is the main tag for the XML project file. See doc/Hacking/Proposals/daten.dbku
TODO: The model in doc/ needs to be adapted.
Definition at line 22 of file dataproject.h.
| DataProject::DataProject | ( | ) |
Definition at line 255 of file dataproject.cpp.
| DataProject::~DataProject | ( | ) |
Definition at line 260 of file dataproject.cpp.
| void DataProject::addChapter | ( | DataChapter * | chapter | ) | [inline] |
| void DataProject::addTableAccount | ( | DataTableAccount * | acc | ) | [inline] |
| DataChapter * DataProject::chapter | ( | const QString & | name | ) | const |
| void DataProject::clearTableAccount | ( | ) | [inline] |
| void DataProject::dataChanged | ( | ) | [slot] |
| void DataProject::error | ( | DataError | code, | |
| QString | description | |||
| ) | [signal] |

| DataExercise * DataProject::exercise | ( | const QString & | chapter, | |
| const QString & | exercise | |||
| ) | const |
| QList<DataTableAccount *> DataProject::getAccounts | ( | ) | [inline] |
Definition at line 28 of file dataproject.h.
| QList<DataFolderHistory *> DataProject::getChangeHistory | ( | ) | [inline] |
| QList<DataChapter *> DataProject::getChapters | ( | ) | [inline] |
| bool DataProject::hasChanged | ( | ) | [inline] |
Definition at line 48 of file dataproject.h.
| unsigned int DataProject::hash | ( | ) |
Hash value of data (the account table (Kontenplan) is *NOT* hashed, tell me if this is wrong -David
Definition at line 270 of file dataproject.cpp.

| bool DataProject::loadXml | ( | const QString & | path | ) |
Loads the class attributes from XML project file path
Definition at line 12 of file dataproject.cpp.

| FileType::Type DataProject::projectType | ( | ) |
Definition at line 250 of file dataproject.cpp.
| bool DataProject::saveXml | ( | const QString & | path | ) |
Writes an XML project file to path
Definition at line 140 of file dataproject.cpp.

| void DataProject::setProjectType | ( | FileType::Type | type | ) |
Definition at line 245 of file dataproject.cpp.
1.5.9