summaryrefslogtreecommitdiffstats
path: root/qt-mobile/gpslocation.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile/gpslocation.h')
-rw-r--r--qt-mobile/gpslocation.h25
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