QPlaceContentReply Class

Die Klasse QPlaceContentReply verwaltet einen Vorgang zum Abrufen von Inhalten, der von einer Instanz von QPlaceManager gestartet wird. 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

Reimplementierte ö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)

Detaillierte Beschreibung

Siehe Fetching Rich Content für ein Beispiel zur Verwendung einer Inhaltsantwort.

Siehe auch QPlaceContentRequest und QPlaceManager.

Dokumentation der Mitgliedsfunktionen

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

Konstruiert eine inhaltliche Antwort mit einer gegebenen parent.

[virtual noexcept] QPlaceContentReply::~QPlaceContentReply()

Zerstört die Antwort.

QPlaceContent::Collection QPlaceContentReply::content() const

Gibt die Sammlung der abgerufenen Inhalte zurück.

Siehe auch setContent().

QPlaceContentRequest QPlaceContentReply::nextPageRequest() const

Gibt eine Ortsinhaltsanforderung zurück, die verwendet werden kann, um den nächsten Stapel von Ortsinhaltsergebnissen anzufordern.

Siehe auch setNextPageRequest().

QPlaceContentRequest QPlaceContentReply::previousPageRequest() const

Gibt eine Ortsinhaltsanforderung zurück, die verwendet werden kann, um den vorherigen Stapel von Ortsinhaltsergebnissen anzufordern.

Siehe auch setPreviousPageRequest().

QPlaceContentRequest QPlaceContentReply::request() const

Gibt die Inhaltsanforderung zurück, die zur Erzeugung dieser Antwort verwendet wurde.

Siehe auch setRequest().

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

Legt die content der Antwort fest.

Siehe auch content().

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

Legt die Ortsinhaltsanforderung fest, die verwendet werden kann, um den nächsten Stapel von Ortsinhaltsergebnissen an next anzufordern.

Siehe auch nextPageRequest().

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

Legt die Ortsinhaltsanforderung fest, die verwendet werden kann, um den vorherigen Stapel von Ortsinhaltsergebnissen an previous anzufordern.

Siehe auch previousPageRequest().

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

Legt den Inhalt request fest, der für die Erstellung dieser Antwort verwendet wird.

Siehe auch request().

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

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

Siehe auch totalCount().

int QPlaceContentReply::totalCount() const

Gibt die Gesamtzahl der Inhaltsobjekte für einen Ort zurück. Wenn die Gesamtzahl der Inhaltsobjekte nicht gezählt werden kann, wird der Wert -1 zurückgegeben. Diese Zählung bezieht sich nur auf die Gesamtzahl für einen einzelnen Inhaltstyp, d. h. den Inhaltstyp, der bei der Anforderung von Inhalten mit QPlaceManager angegeben wurde.

Siehe auch setTotalCount().

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

Reimplements: QPlaceReply::type() const.

Gibt den Typ der Antwort zurück.

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