Added help for settings 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 #include <QNetworkReply>
16 #include "categorylist.h"
17
18 class XmlReader : public QObject {
19     Q_OBJECT
20 public:
21     XmlReader();
22     ~XmlReader();
23     CategoryList *myCategoryList;
24
25 private:
26     QXmlStreamReader xmlreader;
27
28     QXmlStreamAttributes attr;
29     QString category;
30     QString unit;
31     QString date;
32     QString position;
33     QString user;
34     QString value;
35     QString description;
36
37 signals:
38     void receivedCategoryList();
39     void receivedTop10List();
40
41 public slots:
42     void xmlReadTop10Results(QNetworkReply *device);
43     void xmlReadCategories(QNetworkReply *device);
44     //void xmlReadCategories(QIODevice *device);
45     void xmlShow();
46 };
47
48 #endif // XMLREADER_H