DataChapter Class Reference

Data class holding the information of one chapter; chapters contain exercises. More...

#include <datachapter.h>

List of all members.

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)
DataExerciseexercise (QString exerciseName)
void addExercise (DataExercise *ex)
void hash (unsigned int &startValue)
bool loadDataNode (const QDomNode data)
QDomElement saveDataNode (QDomDocument *xml)
 DataChapter ()
 ~DataChapter ()


Detailed Description

Data class holding the information of one chapter; chapters contain exercises.

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.


Constructor & Destructor Documentation

DataChapter::DataChapter (  ) 

Definition at line 69 of file datachapter.cpp.

DataChapter::~DataChapter (  ) 

Definition at line 73 of file datachapter.cpp.


Member Function Documentation

void DataChapter::addExercise ( DataExercise ex  ) 

Definition at line 64 of file datachapter.cpp.

Here is the caller graph for this function:

void DataChapter::changed (  )  [signal]

Here is the caller graph for this function:

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

Definition at line 41 of file datachapter.h.

Here is the call graph for this function:

Here is the caller graph for this function:

DataExercise * DataChapter::exercise ( QString  exerciseName  ) 

Definition at line 79 of file datachapter.cpp.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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]

Definition at line 25 of file datachapter.h.

Here is the caller graph for this function:

void DataChapter::setId ( uint  id  )  [inline]

Definition at line 24 of file datachapter.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:26 2009 for Allevo II Doublebookkeeping by  doxygen 1.5.9