XmlWrite Class Reference

The XmlWrite class writes a xml project file based on the given information.

#include <xmlrw.h>

Collaboration diagram for XmlWrite:

Collaboration graph
[legend]
List of all members.

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

Constructor & Destructor Documentation

XmlWrite::XmlWrite (  ) 


Member Function Documentation

void XmlWrite::addController ( ControllerInterface controller  ) 

add all necessary controller information to the project xml file

Parameters:
controller shall be saved

void XmlWrite::addProperty ( IProperty parentProperty,
QDomElement *  rootElem 
) [private]

writes all properties of the parent property under the root xml element

Parameters:
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

Parameters:
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

Note:
that you add all necessary information before you call this method
Exceptions:
AccessFailureException is thrown when the access to a file was denied
Parameters:
filename is the xml project file
Returns:
true on success otherwise false
See also:
addScene() and addController()


Member Data Documentation

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


The documentation for this class was generated from the following files:
Generated on Thu Apr 5 13:13:29 2007 for LCDBuilder by  doxygen 1.4.7