+
+/**
+ * This function send route data to server.
+ */
+void MainWindow::clientSendRoute()
+{
+ httpClient->sendRouteXml();
+}
+
+/**
+ * This function send acceleration data to server.
+ */
+void MainWindow::clientSendResult(QString category, double result)
+{
+ qDebug() << "__clientSendResult";
+ if(accstart) {
+ qDebug() << "_clientSendResult, calling server";
+ httpClient->sendResultXml(category, result);
+ }
+}
+/**
+ * This slot function called when ever dialog finished.
+ */
+void MainWindow::killDialog()
+{
+ if(topResultDialog)
+ {
+ delete topResultDialog;
+ topResultDialog = NULL;
+ }
+ else if(routeSaveDialog)
+ {
+ delete routeSaveDialog;
+ routeSaveDialog = NULL;
+ }
+ else if(accstart)
+ {
+ delete accstart;
+ accstart = NULL;
+ }
+}