Clean up data types.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user