Encapsulates the result of an asynchronous method call. More...
Header: | #include <QRemoteObjectPendingCall> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS RemoteObjects) target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects) |
qmake: | QT += remoteobjects |
Inherited By: |
QRemoteObjectPendingCallWatcher and QRemoteObjectPendingReply |
enum | Error { NoError, InvalidMessage } |
QRemoteObjectPendingCall::Error | error() const |
bool | isFinished() const |
QVariant | returnValue() const |
bool | waitForFinished(int timeout = 30000) |
This enum type specifies the possible error values for a remote call:
Constant | Value | Description |
---|---|---|
QRemoteObjectPendingCall::NoError |
0 |
No error occurred. |
QRemoteObjectPendingCall::InvalidMessage |
1 |
The default error state prior to the remote call finishing. |
Returns the error, if any, from the remote call.
Returns true if the remote call has finished, false otherwise.
A finished call will include a returnValue or error.
Returns the return value of the remote call.
returnValue will only be valid when the remote call has finished and there are no errors.
Blocks for up to timeout milliseconds, until the remote call has finished.
Returns true
on success, false
otherwise.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: