/[projects]/infoscreen/screenxmlhandler.h
ViewVC logotype

Annotation of /infoscreen/screenxmlhandler.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 528 - (hide annotations) (download)
Wed Jan 6 22:18:52 2010 UTC (14 years, 4 months ago) by torben
File MIME type: text/plain
File size: 711 byte(s)
first functioning clientside xml-controlled switch
1 torben 528 #ifndef SCREENXMLHANDLER_H
2     #define SCREENXMLHANDLER_H
3    
4     #include <QXmlDefaultHandler>
5     #include <QVector>
6    
7     #include "screenitem.h"
8    
9     class ScreenXmlHandler : public QXmlDefaultHandler
10     {
11     public:
12     ScreenXmlHandler();
13    
14     bool readXml(QString uri);
15    
16     bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &attributes);
17     bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName);
18     bool characters(const QString &str);
19    
20     QVector<ScreenItem> getScreenSet() {return screenSet;}
21    
22     private:
23     QString currentText;
24    
25     ScreenItem tempItem;
26     QVector<ScreenItem> screenSet;
27    
28     };
29    
30     #endif // SCREENXMLHANDLER_H

  ViewVC Help
Powered by ViewVC 1.1.20