diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-07-09 18:08:06 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-09 18:08:06 -0700 |
commit | 0a0c93e3b7933b6e26f5ff568b7c6b66b596ce12 (patch) | |
tree | cbeb996f28fe035e2f1ef82087e1bbe8bd3400fb /mobile-widgets/qmlmanager.h | |
parent | ff659396c37ba2439f8ce18228cba546d4814b75 (diff) | |
download | subsurface-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.h')
-rw-r--r-- | mobile-widgets/qmlmanager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index d80c5f58a..e931fe238 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -41,6 +41,7 @@ class QMLManager : public QObject { Q_PROPERTY(QStringList cylinderInit READ cylinderInit CONSTANT) Q_PROPERTY(bool showPin READ showPin WRITE setShowPin NOTIFY showPinChanged) Q_PROPERTY(QString progressMessage READ progressMessage WRITE setProgressMessage NOTIFY progressMessageChanged) + Q_PROPERTY(bool libdcLog READ libdcLog WRITE setLibdcLog NOTIFY libdcLogChanged) public: QMLManager(); @@ -115,6 +116,9 @@ public: QString progressMessage() const; void setProgressMessage(QString text); + bool libdcLog() const; + void setLibdcLog(bool value); + typedef void (QMLManager::*execute_function_type)(); DiveListSortModel *dlSortModel; @@ -211,6 +215,7 @@ private: bool m_showPin; DCDeviceData *m_device_data; QString m_progressMessage; + bool m_libdcLog; #if defined(Q_OS_ANDROID) QString appLogFileName; QFile appLogFile; @@ -239,6 +244,7 @@ signals: void showPinChanged(); void sendScreenChanged(QScreen *screen); void progressMessageChanged(); + void libdcLogChanged(); }; #endif |