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

@ -15,11 +15,11 @@ void qmlUiShowMessage(const char *errorString)
qDebug() << "couldn't set property messageText to" << errorString;
}
QMLManager::QMLManager()
QMLManager::QMLManager() :
m_locationServiceEnabled(false)
{
// create location manager service
locationProvider = new GpsLocation(this);
setLocationServiceEnabled(false);
// Initialize cloud credentials.
setCloudUserName(prefs.cloud_storage_email);