summaryrefslogtreecommitdiffstats
path: root/gpslocation.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpslocation.h')
-rw-r--r--gpslocation.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/gpslocation.h b/gpslocation.h
index 68f574bd7..8e26fd25e 100644
--- a/gpslocation.h
+++ b/gpslocation.h
@@ -1,16 +1,25 @@
#ifndef GPSLOCATION_H
#define GPSLOCATION_H
+#include <QObject>
#include <QGeoCoordinate>
+#include <QGeoPositionInfoSource>
+#include <QGeoPositionInfo>
-class GpsLocation
+class GpsLocation : QObject
{
+ Q_OBJECT
public:
- GpsLocation();
+ GpsLocation(QObject *parent);
+
+private:
+ QGeoPositionInfo lastPos;
signals:
public slots:
+ void newPosition(QGeoPositionInfo pos);
+ void updateTimeout();
};
#endif // GPSLOCATION_H