X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fhttpclient.h;h=772d1b8ce72cb94a77910adb87e0818108124a91;hp=0ade96c836bce0d2e1a2ca16ea7eff63b63364cf;hb=469014c551522b73afea7af43e73fa7194657b05;hpb=172164935645ee70f7221d6f956dc09862d8e36d diff --git a/Client/httpclient.h b/Client/httpclient.h index 0ade96c..772d1b8 100644 --- a/Client/httpclient.h +++ b/Client/httpclient.h @@ -1,9 +1,11 @@ /* * Http client Connects application to server. * - * @author Tiina Kivilinna-Korhola - * @copyright (c) 2010 Speed Freak team - * license http://opensource.org/licenses/gpl-license.php GNU Public License + * @author Tiina Kivilinna-Korhola + * @author Olavi Pulkkinen + * @author Toni Jussila + * @copyright (c) 2010 Speed Freak team + * license http://opensource.org/licenses/gpl-license.php GNU Public License */ #ifndef HTTPCLIENT_H @@ -12,19 +14,41 @@ #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; +signals: + void loginOK(); + 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); };