DataProject Class Reference

Data class holding the information of a whole project; a project consists of chapters. More...

#include <dataproject.h>

List of all members.

Public Slots

void dataChanged ()

Signals

void error (DataError code, QString description)

Public Member Functions

QList< DataChapter * > getChapters ()
QList< DataTableAccount * > getAccounts ()
QList< DataFolderHistory * > getChangeHistory ()
DataExerciseexercise (const QString &chapter, const QString &exercise) const
DataChapterchapter (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 ()


Detailed Description

Data class holding the information of a whole project; a project consists of chapters.

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.


Constructor & Destructor Documentation

DataProject::DataProject (  ) 

Definition at line 255 of file dataproject.cpp.

DataProject::~DataProject (  ) 

Definition at line 260 of file dataproject.cpp.


Member Function Documentation

void DataProject::addChapter ( DataChapter chapter  )  [inline]

Definition at line 32 of file dataproject.h.

Here is the caller graph for this function:

void DataProject::addTableAccount ( DataTableAccount acc  )  [inline]

Definition at line 34 of file dataproject.h.

Here is the caller graph for this function:

DataChapter * DataProject::chapter ( const QString &  name  )  const

Definition at line 307 of file dataproject.cpp.

Here is the caller graph for this function:

void DataProject::clearTableAccount (  )  [inline]

Definition at line 35 of file dataproject.h.

Here is the caller graph for this function:

void DataProject::dataChanged (  )  [slot]

Definition at line 319 of file dataproject.cpp.

Here is the caller graph for this function:

void DataProject::error ( DataError  code,
QString  description 
) [signal]

Here is the caller graph for this function:

DataExercise * DataProject::exercise ( const QString &  chapter,
const QString &  exercise 
) const

Definition at line 288 of file dataproject.cpp.

Here is the caller graph for this function:

QList<DataTableAccount *> DataProject::getAccounts (  )  [inline]

Definition at line 28 of file dataproject.h.

QList<DataFolderHistory *> DataProject::getChangeHistory (  )  [inline]

Definition at line 29 of file dataproject.h.

Here is the caller graph for this function:

QList<DataChapter *> DataProject::getChapters (  )  [inline]

Definition at line 27 of file dataproject.h.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

bool DataProject::loadXml ( const QString &  path  ) 

Loads the class attributes from XML project file path

Definition at line 12 of file dataproject.cpp.

Here is the call graph for this function:

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.

Here is the call graph for this function:

void DataProject::setProjectType ( FileType::Type  type  ) 

Definition at line 245 of file dataproject.cpp.


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

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