summaryrefslogtreecommitdiff
path: root/daemon/sensorPlugins/stepCounter.h
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/sensorPlugins/stepCounter.h')
-rw-r--r--daemon/sensorPlugins/stepCounter.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/daemon/sensorPlugins/stepCounter.h b/daemon/sensorPlugins/stepCounter.h
index a6475f5..cb6a7e4 100644
--- a/daemon/sensorPlugins/stepCounter.h
+++ b/daemon/sensorPlugins/stepCounter.h
@@ -15,14 +15,14 @@
#include <QDateTime>
#include <QDBusInterface>
#include <QTimer>
+#include <QSettings>
#include <QtSensors/QStepCounterSensor>
-class StepCounterPlugin : public QObject
-{
+class StepCounterPlugin : public QObject {
Q_OBJECT
public:
- explicit StepCounterPlugin(QObject *parent = 0, int initInterval = 600000, bool daemonFresh = false);
+ explicit StepCounterPlugin(QObject* parent = 0, int initInterval = 600000, bool daemonFresh = false);
virtual ~StepCounterPlugin() {};
void timeUpdate();
@@ -35,6 +35,8 @@ private:
int interval;
QTimer *recordIntervalTimer;
QStepCounterSensor *stepcounterSensor;
+ int m_stepsOffset;
+ QSettings *m_settings;
const QString sensorPathPrefix = "stepCounter";
};