summaryrefslogtreecommitdiff
path: root/logger.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--logger.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/logger.h b/logger.h
new file mode 100644
index 0000000..d92b52c
--- /dev/null
+++ b/logger.h
@@ -0,0 +1,31 @@
+#ifndef LOGGER_H
+#define LOGGER_H
+
+#include <QObject>
+#include <QDateTime>
+#include <QDBusInterface>
+#include <QTimer>
+#include <QString>
+
+#include "sensorPlugins/stepCounter.h"
+#include "sensorPlugins/heartrateSensor.h"
+
+class Logger : public QObject
+{
+ Q_OBJECT
+public:
+ explicit Logger(QObject *parent = 0);
+ virtual ~Logger() {};
+private slots:
+ void displayOn(QString displayState);
+
+private:
+ QDBusInterface *m_iface;
+ bool heartrateSensorEnabled = true;
+ HeartrateSensorPlugin *m_heartrateSensor;
+ bool stepCounterEnabled = true;
+ StepCounterPlugin *m_stepCounter;
+};
+void writeReadingToFile(QString data, QString filename);
+
+#endif // LOGGER_H