QRemoteObjectPendingCall Class
비동기 메서드 호출의 결과를 캡슐화합니다. 더 보기...
헤더: | #include <QRemoteObjectPendingCall> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS RemoteObjects) target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects) |
qmake: | QT += remoteobjects |
상속됨: |
공용 타입
enum | Error { NoError, InvalidMessage } |
공용 함수
QRemoteObjectPendingCall::Error | error() const |
bool | isFinished() const |
QVariant | returnValue() const |
bool | waitForFinished(int timeout = 30000) |
멤버 유형 문서
enum QRemoteObjectPendingCall::Error
이 열거형 유형은 원격 호출에 대해 가능한 오류 값을 지정합니다:
상수 | 값 | 설명 |
---|---|---|
QRemoteObjectPendingCall::NoError | 0 | 오류가 발생하지 않았습니다. |
QRemoteObjectPendingCall::InvalidMessage | 1 | 원격 호출이 완료되기 전의 기본 오류 상태입니다. |
멤버 함수 문서
QRemoteObjectPendingCall::Error QRemoteObjectPendingCall::error() const
원격 호출에서 발생한 오류가 있으면 반환합니다.
bool QRemoteObjectPendingCall::isFinished() const
원격 호출이 완료되면 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.
완료된 통화에는 returnValue 또는 error.
QVariant QRemoteObjectPendingCall::returnValue() const
원격 호출의 반환값을 반환합니다.
반환값은 원격 호출이 완료되고 errors가 없는 경우에만 유효합니다.
bool QRemoteObjectPendingCall::waitForFinished(int timeout = 30000)
원격 통화가 완료될 때까지 최대 timeout 밀리초 동안 차단합니다.
성공하면 true
, 그렇지 않으면 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.