QDBusPendingCall Class
The QDBusPendingCall class refers to one pending asynchronous call. More...
| Header: | #include <QDBusPendingCall> |
| qmake: | QT += dbus |
| Since: | Qt 4.5 |
| Inherited By: |
This class was introduced in Qt 4.5.
Detailed Description
A QDBusPendingCall object is a reference to a method call that was sent over D-Bus without waiting for a reply. QDBusPendingCall is an opaque type, meant to be used as a handle for a pending reply.
In most programs, the QDBusPendingCall class will not be used directly. It can be safely replaced with the template-based QDBusPendingReply, in order to access the contents of the reply or wait for it to be complete.
The QDBusPendingCallWatcher class allows one to connect to a signal that will indicate when the reply has arrived or if the call has timed out. It also provides the QDBusPendingCallWatcher::waitForFinished() method which will suspend the execution of the program until the reply has arrived.
Note: If you create a copy of a QDBusPendingCall object, all information will be shared among the many copies. Therefore, QDBusPendingCall is an explicitly-shared object and does not provide a method of detaching the copies (since they refer to the same pending call)
See also QDBusPendingReply and QDBusPendingCallWatcher.