Qt 4.8
|
The QDBusPendingCall class refers to one pending asynchronous call. More...
#include <qdbuspendingcall.h>
Public Functions | |
QDBusPendingCall & | operator= (const QDBusPendingCall &other) |
Creates a copy of the other pending asynchronous call and drops the reference to the previously-referenced call. More... | |
QDBusPendingCall (const QDBusPendingCall &other) | |
Creates a copy of the other pending asynchronous call. More... | |
~QDBusPendingCall () | |
Destroys this copy of the QDBusPendingCall object. More... | |
Static Public Functions | |
static QDBusPendingCall | fromCompletedCall (const QDBusMessage &message) |
Creates a QDBusPendingCall object based on the message msg. More... | |
static QDBusPendingCall | fromError (const QDBusError &error) |
Creates a QDBusPendingCall object based on the error condition error. More... | |
Protected Functions | |
QDBusPendingCall (QDBusPendingCallPrivate *dd) | |
Protected Variables | |
QExplicitlySharedDataPointer< QDBusPendingCallPrivate > | d |
Private Functions | |
QDBusPendingCall () | |
Friends | |
class | QDBusConnection |
class | QDBusPendingCallPrivate |
class | QDBusPendingCallWatcher |
The QDBusPendingCall class refers to one pending asynchronous call.
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.
Definition at line 65 of file qdbuspendingcall.h.
QDBusPendingCall::QDBusPendingCall | ( | const QDBusPendingCall & | other | ) |
Creates a copy of the other pending asynchronous call.
Note that both objects will refer to the same pending call.
Definition at line 258 of file qdbuspendingcall.cpp.
QDBusPendingCall::~QDBusPendingCall | ( | ) |
Destroys this copy of the QDBusPendingCall object.
If this copy is also the last copy of a pending asynchronous call, the call will be canceled and no further notifications will be received. There will be no way of accessing the reply's contents when it arrives.
Definition at line 282 of file qdbuspendingcall.cpp.
|
protected |
Definition at line 266 of file qdbuspendingcall.cpp.
|
private |
Referenced by fromCompletedCall().
|
static |
Creates a QDBusPendingCall object based on the message msg.
The message must be of type QDBusMessage::ErrorMessage or QDBusMessage::ReplyMessage (that is, a message that is typical of a completed call).
This function is useful for code that requires simulating a pending call, but that has already finished.
Definition at line 496 of file qdbuspendingcall.cpp.
Referenced by fromError().
|
static |
Creates a QDBusPendingCall object based on the error condition error.
Definition at line 476 of file qdbuspendingcall.cpp.
Referenced by QDBusAbstractInterface::asyncCallWithArgumentList().
QDBusPendingCall & QDBusPendingCall::operator= | ( | const QDBusPendingCall & | other | ) |
Creates a copy of the other pending asynchronous call and drops the reference to the previously-referenced call.
Note that both objects will refer to the same pending call after this function.
If this object contained the last reference of a pending asynchronous call, the call will be canceled and no further notifications will be received. There will be no way of accessing the reply's contents when it arrives.
Definition at line 298 of file qdbuspendingcall.cpp.
Referenced by QDBusPendingReplyData::assign().
|
friend |
Definition at line 90 of file qdbuspendingcall.h.
|
friend |
Definition at line 88 of file qdbuspendingcall.h.
Referenced by QDBusPendingReplyData::assign(), and fromCompletedCall().
|
friend |
Definition at line 89 of file qdbuspendingcall.h.
|
protected |
Definition at line 87 of file qdbuspendingcall.h.
Referenced by QDBusPendingReplyData::argumentAt(), QDBusPendingReplyData::assign(), fromCompletedCall(), operator=(), QDBusPendingCallWatcher::QDBusPendingCallWatcher(), QDBusPendingReplyData::setMetaTypes(), and QDBusPendingCallWatcher::waitForFinished().