mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
12a6a8f2b3
Mostly still just experimental code - now it tries to get an actual position. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
25 lines
386 B
C++
25 lines
386 B
C++
#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;
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
void newPosition(QGeoPositionInfo pos);
|
|
void updateTimeout();
|
|
};
|
|
|
|
#endif // GPSLOCATION_H
|