gets speed and time from accelerometer.
[speedfreak] / Client / measuredialog.h
1 #ifndef MEASUREDIALOG_H
2 #define MEASUREDIALOG_H
3
4 #include "accelerometer.h"
5 #include <QDialog>
6 #include <QTimer>
7
8 namespace Ui {
9     class MeasureDialog;
10 }
11
12 class MeasureDialog : public QDialog {
13     Q_OBJECT
14 public:
15     MeasureDialog(QWidget *parent = 0);
16     ~MeasureDialog();
17
18 protected:
19     void changeEvent(QEvent *e);
20
21 private:
22     Ui::MeasureDialog *ui;
23
24     QTimer *timer;
25     Accelerometer *accelerometer;
26
27
28     qreal time;
29     qreal speed;
30
31     signals:
32     void speedAchieved();
33
34 private slots:
35     void on_pushButtonAbort_clicked();
36     void after_timeout();
37 };
38
39 #endif // MEASUREDIALOG_H