sAlarm 0.5
Public Member Functions
XmlHandler Class Reference
Collaboration diagram for XmlHandler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XmlHandler (Scheduler *scheduler)
 Constructor.
bool startElement (const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
 Called when reader has parsed start element tag.
bool endElement (const QString &namespaceURI, const QString &localName, const QString &qName)
 Called when reader has parsed an end element tag.
bool characters (const QString &characters)
 Called when reader has parsed a chunk of character data.
bool fatalError (const QXmlParseException &exception)
 Called when error occorred.

Constructor & Destructor Documentation

XmlHandler::XmlHandler ( Scheduler scheduler)

Constructor.

Parameters:
schedulerpointer to Scheduler object

Member Function Documentation

bool XmlHandler::characters ( const QString &  characters)

Called when reader has parsed a chunk of character data.

The reader calls this function when it has parsed a chunk of character data. If this function returns false the reader stops parsing and reports an error.

Parameters:
characterscharacter data
bool XmlHandler::endElement ( const QString &  namespaceURI,
const QString &  localName,
const QString &  qName 
)

Called when reader has parsed an end element tag.

The reader calls this function when it has parsed an end element tag. If this function returns false the reader stops parsing and reports an error.

Parameters:
qNamename of the end tag
attsattributes attached to the element
localNamethe local name
namespaceURInamespace URI
See also:
startElement()

Todo:
Zde dodelat - pokud uz kategorie s danym JMENEM existuje - uz ji nepridavat
Todo:
To same s pridavanim upominek - pokud uz nekde existuje identicka upominka, nepridavat ji

bool XmlHandler::fatalError ( const QXmlParseException &  exception)

Called when error occorred.

If any of the handler functions returns false.

Parameters:
exceptioncontains more specific details about error
bool XmlHandler::startElement ( const QString &  namespaceURI,
const QString &  localName,
const QString &  qName,
const QXmlAttributes &  atts 
)

Called when reader has parsed start element tag.

The reader calls this function when it has parsed a start element tag. If this function returns false the reader stops parsing and reports an error.

Parameters:
qNamename of the start tag
attsattributes attached to the element
localNamethe local name
namespaceURInamespace URI
See also:
endElement()

Todo:
delete m_currentText globally


The documentation for this class was generated from the following files:
 All Classes Functions Enumerations