X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fxmlreader.h;h=4a751a31a649def560169133578749f1a51b4572;hp=615ca360b5616466f8afea00a0de163f31c770a8;hb=e59c84a91124661c2801892a42846e753538f680;hpb=762e24bbb530f14ecfd444d0235627d0ca61663b diff --git a/Client/xmlreader.h b/Client/xmlreader.h index 615ca36..4a751a3 100644 --- a/Client/xmlreader.h +++ b/Client/xmlreader.h @@ -1,45 +1,47 @@ -/** - * Parse xml file - * - * @author Toni Jussila - * @author Tiina Kivilinna-Korhola - * @copyright (c) 2010 Speed Freak team - * @license http://opensource.org/licenses/gpl-license.php GNU Public License - */ +/* + * Parse xml file + * + * @author Toni Jussila + * @author Tiina Kivilinna-Korhola + * @copyright (c) 2010 Speed Freak team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + */ #ifndef XMLREADER_H #define XMLREADER_H #include #include +#include +#include "categorylist.h" -class XmlReader : public QObject -{ +class XmlReader : public QObject { + Q_OBJECT public: XmlReader(); ~XmlReader(); - QStringList getTop10List(); - QString getTop10AccelerationList(); - QString getTop10SpeedList(); - QString getTop10GforceList(); + CategoryList *myCategoryList; private: QXmlStreamReader xmlreader; - QStringList top10List; - QString top10AccelerationList; - QString top10SpeedList; - QString top10GforceList; QXmlStreamAttributes attr; QString category; QString unit; - QString description; + QString date; QString position; QString user; QString value; + QString description; + +signals: + void receivedCategoryList(); + void receivedTop10List(); public slots: - void xmlRead(QIODevice* device); + void xmlReadTop10Results(QNetworkReply *device); + void xmlReadCategories(QNetworkReply *device); + //void xmlReadCategories(QIODevice *device); void xmlShow(); };