QPlaceSearchReply Class

The QPlaceSearchReply class manages a place search operation started by an instance of QPlaceManager . 更多...

頭: #include <QPlaceSearchReply>
qmake: QT += location
Since: Qt 5.6
繼承: QPlaceReply

公共函數

QPlaceSearchReply (QObject * parent = nullptr)
virtual ~QPlaceSearchReply ()
QPlaceSearchRequest nextPageRequest () const
QPlaceSearchRequest previousPageRequest () const
QPlaceSearchRequest request () const
QList<QPlaceSearchResult> 結果 () const

重實現公共函數

virtual QPlaceReply::Type type () const

靜態公共成員

const QMetaObject staticMetaObject

保護函數

void setNextPageRequest (const QPlaceSearchRequest & next )
void setPreviousPageRequest (const QPlaceSearchRequest & previous )
void setRequest (const QPlaceSearchRequest & request )
void setResults (const QList<QPlaceSearchResult> & results )

額外繼承成員

詳細描述

The QPlaceSearchReply class manages a place search operation started by an instance of QPlaceManager .

Discovery/Search for an example on how to use a search reply.

另請參閱 QPlaceSearchRequest and QPlaceManager .

成員函數文檔編製

QPlaceSearchReply:: QPlaceSearchReply ( QObject * parent = nullptr)

Constructs a search reply with a given parent .

[虛擬] QPlaceSearchReply:: ~QPlaceSearchReply ()

Destroys the search reply.

QPlaceSearchRequest QPlaceSearchReply:: nextPageRequest () const

Returns a place search request which can be used to request the next page of search results. An empty place search request is returned if there is no next page of results.

另請參閱 previousPageRequest () 和 setNextPageRequest ().

QPlaceSearchRequest QPlaceSearchReply:: previousPageRequest () const

Returns a place search request which can be used to request the previous page of search results. An empty place search request is returned if there is no previous page of results.

另請參閱 nextPageRequest () 和 setPreviousPageRequest ().

QPlaceSearchRequest QPlaceSearchReply:: request () const

Returns the search request that was used to generate this reply.

另請參閱 setRequest ().

QList < QPlaceSearchResult > QPlaceSearchReply:: 結果 () const

Returns a list of search results;

另請參閱 setResults ().

[protected] void QPlaceSearchReply:: setNextPageRequest (const QPlaceSearchRequest & next )

Sets the next page of search results request to next .

另請參閱 nextPageRequest ().

[protected] void QPlaceSearchReply:: setPreviousPageRequest (const QPlaceSearchRequest & previous )

Sets the previous page of search results request to previous .

另請參閱 previousPageRequest ().

[protected] void QPlaceSearchReply:: setRequest (const QPlaceSearchRequest & request )

Sets the search request used to generate this reply.

另請參閱 request ().

[protected] void QPlaceSearchReply:: setResults (const QList < QPlaceSearchResult > & results )

Sets the list of search results .

另請參閱 結果 ().

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

重實現自 QPlaceReply::type ().

Returns the type of reply.