Move value flags to bcvalue class definition.

This commit is contained in:
2025-12-31 14:06:34 +01:00
parent c7a246e56d
commit ce207b7146
10 changed files with 43 additions and 47 deletions

View File

@@ -78,6 +78,24 @@ class BCValue
public:
enum class OpID : uint8_t
{
ReadValue,
WriteValue,
};
//Q_ENUM(OpID)
// __fix! flags draus machen ?
enum class State : uint8_t
{
Invalid,
Locked,
Failed,
InSync,
OK
};
//Q_ENUM(State)
BCValue( const BCValueType* valueType_, BCDevice::ID deviceID_, BC::ID registerID_ );
QString readRawValueX( const BCAbstractTransmitter& transmitter ) const;
@@ -87,7 +105,7 @@ public:
// später
//protected:
mutable BC::State state{BC::State::Invalid};
mutable State state{BCValue::State::Invalid};
//const BCValueType& valueType;
//BCValueTypeCRef valueType;
const BCValueType* valueType{};