mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
|