swift
|
Extends CPassiveObserver with the ability to send requests and receive replies. More...
Signals | |
void | requestPosted (const swift::misc::CVariant ¶m, swift::misc::CPromise< swift::misc::CVariant > o_reply) |
Emitted by request and requestAsync. | |
![]() | |
void | eventSubscriptionChanged (const swift::misc::CVariant ¶m) |
Emitted by setEventSubscription. | |
Public Member Functions | |
CVariant | request (const CVariant ¶m) |
Send a request and receive a synchronous reply. | |
void | requestAsync (const CVariant ¶m, std::function< void(const CVariant &)> callback) |
Send a request and receive an asynchronous reply. The callback will not be called if the reply is received after the observer has been destroyed. | |
QWeakPointer< const CActiveObserver > | weakRef () const |
Get a QWeakPointer pointing to this object. | |
![]() | |
void | setEventSubscription (const CVariant ¶m) |
Set the object that determines which events are subscribed to. | |
CVariant | eventSubscription () const |
Get the object that determines which events are subscribed to. | |
void | handleEvent (const CVariant ¶m) const |
Called when a subscribed event is emitted. | |
QWeakPointer< const CPassiveObserver > | weakRef () const |
Get a QWeakPointer pointing to this object. | |
Static Public Member Functions | |
template<typename T , typename F > | |
static auto | create (T *parent, F eventHandler) |
Factory method. | |
![]() | |
template<typename T , typename F > | |
static auto | create (T *parent, F eventHandler) |
Factory method. | |
Extends CPassiveObserver with the ability to send requests and receive replies.
Definition at line 23 of file activeobserver.h.