2 * Http client Connects application to server.
4 * @author Tiina Kivilinna-Korhola
5 * @copyright (c) 2010 Speed Freak team
6 * license http://opensource.org/licenses/gpl-license.php GNU Public License
12 #include <QNetworkAccessManager>
13 #include <QNetworkRequest>
14 #include <QNetworkReply>
15 #include "xmlwriter.h"
16 #include "xmlreader.h"
21 class HttpClient : public QObject {
24 HttpClient(CarMainWindow *myCarw);
26 XmlWriter *myXmlwriter;
27 XmlReader *myXmlreader;
30 CarMainWindow *myMainw;
31 QNetworkAccessManager *netManager;
34 void requestRegistration();
36 void sendResultXml(QString category);
38 void requestTopList(QString category, QString limit);
39 void requestCategories();
42 void ackOfRegistration();
43 void ackOfCategories();
46 void errorFromServer(QNetworkReply::NetworkError);
50 #endif // HTTPCLIENT_H