Added license information to all source codes.
[speedfreak] / Client / measuredialog.h
1 /*
2  * CarMainWindow main class
3  *
4  * @author     Janne Änäkkälä <janne.anakkala@fudeco.com>
5  * @copyright  (c) 2010 Speed Freak team
6  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
7  */
8
9 #ifndef MEASUREDIALOG_H
10 #define MEASUREDIALOG_H
11
12 #include "accelerometer.h"
13 #include "measures.h"
14 #include <QDialog>
15 #include <QTimer>
16
17 namespace Ui {
18     class MeasureDialog;
19 }
20
21 class MeasureDialog : public QDialog {
22     Q_OBJECT
23 public:
24     MeasureDialog(QWidget *parent = 0);
25     ~MeasureDialog();
26     Measures *measures;
27     void initializeMeasures();
28 protected:
29     void changeEvent(QEvent *e);
30
31 private:
32     Ui::MeasureDialog *ui;
33
34     QTimer *timer;
35     Accelerometer *accelerometer;
36
37     double time;
38     double speed;
39
40     signals:
41     void speedAchieved();
42
43 private slots:
44     void on_pushButtonAbort_clicked();
45     void after_timeout();
46 };
47
48 #endif // MEASUREDIALOG_H