aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-11 12:32:54 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-11 12:38:23 -0800
commita29e74e2e949696c4ffdefeedad22ae1795f024c (patch)
treecd40641c9adb085682ccc3f9808b5ed5af1a38bf /qt-mobile/qmlmanager.cpp
parente7b2f04bec19c70bff2324b43c337728f2420aca (diff)
downloadsubsurface-a29e74e2e949696c4ffdefeedad22ae1795f024c.tar.gz
Location service: move location provider into QML manager
Since we want to be able to toggle it from the QML UI that seems like a better place for it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlmanager.cpp')
-rw-r--r--qt-mobile/qmlmanager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index e0c621542..3459175f2 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -17,7 +17,10 @@ void qmlUiShowMessage(const char *errorString)
QMLManager::QMLManager()
{
- //Initialize cloud credentials.
+ // create location manager service
+ locationProvider = new GpsLocation(this);
+
+ // Initialize cloud credentials.
setCloudUserName(prefs.cloud_storage_email);
setCloudPassword(prefs.cloud_storage_password);
setSaveCloudPassword(prefs.save_password_local);