Clean up data types.

This commit is contained in:
2025-12-21 12:06:14 +01:00
parent c382ba472d
commit acce874133
10 changed files with 31 additions and 28 deletions

View File

@@ -53,6 +53,7 @@
-
*/
using bcdata_t = uint32_t;
class BCAbstractTransmitter
{
@@ -60,7 +61,7 @@ class BCAbstractTransmitter
public:
//
virtual uint32_t readValue( BCDevice::ID deviceID_, BC::ID targetID_ ) const = 0;
virtual bcdata_t readValue( BCDevice::ID deviceID_, BC::ID targetID_ ) const { return 0;};
///virtual uint32_t readByte( BCDevice::ID deviceID_, BC::ID targetID_ ) const = 0;
};
@@ -109,6 +110,7 @@ public:
};
// really needed?
using BCValueTypeCRef = std::optional<std::reference_wrapper<const BCValueType>>;
@@ -117,7 +119,7 @@ class BCValue
public:
BCValue();
//BCValue();
BCValue( const BCValueType& valueType_, BCDevice::ID deviceID_, BC::ID targetID_ );
void readRawValue( const BCAbstractTransmitter& transmitter ) const;
@@ -140,7 +142,7 @@ public:
};
Q_DECLARE_METATYPE(BCValue)
Q_DECLARE_METATYPE(BCValue*)
struct BCValueParams