Auf dieser Seite

QPlaceContentReply Class

Die Klasse „QPlaceContentReply“ verwaltet einen Vorgang zum Abrufen von Inhalten, der von einer Instanz von „ QPlaceManager “ gestartet wurde. Mehr...

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

Öffentliche Funktionen

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

Neu implementierte öffentliche Funktionen

virtual QPlaceReply::Type type() const override

Geschützte Funktionen

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)

Ausführliche Beschreibung

Ein Beispiel für die Verwendung einer Inhaltsantwort finden Sie unter „Abrufen von Rich-Content “.

Siehe auch „ QPlaceContentRequest “ und „ QPlaceManager “.

Dokumentation zu Mitgliedsfunktionen

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

Erstellt eine Inhaltsantwort mit einem vorgegebenen parent.

[virtual noexcept] QPlaceContentReply::~QPlaceContentReply()

Löscht die Antwort.

QPlaceContent::Collection QPlaceContentReply::content() const

Gibt die Sammlung der abgerufenen Inhalte zurück.

Siehe auch setContent().

QPlaceContentRequest QPlaceContentReply::nextPageRequest() const

Gibt eine Anfrage für Ortsinhalte zurück, mit der die nächste Charge von Ergebnissen zu Ortsinhalten angefordert werden kann.

Siehe auch „ setNextPageRequest()“.

QPlaceContentRequest QPlaceContentReply::previousPageRequest() const

Gibt eine Anfrage für Ortsinhalte zurück, mit der die Ergebnisse des vorherigen Stapels von Ortsinhalten abgefragt werden können.

Siehe auch „ setPreviousPageRequest()“.

QPlaceContentRequest QPlaceContentReply::request() const

Gibt die Inhaltsanfrage zurück, die zur Erstellung dieser Antwort verwendet wurde.

Siehe auch ` setRequest()`.

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

Legt den „ content “ der Antwort fest.

Siehe auch content().

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

Legt die Anfrage für Ortsinhalte fest, mit der die nächste Charge von Ergebnissen zu Ortsinhalten unter next angefordert werden kann.

Siehe auch nextPageRequest().

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

Legt die Anfrage für Ortsinhalte fest, mit der die vorherige Charge von Ergebnissen zu Ortsinhalten unter previous angefordert werden kann.

Siehe auch previousPageRequest().

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

Legt den Inhalt request fest, der zur Erstellung dieser Antwort verwendet wurde.

Siehe auch request().

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

Legt die Anzahl der Inhaltsobjekte für einen Ort fest ( total ).

Siehe auch totalCount().

int QPlaceContentReply::totalCount() const

Gibt die Gesamtzahl der Inhaltsobjekte für einen Ort zurück. Wenn die Gesamtzahl der Inhaltsobjekte nicht ermittelt werden kann, wird der Wert -1 zurückgegeben. Diese Anzahl bezieht sich ausschließlich auf die Gesamtzahl für einen einzelnen Inhaltstyp, d. h. den Inhaltstyp, der bei der Anforderung von Inhalten mit dem Befehl „ QPlaceManager “ angegeben wurde.

Siehe auch ` setTotalCount()`.

[override virtual] QPlaceReply::Type QPlaceContentReply::type() const

Implementiert neu: ` QPlaceReply::type()` const.

Gibt den Typ der Antwort zurück.

© 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.