Create and rework data handling, part I
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#include <bcvalue.h>
|
||||
#include <bccandrivertinycan.h>
|
||||
|
||||
class BCTransmitter : public QObject
|
||||
class BCTransmitter : public QObject, public BCAbstractTransmitter
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -18,11 +18,12 @@ public:
|
||||
|
||||
explicit BCTransmitter(QObject *parent = nullptr);
|
||||
|
||||
|
||||
public slots:
|
||||
|
||||
void onToggleConnectionState( bool connect );
|
||||
void enqueueValueCommand(BC::OpID opID, const BCValue& value);
|
||||
void processValueCommand(BC::OpID opID);
|
||||
void enqueueValueOp(BC::OpID opID, const BCValue* value );
|
||||
void processValueOp(BC::OpID opID);
|
||||
|
||||
signals:
|
||||
|
||||
@@ -34,7 +35,7 @@ private:
|
||||
std::optional<uint32_t> executeRead(const BCValue& value);
|
||||
std::optional<uint32_t> executeWrite(const BCValue& value);
|
||||
|
||||
using BCValueQueue = QQueue<std::reference_wrapper<const BCValue>>;
|
||||
using BCValueQueue = QQueue<const BCValue*>;
|
||||
|
||||
BCValueQueue _valueQueue;
|
||||
QMutex _mutex;
|
||||
|
||||
Reference in New Issue
Block a user