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>
This commit is contained in:
Dirk Hohndel 2017-07-09 18:08:06 -07:00
parent ff659396c3
commit 0a0c93e3b7
2 changed files with 19 additions and 1 deletions

View file

@ -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)