QRemoteObjectPendingCall Class
Kapselt das Ergebnis eines asynchronen Methodenaufrufs. Mehr...
Kopfzeile: | #include <QRemoteObjectPendingCall> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS RemoteObjects) target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects) |
qmake: | QT += remoteobjects |
Vererbt von: | QRemoteObjectPendingCallWatcher und QRemoteObjectPendingReply |
Öffentliche Typen
enum | Error { NoError, InvalidMessage } |
Öffentliche Funktionen
QRemoteObjectPendingCall::Error | error() const |
bool | isFinished() const |
QVariant | returnValue() const |
bool | waitForFinished(int timeout = 30000) |
Dokumentation der Mitgliedstypen
enum QRemoteObjectPendingCall::Error
Dieser Enum-Typ gibt die möglichen Fehlerwerte für einen Fernaufruf an:
Konstante | Wert | Beschreibung |
---|---|---|
QRemoteObjectPendingCall::NoError | 0 | Kein Fehler aufgetreten. |
QRemoteObjectPendingCall::InvalidMessage | 1 | Der Standardfehlerzustand vor Beendigung des Fernaufrufs. |
Dokumentation der Mitgliedsfunktionen
QRemoteObjectPendingCall::Error QRemoteObjectPendingCall::error() const
Gibt den Fehler des Fernaufrufs zurück, falls vorhanden.
bool QRemoteObjectPendingCall::isFinished() const
Gibt true zurück, wenn der Fernaufruf beendet ist, andernfalls false.
Ein beendeter Aufruf enthält ein returnValue oder error.
QVariant QRemoteObjectPendingCall::returnValue() const
Gibt den Rückgabewert des Fernaufrufs zurück.
returnValue ist nur gültig, wenn der Fernaufruf beendet ist und keine errorvorhanden ist.
bool QRemoteObjectPendingCall::waitForFinished(int timeout = 30000)
Blockiert für bis zu timeout Millisekunden, bis der Fernaufruf beendet ist.
Gibt bei Erfolg true
zurück, andernfalls false
.
© 2025 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.