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

Annotation of /infoscreen/screenxmlhandler.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 638 - (hide annotations) (download)
Wed Apr 7 17:00:07 2010 UTC (14 years, 1 month ago) by torben
File MIME type: text/plain
File size: 755 byte(s)
Adopt infoscreen to local play mode
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 torben 638 ModuleType stringToModule(QString name);
22 torben 528 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