The QPlaceContentReply class manages a content retrieval operation started by an instance of QPlaceManager . 更多...
头: | #include <QPlaceContentReply> |
qmake: | QT += location |
继承: | QPlaceReply |
QPlaceContentReply (QObject * parent = nullptr) | |
virtual | ~QPlaceContentReply () |
QPlaceContent::Collection | content () const |
QPlaceContentRequest | nextPageRequest () const |
QPlaceContentRequest | previousPageRequest () const |
QPlaceContentRequest | request () const |
int | totalCount () const |
virtual QPlaceReply::Type | type () const override |
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 ) |
见 Fetching Rich Content for an example on how to use a content reply.
另请参阅 QPlaceContentRequest and QPlaceManager .
[explicit]
QPlaceContentReply::
QPlaceContentReply
(
QObject
*
parent
= nullptr)
Constructs a content reply with a given parent .
[虚拟]
QPlaceContentReply::
~QPlaceContentReply
()
Destroys the reply.
Returns the collection of content retrieved.
另请参阅 setContent ().
Returns a place content request that can be used to request the next batch of place content results.
另请参阅 setNextPageRequest ().
Returns a place content request that can be used to request the previous batch of place content results.
另请参阅 setPreviousPageRequest ().
Returns the content request that was used to generate this reply.
另请参阅 setRequest ().
[protected]
void
QPlaceContentReply::
setContent
(const
QPlaceContent::Collection
&
content
)
设置 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
)
设置 total number of content objects for a place.
另请参阅 totalCount ().
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 ().
[override virtual]
QPlaceReply::Type
QPlaceContentReply::
type
() const
重实现: QPlaceReply::type() const .
Returns the type of reply.