Incorporated changes from bus project.
[ptas] / src / gpscontroller.h
1 #ifndef GPSCONTROLLER_H
2 #define GPSCONTROLLER_H
3
4 #include "location.h"
5
6 #include "gpscontroller_p.h"
7
8 #include <QObject>
9 #include <QGeoPositionInfo>
10 #include <QGeoPositionInfoSource>
11
12 QTM_USE_NAMESPACE
13
14 class GpsController : public QObject
15 {
16     Q_OBJECT
17
18     public:
19     GpsController();
20     GpsController(GpsControllerPrivate *gpsControllerPrivate);
21
22     ~GpsController();
23
24     public Q_SLOTS:
25     void getGps();
26     void useFakeGps(const QString &fakeLocationLabel);
27     void useLiveGps();
28
29     Q_SIGNALS:
30     void locationChanged(Location *newLocation);
31
32     private:
33     GpsControllerPrivate *q;
34 };
35
36 #endif // GPSCONTROLLER_H