Mini Milestone: Driver loads and connects.

This commit is contained in:
2025-12-18 16:26:51 +01:00
parent b5ed3ff733
commit 2acf280c55
20 changed files with 5407 additions and 59 deletions

View File

@@ -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