Send result button added in result dialog.
[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
16 class XmlReader : public QObject
17 {
18 public:
19     XmlReader();
20     ~XmlReader();
21     QStringList getTop10List();
22     QString getTop10AccelerationList();
23     QString getTop10SpeedList();
24     QString getTop10GforceList(); 
25
26 private:
27     QXmlStreamReader xmlreader;
28     QStringList top10List;
29     QString top10AccelerationList;
30     QString top10SpeedList;
31     QString top10GforceList;
32
33     QXmlStreamAttributes attr;
34     QString category;
35     QString unit;
36     QString description;
37     QString position;
38     QString user;
39     QString value;
40
41 public slots:
42     void xmlRead(QIODevice* device);
43     void xmlShow();
44 };
45
46 #endif // XMLREADER_H