Crash protection. part I
This commit is contained in:
@@ -37,8 +37,8 @@
|
||||
#include <QMetaEnum>
|
||||
|
||||
#include <QThread>
|
||||
#include <bcdatamodel.h>
|
||||
#include <bccandrivertinycan.h>
|
||||
#include <bcvaluemodel.h>
|
||||
|
||||
#include <bctransmitter.h>
|
||||
|
||||
class BCValueManager : public QObject
|
||||
@@ -51,20 +51,20 @@ public:
|
||||
virtual ~BCValueManager();
|
||||
|
||||
std::optional<BCValueModel*> getModel(BCDevice::ID deviceID );
|
||||
BCTransmitter* getTransmitter();
|
||||
|
||||
BCValue makeValue(BCDevice::ID deviceID, const BCValueParams& params );
|
||||
std::optional<BCValue> makeValue( BCDevice::ID deviceID, const BCValueParams& params );
|
||||
|
||||
public slots:
|
||||
|
||||
void loadBikeData();
|
||||
void saveBikeData();
|
||||
void onToggleConnectionState( bool connect );
|
||||
void onSyncFromDevice();
|
||||
|
||||
signals:
|
||||
|
||||
// Internes Signal, um Daten an den Worker Thread zu senden
|
||||
void valueCreated(const BCValue& cmd);
|
||||
void sendValueCommand( BC::OpID, const BCValue& cmd);
|
||||
//void valuedTouched(const BCValue& cmd);
|
||||
void valueTouched(int rowInModel );
|
||||
|
||||
@@ -76,7 +76,7 @@ private slots:
|
||||
|
||||
protected:
|
||||
|
||||
void loadTypeData();
|
||||
void createValueTypes();
|
||||
void loadDeviceData( BCValueList& parsedValues );
|
||||
|
||||
using BCDeviceModels = QMap<BCDevice::ID, BCValueModel*>;
|
||||
@@ -88,8 +88,6 @@ protected:
|
||||
BCDevice::ID _currentDeviceID{BCDevice::ID::Invalid};
|
||||
QMetaEnum _bcDeviceEnum{QMetaEnum::fromType<BCDevice::ID>()};
|
||||
|
||||
BCCanDriverTinyCan _canDriver;
|
||||
|
||||
QThread _worker;
|
||||
BCTransmitter _transmitter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user