mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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>
27 lines
440 B
C++
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
|