sdbus-c++ 1.2.0
High-level C++ D-Bus library based on systemd D-Bus implementation
|
#include <IProxy.h>
Public Member Functions | |
void | cancel () |
Cancels the delivery of the pending asynchronous call result. More... | |
bool | isPending () const |
Answers whether the asynchronous call is still pending. More... | |
PendingAsyncCall represents a simple handle type to cancel the delivery of the asynchronous D-Bus call result to the application.
The handle is lifetime-independent from the originating Proxy object. It's safe to call its methods even after the Proxy has gone.
void sdbus::PendingAsyncCall::cancel | ( | ) |
Cancels the delivery of the pending asynchronous call result.
This function effectively removes the callback handler registered to the async D-Bus method call result delivery. Does nothing if the call was completed already, or if the originating Proxy object has gone meanwhile.
bool sdbus::PendingAsyncCall::isPending | ( | ) | const |
Answers whether the asynchronous call is still pending.
Pending call in this context means a call whose results have not arrived, or have arrived and are currently being processed by the callback handler.