Move value flags to bcvalue class definition.
This commit is contained in:
20
bcvalue.h
20
bcvalue.h
@@ -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{};
|
||||
|
||||
Reference in New Issue
Block a user