Added ValueModel, first run.

This commit is contained in:
2025-12-16 22:42:35 +01:00
parent afb5828a65
commit 4c5e42fcfd
8 changed files with 110 additions and 76 deletions

View File

@@ -44,23 +44,23 @@ class BCValueManager : public QObject
public:
BCValueManager();
virtual ~BCValueManager();
void loadXml();
void saveXml();
std::optional<BCValueModel*> getModel(const QString& key );
protected:
void readDevice();
void makeValue(BCValueList& parsedValues);
void readDevice( BCValueList& parsedValues );
QXmlStreamReader _xml;
QMap<QString,BCValueModel*> _valueModels;
BCDevice::ID _currentDeviceID{BCDevice::ID::Invalid};
QMetaEnum _bcDeviceEnum{QMetaEnum::fromType<BCDevice::ID>()};
QMetaEnum _bcValueEnum{QMetaEnum::fromType<BC::ID>()};
};
#endif // BCVALUEMANAGER_H