Development: route load/save.
[speedfreak] / Client / mainwindow.cpp
index 3e8d531..04aeb97 100644 (file)
@@ -180,7 +180,6 @@ MainWindow::~MainWindow()
         delete customButtonHelp;
 }
 
-
 /**
   *
   */
@@ -220,7 +219,7 @@ void MainWindow::clientRequestTopList(int index)
 }
 
 /**
-  *This function is used to set items to category combobox. Top-tab view.
+  *This function is used to set items to category combobox.
   *@param
   */
 void MainWindow::setCategoryCompoBox()
@@ -284,11 +283,14 @@ void MainWindow::clientUserLogin()
 
 /**
   * This function send route data to server.
+  * @param QString oldName, old file name
+  * @param QString newName, new file name
+  * @param int i
   */
-void MainWindow::clientSendRoute()
+void MainWindow::clientSendRoute(QString oldName, QString newName, int i)
 {
     if(httpClient)
-        httpClient->sendRouteXml();
+        httpClient->sendRouteXml(oldName, newName, i);
 }
 
 /**
@@ -317,7 +319,7 @@ void MainWindow::killDialog()
     }
     if(routeSaveDialog)
     {
-        qDebug() << "__MW kill: routeSaveDialog";
+        //qDebug() << "__MW kill: routeSaveDialog";
         //delete routeSaveDialog;
         //routeSaveDialog = NULL;
     }
@@ -375,7 +377,7 @@ void MainWindow::OpenRouteDialog()
     if(!routeSaveDialog)
         routeSaveDialog = new RouteSaveDialog;
 
-    connect(routeSaveDialog, SIGNAL(sendroute()), this, SLOT(clientSendRoute()));
+    connect(routeSaveDialog, SIGNAL(sendroute(QString,QString,int)), this, SLOT(clientSendRoute(QString,QString,int)));
     connect(routeSaveDialog, SIGNAL(rejected()), this, SLOT(killDialog()));
     routeSaveDialog->show();
 }