From 5fa965df54c1ab7f881271e0dad2b6dfa6f253ed Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 13 Jun 2016 16:41:26 -0700 Subject: 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 --- mobile-widgets/qmlmanager.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'mobile-widgets/qmlmanager.cpp') 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(); +} -- cgit v1.2.3-70-g09d2