17 &CGenericScalarObserver::reconstruct);
21 void CGenericScalarObserver::reconstruct()
28 QMutexLocker lock(&m_valueMutex);
32 void CGenericScalarObserver::handleEvent(
const CVariant ¶m)
34 QMutexLocker lock(&m_valueMutex);
35 if (m_value == param) {
return; }
38 onGenericValueChanged(param);
Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...
static CVariant from(T &&value)
Synonym for fromValue().
Dummy value class that matches any event.
bool isConnected() const
True if connected to the transport layer.
void connected()
Connection established.
void initialize(IDataLink *)
Subscribe using the given transport mechanism.
CVariant value() const
Get scalar value as variant.
Interface that provides a transport mechanism for sharing state.
virtual void subscribe(const CPassiveObserver *observer)=0
Register an observer with this transport mechanism.
CDataLinkConnectionWatcher * watcher()
Get a connection status watcher.
Utilities for sharing state between multiple objects.