diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-07-09 17:03:57 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-09 17:40:29 -0700 |
commit | c59a74029b3acde8443db0abebcbc89d78504dee (patch) | |
tree | 7dfdfd5c554587d8ccb66c814e6e827de41d5524 /mobile-widgets/qmlmanager.h | |
parent | e8b46039f6936d336c0f38dea64c051ec2ce022b (diff) | |
download | subsurface-c59a74029b3acde8443db0abebcbc89d78504dee.tar.gz |
Android: write appLog to file
The trick is to pick a path that is accessible from other applications.
In theory QStandardPaths::GenericDataLocation should provide that.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r-- | mobile-widgets/qmlmanager.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index 3c450158e..d80c5f58a 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -125,6 +125,9 @@ public: bool showPin() const; void setShowPin(bool enable); Q_INVOKABLE void setStatusbarColor(QColor color); +#if defined(Q_OS_ANDROID) + void writeToAppLogFile(QString logText); +#endif public slots: void applicationStateChanged(Qt::ApplicationState state); @@ -208,6 +211,11 @@ private: bool m_showPin; DCDeviceData *m_device_data; QString m_progressMessage; +#if defined(Q_OS_ANDROID) + QString appLogFileName; + QFile appLogFile; + bool appLogFileOpen; +#endif signals: void cloudUserNameChanged(); |