Files
GoldenCheetah/src/ANTLogger.h
dhague 60b7f223c9 Refactor antlog.bin output into ANTLogger class
ANT.cpp now emits a signal for each ANTMessage
ANTlocalController wires up this signal to a slot in ANTLogger which
writes the message to antlog.bin

Signed-off-by: dhague <darren.hague@fortybeans.com>
2012-12-18 21:22:34 +00:00

27 lines
440 B
C++

#include <sys/time.h>
#include <QObject>
#include "ANTMessage.h"
#ifndef ANTLOGGER_H
#define ANTLOGGER_H
class ANTLogger : public QObject
{
Q_OBJECT
public:
explicit ANTLogger(QObject *parent = 0);
signals:
public slots:
void logRawAntMessage(const ANTMessage *message, const struct timeval *timestamp);
private:
// antlog.bin ant message stream
QFile antlog;
bool isLogging;
};
#endif // ANTLOGGER_H