Mini Milestone: Driver loads and connects.
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include <QMetaEnum>
|
||||
|
||||
#include <bcvaluemodel.h>
|
||||
#include <bccandrivertinycan.h>
|
||||
|
||||
class BCValueManager : public QObject
|
||||
{
|
||||
@@ -47,13 +48,19 @@ public:
|
||||
BCValueManager();
|
||||
virtual ~BCValueManager();
|
||||
|
||||
void loadXml();
|
||||
void saveXml();
|
||||
|
||||
std::optional<BCValueModel*> getModel(const QString& key );
|
||||
|
||||
BCValue makeValue(BCDevice::ID deviceID, const BCValueParams& params );
|
||||
|
||||
public slots:
|
||||
|
||||
void loadXml();
|
||||
void saveXml();
|
||||
void onToggleConnectionState( bool connect );
|
||||
|
||||
signals:
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
void readDevice( BCValueList& parsedValues );
|
||||
@@ -63,6 +70,7 @@ protected:
|
||||
BCDevice::ID _currentDeviceID{BCDevice::ID::Invalid};
|
||||
QMetaEnum _bcDeviceEnum{QMetaEnum::fromType<BCDevice::ID>()};
|
||||
|
||||
BCCanDriverTinyCan _canDriver;
|
||||
};
|
||||
|
||||
#endif // BCVALUEMANAGER_H
|
||||
|
||||
Reference in New Issue
Block a user