summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-06-13 16:41:26 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-06-13 16:41:26 -0700
commit5fa965df54c1ab7f881271e0dad2b6dfa6f253ed (patch)
tree432403c86bf9f212af422b0f8138f8b186c0eb80 /mobile-widgets/qmlmanager.cpp
parentd2f9803883ff1453e71a29e358fd5368f650fb62 (diff)
downloadsubsurface-5fa965df54c1ab7f881271e0dad2b6dfa6f253ed.tar.gz
QML UI: prepare to enter the cloud PIN on mobile UI
This just creates the properties to connect QML and C++ code. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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();
+}