#include <xmlrw.h>
Collaboration diagram for XmlWrite:

Public Member Functions | |
| XmlWrite () | |
| bool | write (const QString &) |
| void | addScene (const QGraphicsScene *, const QString &, double) |
| void | addController (ControllerInterface *) |
Private Member Functions | |
| void | addProperty (IProperty *, QDomElement *) |
Private Attributes | |
| QDomDocument | m_domDoc |
| QDomElement | m_rootElem |
| PropertyModel | m_model |
| XmlWrite::XmlWrite | ( | ) |
| void XmlWrite::addController | ( | ControllerInterface * | controller | ) |
add all necessary controller information to the project xml file
| controller | shall be saved |
| void XmlWrite::addProperty | ( | IProperty * | parentProperty, | |
| QDomElement * | rootElem | |||
| ) | [private] |
writes all properties of the parent property under the root xml element
| parentProperty | contains all properties that shall be saved under the root element | |
| rootElem | is the root xml element under which all properties are stored |
| void XmlWrite::addScene | ( | const QGraphicsScene * | scene, | |
| const QString & | title, | |||
| double | time | |||
| ) |
add the content of a scene to the xml project file
| scene | shall be saved | |
| title | of the scene | |
| time | in minutes to the next scene |
| bool XmlWrite::write | ( | const QString & | filename | ) |
writes all given information to a xml project file
| AccessFailureException | is thrown when the access to a file was denied |
| filename | is the xml project file |
QDomDocument XmlWrite::m_domDoc [private] |
contains the content of the project xml file
PropertyModel XmlWrite::m_model [private] |
QDomElement XmlWrite::m_rootElem [private] |
is the first xml element of the project xml file
1.4.7