From 73b2dec85e10b6d28233217aabf3ded563e1d668 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 7 Nov 2024 14:12:02 +0100 Subject: [PATCH] Added fileSystemWatcher to check if cc-terminal has to switched on/off. --- include/hwapi.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/hwapi.h b/include/hwapi.h index 8e51519..910bd4f 100644 --- a/include/hwapi.h +++ b/include/hwapi.h @@ -63,7 +63,8 @@ V4.0 6.9.2023: activating DC-Bootloader in slve-lib (SM) #include "shared_mem_buffer.h" #include "runProc.h" #include "interfaces.h" - +#include +#include /* * select Plugin Type here @@ -98,7 +99,7 @@ V4.0 6.9.2023: activating DC-Bootloader in slve-lib (SM) //#define THIS_IS_CA_MASTER - +class QFileSystemWatcher; class QSharedMemory; class DownloadThread; class ReportingThread; @@ -115,7 +116,11 @@ private: QSharedMemory *m_sharedMem; ReportingThread *m_reportingThread; DownloadThread *m_downloadThread; - //QTimer *hwapi_triggerBL; + QScopedPointer m_fileSystemWatcher; + QString m_watchedFile; + +private slots: + void onCCWakeGpioChanged(QString const &file); public: explicit hwapi(QObject *parent = nullptr);