You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
512 B

#ifndef HARDWAREPACKETENGINE_H
#define HARDWAREPACKETENGINE_H
#include <QObject>
#include <QElapsedTimer>
#include "model/hardware/service/HardwarePacket.h"
class HardwarePacketEngine : public QObject
{
Q_OBJECT
private:
HardwarePacket* _hardwarePacket;
qint32 _lastBatch;
QElapsedTimer _elapsedTimer;
quint64 _start;
public:
HardwarePacketEngine();
void newData(QByteArray buffer, bool flush = false);
signals:
void newPacketReady(const UsPacket& packet);
};
#endif //HARDWAREPACKETENGINE_H