From 62f7ec11d72aeb4edbf4d6063ed3059912c7545a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 11 Nov 2015 15:19:09 -0800 Subject: Location service: store locations in settings This is rather simplistic and will clutter the settings. I'm not convinced this is the BEST way to do this, but it's a rather straight forward way to get persistant storage of the location fixes. Signed-off-by: Dirk Hohndel --- qt-mobile/gpslocation.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-mobile/gpslocation.h') diff --git a/qt-mobile/gpslocation.h b/qt-mobile/gpslocation.h index b140f705e..f4a2fc737 100644 --- a/qt-mobile/gpslocation.h +++ b/qt-mobile/gpslocation.h @@ -1,10 +1,12 @@ #ifndef GPSLOCATION_H #define GPSLOCATION_H +#include "units.h" #include #include #include #include +#include class GpsLocation : QObject { @@ -16,6 +18,7 @@ private: QGeoPositionInfo lastPos; QGeoPositionInfoSource *gpsSource; void status(QString msg); + QSettings geoSettings; signals: -- cgit v1.2.3-70-g09d2