Added msgboxes to server replies acknowledgefunctions.
[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     QStringList categoryList;
27     QString top10AccelerationList;
28     QString top10SpeedList;
29     QString top10GforceList;
30
31     QXmlStreamAttributes attr;
32     QString category;
33     QString unit;
34     QString description;
35     QString position;
36     QString user;
37     QString value;
38
39 public slots:
40     void xmlReadTop10Results(QNetworkReply *device);
41     void xmlReadCategories(QNetworkReply *device);
42     //void xmlReadCategories(QIODevice *device);
43     void xmlShow();
44 };
45
46 #endif // XMLREADER_H