IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QRemoteObjectPendingCall Class

Encapsulates the result of an asynchronous method call.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QRemoteObjectPendingCall Class

Detailed Description

 

Member Type Documentation

 

enum QRemoteObjectPendingCall::Error

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.

Member Function Documentation

 

QRemoteObjectPendingCall::Error QRemoteObjectPendingCall::error() const

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

bool QRemoteObjectPendingCall::isFinished() const

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

A finished call will include a returnValue or error.

QVariant QRemoteObjectPendingCall::returnValue() const

Returns the return value of the remote call.

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

bool QRemoteObjectPendingCall::waitForFinished(int timeout = 30000)

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

Returns true on success, false otherwise.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+