Conflict fixed: mainwindow.cpp and httpclient.cpp
[speedfreak] / Client / httpclient.h
index ff50ffa..772d1b8 100644 (file)
@@ -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 <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();
     void ackOfResult();
+    void ackOfRoute();
     void ackOfRegistration();
     void ackOfCategories();
     void ackOfToplist();