Youtube video and text (draft).
[speedfreak] / Client / routesavedialog.h
1 /*
2  * Route save dialog class
3  *
4  * @author     Toni Jussila <toni.jussila@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 ROUTESAVEDIALOG_H
10 #define ROUTESAVEDIALOG_H
11
12 #include <QDialog>
13 #include <QPixmap>
14 #include <QIcon>
15 #include <QSize>
16 #include <QTimer>
17 #include <maemo5location.h>
18 #include "gpsdata.h"
19 #include "routedialog.h"
20
21 namespace Ui {
22     class RouteSaveDialog;
23 }
24
25 class RouteSaveDialog : public QDialog {
26     Q_OBJECT
27 public:
28     RouteSaveDialog(QWidget *parent = 0);
29     ~RouteSaveDialog();
30
31 protected:
32     void changeEvent(QEvent *e);
33
34 private:
35     Ui::RouteSaveDialog *ui;
36     QTimer *timerSatellitePicture;
37     QTimer *timerRoutePicture;
38     GPSData *gpsData;
39     Maemo5Location *location;
40     RouteDialog *routeDialog;
41     QString gpsSpeed;
42     QPixmap *pixmapRouteStop;
43     QPixmap *pixmapRouteStart;
44     QIcon *iconRouteStop;
45     QIcon *iconRouteStart;
46     bool buttonStatus;
47
48 private slots:
49     void on_buttonRouteStartStop_clicked();
50     void timerSatellitePictureTimeout();
51     void timerRoutePictureTimeout();
52     void gpsStatus();
53 };
54
55 #endif // ROUTESAVEDIALOG_H