DBus::PendingCall Class Reference
Public Member Functions
|Private (DBusPendingCall *)|
|PendingCall (Private *)|
|PendingCall (const PendingCall &)|
|PendingCall &||operator= (const PendingCall &)|
|Checks whether the pending call has received a reply yet, or not. |
|Cancels the pending call, such that any reply or error received will just be ignored. |
|Block until the pending call is completed. |
|void||data (void *data)|
|Stores a pointer on a PendingCall, along with an optional function to be used for freeing the data when the data is set again, or when the pending call is finalized. |
|void *||data ()|
|Retrieves data previously set with dbus_pending_call_set_data(). |
|Slot< void, PendingCall & > &||slot ()|
|Gets the reply. |
Static Public Member Functions
|static void||notify_stub (DBusPendingCall *dpc, void *data)|
|Slot< void, PendingCall & >||slot|
|RefPtrI< Private >||_pvt|
Constructor & Destructor Documentation
|PendingCall::PendingCall||(||const PendingCall &||c||)|
Member Function Documentation
Block until the pending call is completed.
The blocking is as with Connection::send_blocking(); it does not enter the main loop or process other messages, it simply waits for the reply in question.
If the pending call is already completed, this function returns immediately.
Cancels the pending call, such that any reply or error received will just be ignored.
Drops the dbus library's internal reference to the DBusPendingCall so will free the call if nobody else is holding a reference. However you usually get a reference from Connection::send_async() so probably your app owns a ref also.
Note that canceling a pending call will not simulate a timed-out call; if a call times out, then a timeout error reply is received. If you cancel the call, no reply is received unless the the reply was already received before you canceled.
|void * PendingCall::data||(||)|
|void PendingCall::data||(||void *||data||)|
Stores a pointer on a PendingCall, along with an optional function to be used for freeing the data when the data is set again, or when the pending call is finalized.
The slot is allocated automatic.
data The data to store.
|static void DBus::PendingCall::notify_stub||(||DBusPendingCall *||dpc,|
Gets the reply.
Ownership of the reply message passes to the caller. This function can only be called once per pending call, since the reply message is tranferred to the caller.
- The reply Message.
Friends And Related Function Documentation
|friend struct Private
Member Data Documentation
The documentation for this class was generated from the following files: