#ifndef GPSLOCATION_H #define GPSLOCATION_H #include <QObject> #include <QGeoCoordinate> #include <QGeoPositionInfoSource> #include <QGeoPositionInfo> class GpsLocation : QObject { Q_OBJECT public: GpsLocation(QObject *parent); private: QGeoPositionInfo lastPos; QGeoPositionInfoSource *gpsSource; void status(QString msg); signals: public slots: void serviceEnable(bool toggle); void newPosition(QGeoPositionInfo pos); void updateTimeout(); }; #endif // GPSLOCATION_H