Added support for 3d route in routedialog
[speedfreak] / Client / xmlreader.h
index 615ca36..43615a7 100644 (file)
@@ -1,31 +1,29 @@
-/**
-  * Parse xml file
-  *
-  * @author     Toni Jussila <toni.jussila@fudeco.com>
-  * @author     Tiina Kivilinna-Korhola <tiina.kivilinna-korhola@fudeco.com>
-  * @copyright  (c) 2010 Speed Freak team
-  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
-  */
+/*
+ * Parse xml file
+ *
+ * @author     Toni Jussila <toni.jussila@fudeco.com>
+ * @author     Tiina Kivilinna-Korhola <tiina.kivilinna-korhola@fudeco.com>
+ * @copyright  (c) 2010 Speed Freak team
+ * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
+ */
 
 #ifndef XMLREADER_H
 #define XMLREADER_H
 
 #include <QXmlStreamReader>
 #include <QStringList>
+#include <QNetworkReply>
 
 class XmlReader : public QObject
 {
 public:
     XmlReader();
     ~XmlReader();
-    QStringList getTop10List();
-    QString getTop10AccelerationList();
-    QString getTop10SpeedList();
-    QString getTop10GforceList(); 
 
 private:
     QXmlStreamReader xmlreader;
-    QStringList top10List;
+    QStringList top10List;              // Next 4 to be removed. Categorylist now in own class.
+    QStringList categoryList;
     QString top10AccelerationList;
     QString top10SpeedList;
     QString top10GforceList;
@@ -39,7 +37,9 @@ private:
     QString value;
 
 public slots:
-    void xmlRead(QIODevice* device);
+    void xmlReadTop10Results(QNetworkReply *device);
+    void xmlReadCategories(QNetworkReply *device);
+    //void xmlReadCategories(QIODevice *device);
     void xmlShow();
 };