summaryrefslogtreecommitdiff
path: root/qmlplugin/stepsDataLoader.h
diff options
context:
space:
mode:
authorArseniy-Movshev <dodoradio@outlook.com>2023-07-21 13:56:28 +0100
committerArseniy-Movshev <dodoradio@outlook.com>2023-07-21 14:07:59 +0100
commit0b0610efc2b93fa44915b9bf5ad1fb1c313bda15 (patch)
treee698834842aad2a222e8bdc93ecf96f353e02476 /qmlplugin/stepsDataLoader.h
parentd69ab590c71fabc0135b2b07a8859a80e556cdf5 (diff)
Add file watcher to stepsDataLoader
this is essentially a copy of the previous commit applied to hrDataLoader
Diffstat (limited to 'qmlplugin/stepsDataLoader.h')
-rw-r--r--qmlplugin/stepsDataLoader.h3
1 files changed, 3 insertions, 0 deletions
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 <QObject>
#include <QDBusInterface>
#include <QPointF>
+#include <QFileSystemWatcher>
#include <QtSensors/QStepCounterSensor>
@@ -33,8 +34,10 @@ public:
QList<QPointF> getRawDataForDate(QDate date);
signals:
void todayTotalChanged();
+ void dataChanged();
private:
QDBusInterface *m_iface;
+ QFileSystemWatcher *m_fileWatcher;
QStepCounterSensor *m_stepcounterSensor;
};