From 0b0610efc2b93fa44915b9bf5ad1fb1c313bda15 Mon Sep 17 00:00:00 2001 From: Arseniy-Movshev Date: Fri, 21 Jul 2023 13:56:28 +0100 Subject: Add file watcher to stepsDataLoader this is essentially a copy of the previous commit applied to hrDataLoader --- qmlplugin/stepsDataLoader.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qmlplugin/stepsDataLoader.h') diff --git a/qmlplugin/stepsDataLoader.h b/qmlplugin/stepsDataLoader.h index 312a9f5..a248f32 100644 --- a/qmlplugin/stepsDataLoader.h +++ b/qmlplugin/stepsDataLoader.h @@ -14,6 +14,7 @@ #include #include #include +#include #include @@ -33,8 +34,10 @@ public: QList getRawDataForDate(QDate date); signals: void todayTotalChanged(); + void dataChanged(); private: QDBusInterface *m_iface; + QFileSystemWatcher *m_fileWatcher; QStepCounterSensor *m_stepcounterSensor; }; -- cgit v1.2.3-54-g00ecf