class QRemoteObjectPendingCall#

Encapsulates the result of an asynchronous method call. More

Inherited by: QRemoteObjectPendingCallWatcher

Synopsis#

Methods#

Static functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

class Error#

This enum type specifies the possible error values for a remote call:

Constant

Description

QRemoteObjectPendingCall.NoError

No error occurred.

QRemoteObjectPendingCall.InvalidMessage

The default error state prior to the remote call finishing.

__init__()#
__init__(other)
Parameters:

otherQRemoteObjectPendingCall

error()#
Return type:

Error

Returns the error, if any, from the remote call.

static fromCompletedCall(returnValue)#
Parameters:

returnValue – object

Return type:

QRemoteObjectPendingCall

isFinished()#
Return type:

bool

Returns true if the remote call has finished, false otherwise.

A finished call will include a returnValue or error .

returnValue()#
Return type:

object

Returns the return value of the remote call.

returnValue will only be valid when the remote call has finished and there are no error s.

waitForFinished([timeout=30000])#
Parameters:

timeout – int

Return type:

bool

Blocks for up to timeout milliseconds, until the remote call has finished.

Returns true on success, false otherwise.