QPlaceContentReply Class

QPlaceContentReplyクラスは、QPlaceManager のインスタンスによって開始されたコンテンツ検索操作を管理します。 ... 詳細

Header: #include <QPlaceContentReply>
qmake: QT += location
Inherits: QPlaceReply

パブリック関数

QPlaceContentReply(QObject *parent = nullptr)
virtual ~QPlaceContentReply()
QPlaceContent::Collection content() const
QPlaceContentRequest nextPageRequest() const
QPlaceContentRequest previousPageRequest() const
QPlaceContentRequest request() const
int totalCount() const

再実装パブリック関数

virtual QPlaceReply::Type type() const override

保護された関数

void setContent(const QPlaceContent::Collection &content)
void setNextPageRequest(const QPlaceContentRequest &next)
void setPreviousPageRequest(const QPlaceContentRequest &previous)
void setRequest(const QPlaceContentRequest &request)
void setTotalCount(int total)

詳細説明

コンテンツリプライの使用例については、リッチコンテンツの取得を参照してください。

QPlaceContentRequest およびQPlaceManagerも参照

メンバ関数ドキュメント

[explicit] QPlaceContentReply::QPlaceContentReply(QObject *parent = nullptr)

指定されたparent でコンテンツ応答を構築する。

[virtual noexcept] QPlaceContentReply::~QPlaceContentReply()

返信を破棄する。

QPlaceContent::Collection QPlaceContentReply::content() const

取得したコンテンツのコレクションを返します。

setContent()も参照ください

QPlaceContentRequest QPlaceContentReply::nextPageRequest() const

プレースコンテンツリクエストを返します。プレースコンテンツリクエストは、次のバッチのプレースコンテンツ結果をリクエストするために使用できます。

setNextPageRequest()も参照 ください。

QPlaceContentRequest QPlaceContentReply::previousPageRequest() const

プレイスコンテンツリクエストを返す。このリクエストは、前回のプレイスコンテンツ結果のバッチをリクエストするために使用できる。

setPreviousPageRequest()も参照 ください。

QPlaceContentRequest QPlaceContentReply::request() const

この応答を生成するために使用されたコンテンツリクエストを返す。

setRequest()も参照

[protected] void QPlaceContentReply::setContent(const QPlaceContent::Collection &content)

返信のcontent を設定する。

content()も参照のこと

[protected] void QPlaceContentReply::setNextPageRequest(const QPlaceContentRequest &next)

next に、プレースコンテンツ結果の次のバッチをリクエストするために使用できるプレースコンテンツリクエストを設定する。

nextPageRequest()も参照

[protected] void QPlaceContentReply::setPreviousPageRequest(const QPlaceContentRequest &previous)

previous に、前回のプレイスコンテンツ結果の一括リクエストに使用できるプレイスコンテンツリクエストを設定する。

previousPageRequest()も参照のこと

[protected] void QPlaceContentReply::setRequest(const QPlaceContentRequest &request)

このリプライを生成するために使用されるコンテンツrequest を設定する。

request()も参照

[protected] void QPlaceContentReply::setTotalCount(int total)

total 、ある場所のコンテンツオブジェクトの数を設定する。

totalCount()も参照

int QPlaceContentReply::totalCount() const

ある場所のコンテンツオブジェクトの総数を返す。コンテンツオブジェクトの総数をカウントできない場合は、-1が返される。このカウントは、単一のコンテンツタイプ、つまり、コンテンツがQPlaceManager で要求されたときに指定されたコンテンツタイプの合計カウントのみを参照する。

setTotalCount()も参照のこと

[override virtual] QPlaceReply::Type QPlaceContentReply::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.