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
を返す。
© 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.