QPlaceContentReply Class
The QPlaceContentReply class manages a content retrieval operation started by an instance of QPlaceManager. 更多...
头文件: | #include <QPlaceContentReply> |
qmake: | QT += location |
开始支持版本: | Qt 5.6 |
基类: | QPlaceReply |
公有函数
QPlaceContentReply(QObject *parent = Q_NULLPTR) | |
virtual | ~QPlaceContentReply() |
QPlaceContent::Collection | content() const |
QPlaceContentRequest | nextPageRequest() const |
QPlaceContentRequest | previousPageRequest() const |
QPlaceContentRequest | request() const |
int | totalCount() const |
重新实现的公有函数
virtual QPlaceReply::Type | type() const |
- 4 个公有函数继承自 QPlaceReply
- 32 个公有函数继承自 QObject
受保护的函数
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 个受保护的函数继承自 QPlaceReply
- 9 个受保护的函数继承自 QObject
其他继承的成员
- 1 个属性继承自 QObject
- 1 个公有槽函数继承自 QPlaceReply
- 1 个公有槽函数继承自 QObject
- 3 个信号继承自 QPlaceReply
- 2 个信号继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
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.
参见 QPlaceContentRequest and QPlaceManager.
成员函数
QPlaceContentReply::QPlaceContentReply(QObject *parent = Q_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.
参见 setContent().
QPlaceContentRequest QPlaceContentReply::nextPageRequest() const
Returns a place content request that can be used to request the next batch of place content results.
参见 setNextPageRequest().
QPlaceContentRequest QPlaceContentReply::previousPageRequest() const
Returns a place content request that can be used to request the previous batch of place content results.
参见 setPreviousPageRequest().
QPlaceContentRequest QPlaceContentReply::request() const
Returns the content request that was used to generate this reply.
参见 setRequest().
[protected]
void QPlaceContentReply::setContent(const QPlaceContent::Collection &content)
Sets the content of the reply.
参见 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.
参见 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.
参见 previousPageRequest().
[protected]
void QPlaceContentReply::setRequest(const QPlaceContentRequest &request)
Sets the content request used to generate this this reply.
参见 request().
[protected]
void QPlaceContentReply::setTotalCount(int total)
Sets the total number of content objects for a place.
参见 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.
参见 setTotalCount().
[virtual]
QPlaceReply::Type QPlaceContentReply::type() const
Reimplemented from QPlaceReply::type().
Returns the type of reply.