QPlaceContentReply Class

The QPlaceContentReply class manages a content retrieval operation started by an instance of QPlaceManager . 更多...

頭: #include <QPlaceContentReply>
qmake: QT += location
Since: 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

保護函數

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 )

額外繼承成員

詳細描述

The QPlaceContentReply class manages a content retrieval operation started by an instance of QPlaceManager .

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 .

[虛擬] 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 )

設置 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 ().

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 ().

[虛擬] QPlaceReply::Type QPlaceContentReply:: type () const

重實現自 QPlaceReply::type ().

Returns the type of reply.