Categorylist class
[speedfreak] / Client / xmlreader.h
1 /*
2  * Parse xml file
3  *
4  * @author     Toni Jussila <toni.jussila@fudeco.com>
5  * @author     Tiina Kivilinna-Korhola <tiina.kivilinna-korhola@fudeco.com>
6  * @copyright  (c) 2010 Speed Freak team
7  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
8  */
9
10 #ifndef XMLREADER_H
11 #define XMLREADER_H
12
13 #include <QXmlStreamReader>
14 #include <QStringList>
15 #include <QNetworkReply>
16
17 class XmlReader : public QObject
18 {
19 public:
20     XmlReader();
21     ~XmlReader();
22
23 private:
24     QXmlStreamReader xmlreader;
25     QStringList top10List;              // Next 4 to be removed. Categorylist now in own class.
26     QString top10AccelerationList;
27     QString top10SpeedList;
28     QString top10GforceList;
29
30     QXmlStreamAttributes attr;
31     QString category;
32     QString unit;
33     QString description;
34     QString position;
35     QString user;
36     QString value;
37
38 public slots:
39     void xmlRead(QNetworkReply *device);
40     void xmlShow();
41 };
42
43 #endif // XMLREADER_H