From 220265669ad9c2aca08ad6682140e4508d05bfb9 Mon Sep 17 00:00:00 2001 From: rohithzmoi <166651631+rohithzmoi@users.noreply.github.com> Date: Sat, 7 Sep 2024 14:44:45 +0530 Subject: [PATCH] Update LogHandler.h added share functionality Signed-off-by: rohithzmoi <166651631+rohithzmoi@users.noreply.github.com> --- LogHandler.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/LogHandler.h b/LogHandler.h index 878e0eb..07c32b9 100644 --- a/LogHandler.h +++ b/LogHandler.h @@ -32,10 +32,11 @@ public: Q_INVOKABLE QJsonArray loadLog(const QString &fileName); Q_INVOKABLE bool clearLog(const QString &fileName); Q_INVOKABLE bool exportLogToCsv(const QString &fileName, const QJsonArray &logData); - Q_INVOKABLE QString getDSLogPath() const; // Updated function name - Q_INVOKABLE QString getFriendlyPath(const QString &path) const; // Mark as Q_INVOKABLE - + Q_INVOKABLE QString getDSLogPath() const; + Q_INVOKABLE QString getFriendlyPath(const QString &path) const; Q_INVOKABLE bool exportLogToAdif(const QString &fileName, const QJsonArray &logData); + Q_INVOKABLE void shareFile(const QString &filePath); + void shareFileDirectly(const QString &filePath); private: