diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-11-11 10:52:52 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-11 12:37:40 -0800 |
commit | 12a6a8f2b3afe4c6376b874f609be933ed5dbe5c (patch) | |
tree | 806621df5324f625a078b0f35e7105ee274f6220 /gpslocation.h | |
parent | 136b87e7c00b79ba8ee316ecf66dbc326e78c823 (diff) | |
download | subsurface-12a6a8f2b3afe4c6376b874f609be933ed5dbe5c.tar.gz |
Location service: request position update
Mostly still just experimental code - now it tries to get an actual
position.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gpslocation.h')
-rw-r--r-- | gpslocation.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gpslocation.h b/gpslocation.h index 68f574bd7..8e26fd25e 100644 --- a/gpslocation.h +++ b/gpslocation.h @@ -1,16 +1,25 @@ #ifndef GPSLOCATION_H #define GPSLOCATION_H +#include <QObject> #include <QGeoCoordinate> +#include <QGeoPositionInfoSource> +#include <QGeoPositionInfo> -class GpsLocation +class GpsLocation : QObject { + Q_OBJECT public: - GpsLocation(); + GpsLocation(QObject *parent); + +private: + QGeoPositionInfo lastPos; signals: public slots: + void newPosition(QGeoPositionInfo pos); + void updateTimeout(); }; #endif // GPSLOCATION_H |