In questa pagina

QPlaceContentReply Class

La classe `QPlaceContentReply` gestisce un'operazione di recupero dei contenuti avviata da un'istanza di ` QPlaceManager`. Per saperne di più...

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

Funzioni pubbliche

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

Funzioni pubbliche reimplementate

virtual QPlaceReply::Type type() const override

Funzioni protette

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)

Descrizione dettagliata

Per un esempio su come utilizzare una risposta di contenuto, consultare la sezione " Recupero di contenuti avanzati ".

Vedi anche QPlaceContentRequest e QPlaceManager.

Documentazione sulle funzioni membro

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

Crea una risposta di contenuto con un dato parent.

[virtual noexcept] QPlaceContentReply::~QPlaceContentReply()

Elimina la risposta.

QPlaceContent::Collection QPlaceContentReply::content() const

Restituisce la raccolta dei contenuti recuperati.

Vedi anche setContent().

QPlaceContentRequest QPlaceContentReply::nextPageRequest() const

Restituisce una richiesta di contenuti relativi a un luogo che può essere utilizzata per richiedere la serie successiva di risultati relativi a tale luogo.

Vedi anche setNextPageRequest().

QPlaceContentRequest QPlaceContentReply::previousPageRequest() const

Restituisce una richiesta di contenuti relativi a un luogo che può essere utilizzata per richiedere il batch precedente di risultati relativi a quel luogo.

Vedi anche setPreviousPageRequest().

QPlaceContentRequest QPlaceContentReply::request() const

Restituisce la richiesta di contenuto utilizzata per generare questa risposta.

Vedi anche setRequest().

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

Imposta l'content e della risposta.

Vedi anche content().

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

Imposta la richiesta di contenuti relativi ai luoghi che può essere utilizzata per richiedere la serie successiva di risultati relativi ai luoghi all'indirizzo next.

Vedi anche nextPageRequest().

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

Imposta la richiesta di contenuti relativi a un luogo che può essere utilizzata per richiedere il batch precedente di risultati relativi a quel luogo all'indirizzo previous.

Vedi anche previousPageRequest().

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

Imposta il contenuto request utilizzato per generare questa risposta.

Vedi anche request().

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

Imposta il numero di oggetti di contenuto ( total ) per una località.

Vedi anche totalCount().

int QPlaceContentReply::totalCount() const

Restituisce il numero totale di oggetti di contenuto relativi a un luogo. Se non è possibile contare il numero totale di oggetti di contenuto, viene restituito il valore -1. Questo conteggio si riferisce esclusivamente al numero totale relativo a un singolo tipo di contenuto, ovvero il tipo di contenuto specificato al momento della richiesta dei contenuti tramite l’ QPlaceManager.

Vedi anche setTotalCount().

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

Reimplementa: QPlaceReply::type() const.

Restituisce il tipo della risposta.

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