diff options
Diffstat (limited to 'qt-mobile/gpslocation.h')
-rw-r--r-- | qt-mobile/gpslocation.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/qt-mobile/gpslocation.h b/qt-mobile/gpslocation.h new file mode 100644 index 000000000..8e26fd25e --- /dev/null +++ b/qt-mobile/gpslocation.h @@ -0,0 +1,25 @@ +#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 |