aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-09 17:03:57 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-09 17:40:29 -0700
commitc59a74029b3acde8443db0abebcbc89d78504dee (patch)
tree7dfdfd5c554587d8ccb66c814e6e827de41d5524 /mobile-widgets/qmlmanager.h
parente8b46039f6936d336c0f38dea64c051ec2ce022b (diff)
downloadsubsurface-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.h8
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();