From c59a74029b3acde8443db0abebcbc89d78504dee Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 9 Jul 2017 17:03:57 -0700 Subject: 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 --- mobile-widgets/qmlmanager.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mobile-widgets/qmlmanager.h') 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(); -- cgit v1.2.3-70-g09d2