QRemoteObjectPendingCall Class
비동기 메서드 호출의 결과를 캡슐화합니다. 더 보기...
| 헤더: | #include <QRemoteObjectPendingCall> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS RemoteObjects) target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects) |
| qmake: | QT += remoteobjects |
| 상속된 항목: | QRemoteObjectPendingCallWatcher 그리고 QRemoteObjectPendingReply |
공개 유형
| 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
원격 호출이 완료된 경우 true를 반환하고, 그렇지 않은 경우 false를 반환합니다.
완료된 호출에는 ` returnValue ` 또는 ` error`가 포함됩니다.
QVariant QRemoteObjectPendingCall::returnValue() const
원격 호출의 반환 값을 반환합니다.
returnValue는 원격 호출이 완료되고 error가 없는 경우에만 유효합니다.
bool QRemoteObjectPendingCall::waitForFinished(int timeout = 30000)
원격 호출이 완료될 때까지 최대 timeout 밀리초 동안 차단합니다.
성공 시 true 를 반환하고, 그렇지 않은 경우 false 를 반환합니다.
© 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.