QPlaceMatchReply Class
QPlaceMatchReplyクラスは、QPlaceManager のインスタンスによって開始されたプレイスマッチング操作を管理する。
Header: | #include <QPlaceMatchReply> |
qmake: | QT += location |
Inherits: | QPlaceReply |
パブリック関数
QPlaceMatchReply(QObject *parent = nullptr) | |
virtual | ~QPlaceMatchReply() |
QList<QPlace> | places() const |
QPlaceMatchRequest | request() const |
再実装パブリック関数
virtual QPlaceReply::Type | type() const override |
保護された関数
void | setPlaces(const QList<QPlace> &places) |
void | setRequest(const QPlaceMatchRequest &request) |
詳細説明
操作が成功した場合、返信のプレースホルダの数はリクエストのプレースホルダと一致します。リクエスト内の特定のプレースが見つからない場合、デフォルトで構築されたプレースがリプライ内のプレースホルダとして使用されます。このようにして、リクエストの入力場所と、リプライの出力場所の間には、常に一対一の関係がある。
操作が成功しなかった場合、場所の数は常にゼロである。
マッチ・リプライの使い方の例については、マネージャー間の場所のマッチングを参照のこと。
QPlaceMatchRequest およびQPlaceManagerも参照のこと 。
メンバー関数ドキュメント
[explicit]
QPlaceMatchReply::QPlaceMatchReply(QObject *parent = nullptr)
指定されたparent でマッチ応答を構築する。
[virtual noexcept]
QPlaceMatchReply::~QPlaceMatchReply()
マッチの返信を破壊する。
QList<QPlace> QPlaceMatchReply::places() const
マッチする場所のリストを返す;
setPlaces()も参照 。
QPlaceMatchRequest QPlaceMatchReply::request() const
このリプライを生成するために使われたマッチリクエストを返す。
setRequest()も参照 。
[protected]
void QPlaceMatchReply::setPlaces(const QList<QPlace> &places)
places にマッチするリストを設定する。
places()も参照のこと 。
[protected]
void QPlaceMatchReply::setRequest(const QPlaceMatchRequest &request)
このリプライの生成に使われるマッチrequest を設定する。
request()も参照のこと 。
[override virtual]
QPlaceReply::Type QPlaceMatchReply::type() const
再実装:QPlaceReply::type() const.
返信の型を返します。
© 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.