summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-09 18:08:06 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-09 18:08:06 -0700
commit0a0c93e3b7933b6e26f5ff568b7c6b66b596ce12 (patch)
treecbeb996f28fe035e2f1ef82087e1bbe8bd3400fb /mobile-widgets/qmlmanager.cpp
parentff659396c37ba2439f8ce18228cba546d4814b75 (diff)
downloadsubsurface-0a0c93e3b7933b6e26f5ff568b7c6b66b596ce12.tar.gz
QML UI: add variable for libdc logfile
It seemed cleanest and easiest to have this in the QMLManager and not in the DCDownload object. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 855b4918f..a4fe21dab 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -85,7 +85,8 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
m_selectedDiveTimestamp(0),
m_credentialStatus(UNKNOWN),
alreadySaving(false),
- m_device_data(new DCDeviceData(this))
+ m_device_data(new DCDeviceData(this)),
+ m_libdcLog(false)
{
m_instance = this;
m_lastDevicePixelRatio = qApp->devicePixelRatio();
@@ -1544,6 +1545,17 @@ void QMLManager::setProgressMessage(QString text)
emit progressMessageChanged();
}
+bool QMLManager::libdcLog() const
+{
+ return m_libdcLog;
+}
+
+void QMLManager::setLibdcLog(bool value)
+{
+ m_libdcLog = value;
+ emit libdcLogChanged();
+}
+
#if defined (Q_OS_ANDROID)
void writeToAppLogFile(QString logText)