summaryrefslogtreecommitdiff
path: root/qmlplugin/stepsDataLoader.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--qmlplugin/stepsDataLoader.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/qmlplugin/stepsDataLoader.h b/qmlplugin/stepsDataLoader.h
index a1bcb5d..f29dcb2 100644
--- a/qmlplugin/stepsDataLoader.h
+++ b/qmlplugin/stepsDataLoader.h
@@ -15,9 +15,12 @@
#include <QDBusInterface>
#include <QPointF>
+#include <QtSensors/QStepCounterSensor>
+
class StepsDataLoader : public QObject
{
Q_OBJECT
+ Q_PROPERTY(int todayTotal READ getTodayTotal() NOTIFY todayTotalChanged())
public:
explicit StepsDataLoader();
@@ -26,8 +29,12 @@ public:
Q_INVOKABLE QList<QPointF> getDataForDate(QDate date);
Q_INVOKABLE QList<QPointF> getTodayData();
Q_INVOKABLE void triggerDaemonRecording();
+
+signals:
+ void todayTotalChanged();
private:
QDBusInterface *m_iface;
+ QStepCounterSensor *m_stepcounterSensor;
};
#endif // STEPSDATALOADER_H