X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fxmlreader.h;h=6dbab29a779173126c023f6068ec8f5fabe0410b;hp=ec984ca7a681917492d934861ecd4b5318195e5e;hb=c242a09217383da0664e3270c2f1c181cc263645;hpb=9a81bc8fe5cb944592f815192817c4056cb168d9 diff --git a/Client/xmlreader.h b/Client/xmlreader.h index ec984ca..6dbab29 100644 --- a/Client/xmlreader.h +++ b/Client/xmlreader.h @@ -13,36 +13,47 @@ #include #include #include +#include "categorylist.h" -class XmlReader : public QObject -{ +class ProfileDialog; + +class XmlReader : public QObject { + Q_OBJECT public: XmlReader(); ~XmlReader(); - QStringList getTop10List(); - QString getTop10AccelerationList(); - QString getTop10SpeedList(); - QString getTop10GforceList(); + CategoryList *myCategoryList; + void xmlReadProfile(QIODevice *device, ProfileDialog *profileDialog); + QStringList *usersList; private: QXmlStreamReader xmlreader; - QStringList top10List; - QString top10AccelerationList; - QString top10SpeedList; - QString top10GforceList; - QXmlStreamAttributes attr; + ProfileDialog *profile; QString category; QString unit; - QString description; + QString date; QString position; QString user; QString value; + QString description; + QStringList *usersInfo; + +signals: + void receivedCategoryList(); + void receivedTop10List(); + void userInfo(QStringList *userInfo); public slots: - //void xmlRead(QIODevice* device); - void xmlRead(QNetworkReply* device); + void xmlReadTop10Results(QNetworkReply *device, QString userName); + void xmlReadCategories(QNetworkReply *device); + //void xmlReadCategories(QIODevice *device); void xmlShow(); + + //void xmlReadUserInfo(QIODevice *device); + void xmlReadUserInfo(QNetworkReply *device); + void xmlReadUsers(QNetworkReply *device); + //void xmlReadUsers(QIODevice *device); }; #endif // XMLREADER_H