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.