Added button for sending route to server.
[speedfreak] / Client / measuredialog.h
index 24a3773..399522d 100644 (file)
@@ -1,7 +1,18 @@
+/*
+ * CarMainWindow main class
+ *
+ * @author     Janne Änäkkälä <janne.anakkala@fudeco.com>
+ * @copyright  (c) 2010 Speed Freak team
+ * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
+ */
+
 #ifndef MEASUREDIALOG_H
 #define MEASUREDIALOG_H
 
+#include "accelerometer.h"
+#include "measures.h"
 #include <QDialog>
+#include <QTimer>
 
 namespace Ui {
     class MeasureDialog;
@@ -12,12 +23,26 @@ class MeasureDialog : public QDialog {
 public:
     MeasureDialog(QWidget *parent = 0);
     ~MeasureDialog();
-
+    Measures *measures;
+    void initializeMeasures();
 protected:
     void changeEvent(QEvent *e);
 
 private:
     Ui::MeasureDialog *ui;
+
+    QTimer *timer;
+    Accelerometer *accelerometer;
+
+    double time;
+    double speed;
+
+    signals:
+    void speedAchieved();
+
+private slots:
+    void on_pushButtonAbort_clicked();
+    void after_timeout();
 };
 
 #endif // MEASUREDIALOG_H