29 #define BLACKLIST QStringLiteral("SetValue,SetValid") 39 TorcOutputs::gOutputs->AddOutput(
this);
43 QObject *Output,
const QMetaObject &MetaObject,
const QString &Blacklist)
46 Details.
value(QStringLiteral(
"name")).toString(), MetaObject,
BLACKLIST +
"," + Blacklist),
49 TorcOutputs::gOutputs->AddOutput(
this);
54 QMutexLocker locker(&
lock);
55 return m_owner !=
nullptr;
60 QMutexLocker locker(&
lock);
68 QMutexLocker locker(&
lock);
72 LOG(VB_GENERAL, LOG_ERR, QStringLiteral(
"Cannot set NULL output owner for %1").arg(
uniqueId));
76 if (m_owner && m_owner != Owner)
78 LOG(VB_GENERAL, LOG_ERR, QStringLiteral(
"Cannot set different output owner for %1").arg(
uniqueId));
101 QStringList source = GetDescription();
102 foreach (
const QString &item, source)
111 QString link = url.isEmpty() ? QString() : QStringLiteral(
" href=\"%1\"").arg(url);
112 Data->append(QStringLiteral(
" \"%1\" [shape=record id=\"%1\" label=<<B>%2</B>%3>%4];\r\n").arg(
id, label, desc, link));
virtual void Graph(QByteArray *Data)
QString GetUserName(void)
double GetDefaultValue(void)
void SubscriberDeleted(QObject *Subscriber)
#define OUTPUTS_DIRECTORY
virtual QString GetPresentationURL(void)
void HandleSubscriberDeleted(QObject *Subscriber)
#define LOG(_MASK_, _LEVEL_, _STRING_)
QString EnumToLowerString(T Value)
QString GetUIName(void) override
TorcOutput(TorcOutput::Type Type, double Value, const QString &ModelId, const QVariantMap &Details)
bool SetOwner(QObject *Owner)
QString GetUniqueId(void)