From ec42177b24b47ba68b3ae49634c942c76a9f92d4 Mon Sep 17 00:00:00 2001 From: Arseniy-Movshev Date: Sun, 19 Mar 2023 11:14:04 +0000 Subject: Restructure to split to daemon and qml accessor - add separate subdirs for daemon and qml - add some generic qml boilerplate - add a really lazy 'last value' loader implementation - license the project as gplv3 (add copyright notices and license text) --- sensorPlugins/stepCounter.h | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 sensorPlugins/stepCounter.h (limited to 'sensorPlugins/stepCounter.h') diff --git a/sensorPlugins/stepCounter.h b/sensorPlugins/stepCounter.h deleted file mode 100644 index a7cb580..0000000 --- a/sensorPlugins/stepCounter.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef STEPCOUNTER_H -#define STEPCOUNTER_H - -#include -#include -#include -#include - -#include - -class StepCounterPlugin : public QObject -{ - Q_OBJECT -public: - explicit StepCounterPlugin(QObject *parent = 0, int initInterval = 600000); - virtual ~StepCounterPlugin() {}; - - void timeUpdate(); - -public slots: - void triggerRecording(); - -private: - QDateTime lastRecordTime; - int interval; - QTimer *recordIntervalTimer; - QStepCounterSensor *stepcounterSensor; - int stepsOffset; //this is subtracted from the raw sensor value to compensate for daily step resets and boot offsets. - - const QString sensorPathPrefix = "stepCounter"; -}; - -#endif // STEPCOUNTER_H -- cgit v1.2.3-54-g00ecf