subsurface/gpslocation.h
Dirk Hohndel 12a6a8f2b3 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>
2015-11-11 12:37:40 -08:00

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