Added BCValue creation, part II.
This commit is contained in:
21
bcvalue.h
21
bcvalue.h
@@ -38,6 +38,21 @@
|
||||
#include <bc.h>
|
||||
|
||||
|
||||
struct BCValueParams
|
||||
{
|
||||
BCDevice::ID DeviceID{BCDevice::ID::Invalid};
|
||||
BC::ID ID{BC::ID::Invalid};
|
||||
QString IDString;
|
||||
QString Default;
|
||||
QString Current;
|
||||
QString Enabled;
|
||||
QString UnitType;
|
||||
QString Min;
|
||||
QString Max;
|
||||
QString Factor;
|
||||
};
|
||||
|
||||
|
||||
struct BCUnit
|
||||
{
|
||||
enum class ID
|
||||
@@ -61,7 +76,11 @@ public:
|
||||
QString label;
|
||||
BCDevice::ID deviceID{BCDevice::ID::Invalid};
|
||||
BC::ID targetID{BC::ID::Invalid};
|
||||
double _value{-1};
|
||||
|
||||
double value{-1};
|
||||
|
||||
static BCValue* makeValue( const BCValueParams& params );
|
||||
|
||||
};
|
||||
|
||||
// abbreviations:
|
||||
|
||||
Reference in New Issue
Block a user