summaryrefslogtreecommitdiff
path: root/qmlplugin/stepsDataLoader.h
diff options
context:
space:
mode:
authorArseniy-Movshev <dodoradio@outlook.com>2023-05-29 16:30:31 +0100
committerArseniy-Movshev <dodoradio@outlook.com>2023-05-29 18:06:51 +0100
commitfd718937e22c22e716a951e2bb58ac1bc624f70e (patch)
tree88b7ebd962c1224dbfb4daacf578084a79fd17cc /qmlplugin/stepsDataLoader.h
parent66e8fe3ba76cf72a71a8fece1532fb9597813e0a (diff)
Add a method for daemon recordings to be triggered from qml
This allows the app to always show an up-to-date value
Diffstat (limited to 'qmlplugin/stepsDataLoader.h')
-rw-r--r--qmlplugin/stepsDataLoader.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qmlplugin/stepsDataLoader.h b/qmlplugin/stepsDataLoader.h
index 4937ee9..869b434 100644
--- a/qmlplugin/stepsDataLoader.h
+++ b/qmlplugin/stepsDataLoader.h
@@ -12,6 +12,7 @@
#define STEPSDATALOADER_H
#include <QObject>
+#include <QDBusInterface>
class StepsDataLoader : public QObject
{
@@ -21,6 +22,9 @@ public:
explicit StepsDataLoader();
Q_INVOKABLE int getDataForDate(QDate date);
Q_INVOKABLE int getTodayData();
+ Q_INVOKABLE void triggerDaemonRecording();
+private:
+ QDBusInterface *m_iface;
};
QString fileNameForDate(QDate date, QString prefix);