Added to GUI an info label and feeding text into it.
[speedfreak] / Client / httpclient.h
index f01f23b..bdacf0e 100644 (file)
@@ -18,28 +18,31 @@ class CarMainWindow;
 
 
 
-class HttpClient : public QObject
-{
+class HttpClient : public QObject {
     Q_OBJECT
 public:
     HttpClient(CarMainWindow *myCarw);
     ~HttpClient();
+    XmlWriter *myXmlwriter;
+    XmlReader *myXmlreader;
 
 private:
     CarMainWindow *myMainw;
     QNetworkAccessManager *netManager;
-    XmlWriter *myXmlwriter;
-    XmlReader *myXmlreader;
 
 public slots:
     void requestRegistration();
-    void sendResultXml();
+    void checkLogin();
+    void sendResultXml(QString category);
+    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);
 
 };