Changed to MADDE; moved sb1 files to zouba.sb1 and made new zouba.madde for madde...
[ptas] / zouba.sb1 / gpscontroller.h
1 #ifndef GPSCONTROLLER_H
2 #define GPSCONTROLLER_H
3
4 #include "location.h"
5
6 #include <QObject>
7 #include <QGeoPositionInfo>
8 #include <QGeoPositionInfoSource>
9
10 QTM_USE_NAMESPACE
11
12 class GpsController : public QObject
13 {
14   Q_OBJECT
15
16 public:
17   GpsController();
18
19   ~GpsController();
20
21 public Q_SLOTS:
22   void updateLocation( QGeoPositionInfo positionInfo );
23   void getGps();
24
25 Q_SIGNALS:
26   void locationChanged( Location *newLocation );
27
28 private:
29   QGeoPositionInfoSource *m_location;
30   Location *currentLocation;
31 };
32
33 #endif // GPSCONTROLLER_H