Add design prototype, some renamings.
This commit is contained in:
@@ -6,9 +6,10 @@
|
||||
#include <QMutex>
|
||||
#include <atomic>
|
||||
|
||||
#include <bcvalue.h>
|
||||
#include <bcdata.h>
|
||||
#include <bccandrivertinycan.h>
|
||||
|
||||
// template ...
|
||||
class BCTransmitter : public QObject, public BCAbstractTransmitter
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -23,7 +24,7 @@ public:
|
||||
public slots:
|
||||
|
||||
void onToggleConnectionState( bool connect );
|
||||
void enqueueValueOp(BC::OpID opID, const BCValue* value );
|
||||
void enqueueValueOp(BC::OpID opID, const BCData* value );
|
||||
void processValueOp(BC::OpID opID);
|
||||
|
||||
signals:
|
||||
@@ -33,9 +34,9 @@ signals:
|
||||
|
||||
private:
|
||||
|
||||
using BCValueQueue = QQueue<const BCValue*>;
|
||||
using BCDataQueue = QQueue<const BCData*>;
|
||||
|
||||
BCValueQueue _valueQueue;
|
||||
BCDataQueue _valueQueue;
|
||||
QMutex _mutex;
|
||||
std::atomic<bool> _isBusy{ false };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user