6 #ifndef SWIFT_MISC_SHAREDSTATE_ACTIVEMUTATOR_H
7 #define SWIFT_MISC_SHAREDSTATE_ACTIVEMUTATOR_H
27 friend QSharedPointer<CActiveMutator>;
29 template <
typename T,
typename F>
32 return private_ns::invokeMethod(parent, requestHandler, param);
38 template <
typename T,
typename F>
39 static auto create(T *parent, F requestHandler)
41 return QSharedPointer<CActiveMutator>::create(parent, requestHandler);
45 QFuture<CVariant> handleRequest(
const CVariant ¶m)
const;
48 QWeakPointer<const CActiveMutator>
weakRef()
const
54 const std::function<QFuture<CVariant>(
const CVariant &)> m_requestHandler;
Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...
Extends CPassiveMutator with the ability to respond to requests.
QWeakPointer< const CActiveMutator > weakRef() const
Get a QWeakPointer pointing to this object.
static auto create(T *parent, F requestHandler)
Factory method.
Endpoint which can emit events to subscribers.
QWeakPointer< const CPassiveMutator > weakRef() const
Get a QWeakPointer pointing to this object.
Utilities for sharing state between multiple objects.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.