summaryrefslogtreecommitdiffstats
path: root/qt-mobile/gpslocation.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-11 15:19:09 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-11 15:28:10 -0800
commit62f7ec11d72aeb4edbf4d6063ed3059912c7545a (patch)
treece80e830b90477cb9b3a4e13af2d6dfce268c42f /qt-mobile/gpslocation.h
parentcd7d6ae6e51a8422a141fc389b2eca232b7e93c5 (diff)
downloadsubsurface-62f7ec11d72aeb4edbf4d6063ed3059912c7545a.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/gpslocation.h')
-rw-r--r--qt-mobile/gpslocation.h3
1 files changed, 3 insertions, 0 deletions
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 <QObject>
#include <QGeoCoordinate>
#include <QGeoPositionInfoSource>
#include <QGeoPositionInfo>
+#include <QSettings>
class GpsLocation : QObject
{
@@ -16,6 +18,7 @@ private:
QGeoPositionInfo lastPos;
QGeoPositionInfoSource *gpsSource;
void status(QString msg);
+ QSettings geoSettings;
signals: