summaryrefslogtreecommitdiff
path: root/qmlplugin/stepsDataLoader.h
diff options
context:
space:
mode:
authorArseniy-Movshev <dodoradio@outlook.com>2023-06-08 10:59:36 +0100
committerArseniy-Movshev <dodoradio@outlook.com>2023-06-20 00:05:23 +0100
commit6087e0b0dd7a5246aca9024ef777b62080d35834 (patch)
treede31d8702805ea45755eb926f434a1b3fa26b558 /qmlplugin/stepsDataLoader.h
parent3e411195ff961a641ad94d9b5058d3ad981834b8 (diff)
StepsDataLoader: Add a way to get the full day's data
additionally, this renames the current data access function to 'getTotalForDate()' while the new function gets the old name of 'getDataForDate()'. This naming seems more appropriate. This should allow apps using the QML interface to implement their own graphs
Diffstat (limited to 'qmlplugin/stepsDataLoader.h')
-rw-r--r--qmlplugin/stepsDataLoader.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/qmlplugin/stepsDataLoader.h b/qmlplugin/stepsDataLoader.h
index 869b434..fa551a3 100644
--- a/qmlplugin/stepsDataLoader.h
+++ b/qmlplugin/stepsDataLoader.h
@@ -13,6 +13,7 @@
#include <QObject>
#include <QDBusInterface>
+#include <QPointF>
class StepsDataLoader : public QObject
{
@@ -20,8 +21,10 @@ class StepsDataLoader : public QObject
public:
explicit StepsDataLoader();
- Q_INVOKABLE int getDataForDate(QDate date);
- Q_INVOKABLE int getTodayData();
+ Q_INVOKABLE int getTotalForDate(QDate date);
+ Q_INVOKABLE int getTodayTotal();
+ Q_INVOKABLE QList<QPointF> getDataForDate(QDate date);
+ Q_INVOKABLE QList<QPointF> getTodayData();
Q_INVOKABLE void triggerDaemonRecording();
private:
QDBusInterface *m_iface;