#include <datachapter.h>
Public Slots | |
void | dataChanged () |
Signals | |
void | changed () |
Public Member Functions | |
QList< DataExercise * > | exercises () |
QString | name () |
uint | id () |
void | setId (uint id) |
void | setChapterName (QString name) |
DataExercise * | exercise (QString exerciseName) |
void | addExercise (DataExercise *ex) |
void | hash (unsigned int &startValue) |
bool | loadDataNode (const QDomNode data) |
QDomElement | saveDataNode (QDomDocument *xml) |
DataChapter () | |
~DataChapter () |
Represents the content of the XML tag <chapter>, which is stored in <Allevo>. See doc/Hacking/Proposals/daten.dbku
Definition at line 16 of file datachapter.h.
DataChapter::DataChapter | ( | ) |
Definition at line 69 of file datachapter.cpp.
DataChapter::~DataChapter | ( | ) |
Definition at line 73 of file datachapter.cpp.
void DataChapter::addExercise | ( | DataExercise * | ex | ) |
void DataChapter::changed | ( | ) | [signal] |
void DataChapter::dataChanged | ( | ) | [inline, slot] |
Definition at line 41 of file datachapter.h.
DataExercise * DataChapter::exercise | ( | QString | exerciseName | ) |
QList<DataExercise *> DataChapter::exercises | ( | ) | [inline] |
Definition at line 21 of file datachapter.h.
void DataChapter::hash | ( | unsigned int & | startValue | ) |
Hash value of data
Definition at line 51 of file datachapter.cpp.
uint DataChapter::id | ( | ) | [inline] |
Definition at line 23 of file datachapter.h.
bool DataChapter::loadDataNode | ( | const QDomNode | data | ) |
Load the class attributes from the XML tag "chapter"
Definition at line 7 of file datachapter.cpp.
QString DataChapter::name | ( | ) | [inline] |
Definition at line 22 of file datachapter.h.
QDomElement DataChapter::saveDataNode | ( | QDomDocument * | xml | ) |
Returns an XML tag "chapter" with the class attributes
Definition at line 38 of file datachapter.cpp.
void DataChapter::setChapterName | ( | QString | name | ) | [inline] |
void DataChapter::setId | ( | uint | id | ) | [inline] |