6 #ifndef SWIFT_MISC_SHAREDSTATE_PASSIVEMUTATOR_H
7 #define SWIFT_MISC_SHAREDSTATE_PASSIVEMUTATOR_H
10 #include <QSharedPointer>
27 friend QSharedPointer<CPassiveMutator>;
33 static auto create(QObject *parent) {
return QSharedPointer<CPassiveMutator>::create(parent); }
36 void postEvent(
const CVariant ¶m);
39 QWeakPointer<const CPassiveMutator>
weakRef()
const {
return sharedFromThis(); }
Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...
Extends CPassiveMutator with the ability to respond to requests.
Endpoint which can emit events to subscribers.
QWeakPointer< const CPassiveMutator > weakRef() const
Get a QWeakPointer pointing to this object.
static auto create(QObject *parent)
Factory method.
void eventPosted(const swift::misc::CVariant ¶m)
Emitted by postEvent.
Utilities for sharing state between multiple objects.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.