QPlaceContentReply Class
The QPlaceContentReply class manages a content retrieval operation started by an instance of QPlaceManager. More...
Header: | #include <QPlaceContentReply> |
qmake: | QT += location |
Since: | Qt 5.6 |
Inherits: | QPlaceReply |
Public Functions
QPlaceContentReply(QObject *parent = nullptr) | |
virtual | ~QPlaceContentReply() |
QPlaceContent::Collection | content() const |
QPlaceContentRequest | nextPageRequest() const |
QPlaceContentRequest | previousPageRequest() const |
QPlaceContentRequest | request() const |
int | totalCount() const |
Reimplemented Public Functions
virtual QPlaceReply::Type | type() const |
- 4 public functions inherited from QPlaceReply
- 31 public functions inherited from QObject
Static Public Members
const QMetaObject | staticMetaObject |
- 9 static public members inherited from QObject
Protected Functions
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) |
- 2 protected functions inherited from QPlaceReply
- 9 protected functions inherited from QObject
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QPlaceReply
- 1 public slot inherited from QObject
- 4 signals inherited from QPlaceReply
- 2 signals inherited from QObject
Detailed Description
The QPlaceContentReply class manages a content retrieval operation started by an instance of QPlaceManager.
See Fetching Rich Content for an example on how to use a content reply.
See also QPlaceContentRequest and QPlaceManager.
Member Function Documentation
QPlaceContentReply::QPlaceContentReply(QObject *parent = nullptr)
Constructs a content reply with a given parent.
[virtual]
QPlaceContentReply::~QPlaceContentReply()
Destroys the reply.
QPlaceContent::Collection QPlaceContentReply::content() const
Returns the collection of content retrieved.
See also setContent().
QPlaceContentRequest QPlaceContentReply::nextPageRequest() const
Returns a place content request that can be used to request the next batch of place content results.
See also setNextPageRequest().
QPlaceContentRequest QPlaceContentReply::previousPageRequest() const
Returns a place content request that can be used to request the previous batch of place content results.
See also setPreviousPageRequest().
QPlaceContentRequest QPlaceContentReply::request() const
Returns the content request that was used to generate this reply.
See also setRequest().
[protected]
void QPlaceContentReply::setContent(const QPlaceContent::Collection &content)
Sets the content of the reply.
See also content().
[protected]
void QPlaceContentReply::setNextPageRequest(const QPlaceContentRequest &next)
Sets the place content request that can be used to request the next batch of place content results to next.
See also nextPageRequest().
[protected]
void QPlaceContentReply::setPreviousPageRequest(const QPlaceContentRequest &previous)
Sets the place content request that can be used to request the previous batch of place content results to previous.
See also previousPageRequest().
[protected]
void QPlaceContentReply::setRequest(const QPlaceContentRequest &request)
Sets the content request used to generate this this reply.
See also request().
[protected]
void QPlaceContentReply::setTotalCount(int total)
Sets the total number of content objects for a place.
See also totalCount().
int QPlaceContentReply::totalCount() const
Returns the total number of content objects for a place. If the total number of content objects cannot be counted, a value of -1 is returned. This count only refers to the total count for a single content type, that is, the content type that was specified when content was requested with the QPlaceManager.
See also setTotalCount().
[virtual]
QPlaceReply::Type QPlaceContentReply::type() const
Reimplemented from QPlaceReply::type().
Returns the type of reply.
© 2021 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.