summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index d527f53c2..3e19969b5 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -95,6 +95,7 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
qDebug() << QStringLiteral("build with Qt Version %1, runtime from Qt Version %2").arg(QT_VERSION_STR).arg(qVersion());
setStartPageText(tr("Starting..."));
setAccessingCloud(-1);
+ setShowPin(false);
// create location manager service
locationProvider = new GpsLocation(&appendTextToLogStandalone, this);
connect(locationProvider, SIGNAL(haveSourceChanged()), this, SLOT(hasLocationSourceChanged()));
@@ -1183,6 +1184,17 @@ void QMLManager::setCloudPassword(const QString &cloudPassword)
emit cloudPasswordChanged();
}
+QString QMLManager::cloudPin() const
+{
+ return m_cloudPin;
+}
+
+void QMLManager::setCloudPin(const QString &cloudPin)
+{
+ m_cloudPin = cloudPin;
+ emit cloudPinChanged();
+}
+
QString QMLManager::cloudUserName() const
{
return m_cloudUserName;
@@ -1421,3 +1433,14 @@ QStringList QMLManager::divemasterInit() const
divemasters.sort();
return divemasters;
}
+
+bool QMLManager::showPin() const
+{
+ return m_showPin;
+}
+
+void QMLManager::setShowPin(bool enable)
+{
+ m_showPin = enable;
+ emit showPinChanged();
+}