X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fhttpclient.h;h=672a5a34013f03426504deb058481cbc65ff3abc;hp=0ade96c836bce0d2e1a2ca16ea7eff63b63364cf;hb=d07fff46e25495a5e3737804e4217ad363b4a040;hpb=172164935645ee70f7221d6f956dc09862d8e36d diff --git a/Client/httpclient.h b/Client/httpclient.h index 0ade96c..672a5a3 100644 --- a/Client/httpclient.h +++ b/Client/httpclient.h @@ -12,19 +12,38 @@ #include #include #include +#include "xmlwriter.h" +#include "xmlreader.h" +class MainWindow; -class HttpClient : public QObject -{ + +class HttpClient : public QObject { Q_OBJECT public: - HttpClient(); + HttpClient(MainWindow *myCarw); ~HttpClient(); + XmlWriter *myXmlwriter; + XmlReader *myXmlreader; private: + MainWindow *myMainw; QNetworkAccessManager *netManager; public slots: + void requestRegistration(); + void checkLogin(); + void sendResultXml(QString category, double result); + void sendRouteXml(); + void requestTopList(QString category, QString limit); + void requestCategories(); + void ackOfResult(); + void ackOfRoute(); + void ackOfRegistration(); + void ackOfCategories(); + void ackOfToplist(); + void ackOfLogin(); + void errorFromServer(QNetworkReply::NetworkError); };