summaryrefslogtreecommitdiff
path: root/daemon/logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/logger.h')
-rw-r--r--daemon/logger.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/daemon/logger.h b/daemon/logger.h
index 14d097f..d9b418d 100644
--- a/daemon/logger.h
+++ b/daemon/logger.h
@@ -17,6 +17,7 @@
#include <QDBusInterface>
#include <QTimer>
#include <QString>
+#include <QSettings>
#include "sensorPlugins/stepCounter.h"
#include "sensorPlugins/heartrateSensor.h"
@@ -27,16 +28,16 @@ class Logger : public QObject
public:
explicit Logger(QObject *parent = 0);
virtual ~Logger() {};
-
private slots:
void displayOn(QString displayState);
private:
QDBusInterface *m_iface;
- bool heartrateSensorEnabled = true;
+ bool heartrateSensorEnabled = false;
HeartrateSensorPlugin *m_heartrateSensor;
- bool stepCounterEnabled = true;
+ bool stepCounterEnabled = false;
StepCounterPlugin *m_stepCounter;
+ QSettings *settings;
};
void fileAddRecord(QString sensorPrefix, QString logdata, QDateTime recordTime = QDateTime::currentDateTime()); //adds a record to today's log file for the given sensor