/*
* 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 <olavi.pulkkinen@fudeco.com>
+ * @author Toni Jussila <toni.jussila@fudeco.com>
+ * @copyright (c) 2010 Speed Freak team
+ * license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
#ifndef HTTPCLIENT_H
#include <QNetworkReply>
#include "xmlwriter.h"
#include "xmlreader.h"
-class CarMainWindow;
+class MainWindow;
class HttpClient : public QObject {
Q_OBJECT
public:
- HttpClient(CarMainWindow *myCarw);
+ HttpClient(MainWindow *myCarw);
~HttpClient();
XmlWriter *myXmlwriter;
XmlReader *myXmlreader;
private:
- CarMainWindow *myMainw;
+ MainWindow *myMainw;
QNetworkAccessManager *netManager;
+signals:
+ void loginOK();
+
public slots:
void requestRegistration();
void checkLogin();
- void sendResultXml(QString category);
+ void sendResultXml(QString category, double result);
void sendRouteXml();
void requestTopList(QString category, QString limit);
void requestCategories();