QRemoteObjectPendingCall Class
Encapsule le résultat d'un appel de méthode asynchrone. Plus d'informations...
| En-tête : | #include <QRemoteObjectPendingCall> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS RemoteObjects)target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects) |
| qmake : | QT += remoteobjects |
| Héritée de : | QRemoteObjectPendingCallWatcher et QRemoteObjectPendingReply |
Types publics
| enum | Error { NoError, InvalidMessage } |
Fonctions publiques
| QRemoteObjectPendingCall::Error | error() const |
| bool | isFinished() const |
| QVariant | returnValue() const |
| bool | waitForFinished(int timeout = 30000) |
Documentation sur les types de membres
enum QRemoteObjectPendingCall::Error
Ce type d'énumération spécifie les valeurs d'erreur possibles pour un appel distant :
| Constante | Valeur | Description de l'erreur |
|---|---|---|
QRemoteObjectPendingCall::NoError | 0 | Aucune erreur n'est survenue. |
QRemoteObjectPendingCall::InvalidMessage | 1 | L'état d'erreur par défaut avant la fin de l'appel distant. |
Documentation des fonctions membres
QRemoteObjectPendingCall::Error QRemoteObjectPendingCall::error() const
Renvoie l'erreur éventuelle de l'appel distant.
bool QRemoteObjectPendingCall::isFinished() const
Retourne true si l'appel distant est terminé, false sinon.
Un appel terminé inclura un returnValue ou un error.
QVariant QRemoteObjectPendingCall::returnValue() const
Renvoie la valeur de retour de l'appel distant.
returnValue n'est valide que lorsque l'appel distant est terminé et qu'il n'y a pas de errors.
bool QRemoteObjectPendingCall::waitForFinished(int timeout = 30000)
Bloque jusqu'à timeout millisecondes, jusqu'à ce que l'appel distant soit terminé.
Retourne true en cas de succès, false dans le cas contraire.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.