subsurface/qt-mobile/gpslocation.h

28 lines
449 B
C
Raw Normal View History

#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 newPosition(QGeoPositionInfo pos);
void updateTimeout();
};
#endif // GPSLOCATION_H