#ifndef GPSLOCATION_H #define GPSLOCATION_H #include "units.h" #include #include #include #include #include class GpsLocation : QObject { Q_OBJECT public: GpsLocation(QObject *parent); bool applyLocations(); private: QGeoPositionInfo lastPos; QGeoPositionInfoSource *gpsSource; void status(QString msg); QSettings geoSettings; signals: public slots: void serviceEnable(bool toggle); void newPosition(QGeoPositionInfo pos); void updateTimeout(); }; #endif // GPSLOCATION_H