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

Contents of /infoscreen/screenxmlhandler.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 904 - (show annotations) (download)
Fri Jun 25 13:52:07 2010 UTC (13 years, 10 months ago) by torben
File MIME type: text/plain
File size: 756 byte(s)
pass by reference
1 #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 ModuleType stringToModule(QString name);
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