29 #define BLACKLIST QStringLiteral("SetValue,SetValid") 41 const QString &ModelId,
const QVariantMap &Details)
42 :
TorcDevice(false, Value, Value, ModelId, Details),
45 Details.
value(QStringLiteral(
"name")).toString(),
TorcInput::staticMetaObject,
46 ModelId.startsWith(QStringLiteral(
"Network")) ? QStringLiteral(
"") :
BLACKLIST),
47 operatingRangeMin(RangeMinimum),
48 operatingRangeMax(RangeMaximum),
55 LOG(VB_GENERAL, LOG_WARNING, QStringLiteral(
"Input has invalid operating ranges - adjusting"));
62 TorcInputs::gInputs->AddInput(
this);
75 QMutexLocker locker(&
lock);
92 QMutexLocker locker(&
lock);
108 if (qFuzzyCompare(Value + 1.0f,
value + 1.0f))
145 QMutexLocker locker(&
lock);
167 QMutexLocker locker(&
lock);
174 QMutexLocker locker(&
lock);
void ValueChanged(double Value)
virtual void SetValid(bool Valid)
void HandleSubscriberDeleted(QObject *Subscriber)
#define LOG(_MASK_, _LEVEL_, _STRING_)
QString EnumToLowerString(T Value)
void ValidChanged(bool Valid)