From cf3e1d61dd3dac3071e0f184d2c4061b5287d1c2 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 11 Apr 2025 12:29:38 +0200 Subject: [PATCH] provide for update logging using a file watcher --- UpdatePTUDevCtrl/worker.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UpdatePTUDevCtrl/worker.h b/UpdatePTUDevCtrl/worker.h index 6522990..2bd3aed 100644 --- a/UpdatePTUDevCtrl/worker.h +++ b/UpdatePTUDevCtrl/worker.h @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -522,6 +523,7 @@ private slots: bool syncCustomerRepositoryAndFS(); // bool sendIsmasLastVersionNotification(int progress); bool saveLogFile(); + void onFileChanged(QString const&); public slots: void readyReadStandardOutput(); @@ -535,6 +537,9 @@ private: QDateTime m_start; QByteArray m_standardOutput; + QFileSystemWatcher m_fileWatcher; + QFile m_updateLog; + QFile m_updateLogBackup; static const QMap smap;