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>
This commit is contained in:
Dirk Hohndel 2015-11-11 15:19:09 -08:00
parent cd7d6ae6e5
commit 62f7ec11d7
4 changed files with 22 additions and 14 deletions

View file

@ -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: