QPlaceSearchReply Class

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

头: #include <QPlaceSearchReply>
qmake: QT += location
继承: QPlaceReply

公共函数

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

重实现公共函数

virtual QPlaceReply::Type type () const override

保护函数

void setNextPageRequest (const QPlaceSearchRequest & next )
void setPreviousPageRequest (const QPlaceSearchRequest & 上一 )
void setRequest (const QPlaceSearchRequest & request )
void setResults (const QList<QPlaceSearchResult> & 结果 )

详细描述

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

另请参阅 QPlaceSearchRequest and QPlaceManager .

成员函数文档编制

[explicit] QPlaceSearchReply:: QPlaceSearchReply ( QObject * parent = nullptr)

Constructs a search reply with a given parent .

[virtual noexcept] 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 & 上一 )

Sets the previous page of search results request to 上一 .

另请参阅 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 > & 结果 )

Sets the list of search 结果 .

另请参阅 结果 ().

[override virtual] QPlaceReply::Type QPlaceSearchReply:: type () const

重实现: QPlaceReply::type() const .

Returns the type of reply.