QPlaceMatchRequest Class

The QPlaceMatchRequest class is used to find places from one manager that match those from another. It represents a set of request parameters. 更多...

頭: #include <QPlaceMatchRequest>
qmake: QT += location
Since: Qt 5.6

該類在 Qt 5.6 引入。

公共函數

QPlaceMatchRequest (const QPlaceMatchRequest & other )
QPlaceMatchRequest ()
QPlaceMatchRequest & operator= (const QPlaceMatchRequest & other )
~QPlaceMatchRequest ()
void clear ()
QVariantMap 參數 () const
QList<QPlace> places () const
void setParameters (const QVariantMap & 參數 )
void setPlaces (const QList<QPlace> places )
void setResults (const QList<QPlaceSearchResult> & results )
bool operator!= (const QPlaceMatchRequest & other ) const
bool operator== (const QPlaceMatchRequest & other ) const

靜態公共成員

const QString AlternativeId

詳細描述

Places from another manager that may have corresponding/matching places in the current manager are assigned using setPlaces () 或 setResults (). A set of further parameters are specified which determines the criteria for matching.

The typical key for matching is the QPlaceMatchRequest::AlternativeId , the value is an alternative identifier attribute type of the format x_id_<provider name> for example x_id_here. The provider name is name supplied to the QGeoServiceProvider 實例。

Matching places between managers for an example on how to use a match request.

另請參閱 QPlaceMatchReply and QPlaceManager .

成員函數文檔編製

QPlaceMatchRequest:: QPlaceMatchRequest (const QPlaceMatchRequest & other )

構造副本為 other .

QPlaceMatchRequest:: QPlaceMatchRequest ()

Default constructor. Constructs a new request object.

QPlaceMatchRequest &QPlaceMatchRequest:: operator= (const QPlaceMatchRequest & other )

賦值 other to this search request and returns a reference to this match request.

QPlaceMatchRequest:: ~QPlaceMatchRequest ()

Destroys the request object.

void QPlaceMatchRequest:: clear ()

Clears the match request.

QVariantMap QPlaceMatchRequest:: 參數 () const

Returns the parameters for matching places.

另請參閱 setParameters ().

QList < QPlace > QPlaceMatchRequest:: places () const

Returns a list of places which are to be matched.

另請參閱 setPlaces ().

void QPlaceMatchRequest:: setParameters (const QVariantMap & 參數 )

設置 參數 for matching places.

另請參閱 參數 ().

void QPlaceMatchRequest:: setPlaces (const QList < QPlace > places )

Sets a list of places which are to be matched.

另請參閱 places () 和 setResults ().

void QPlaceMatchRequest:: setResults (const QList < QPlaceSearchResult > & results )

Convenience function which uses a set of search results to set the places which should be matched.

另請參閱 setPlaces ().

bool QPlaceMatchRequest:: operator!= (const QPlaceMatchRequest & other ) const

返迴 true 若 other is not equal to this match request, otherwise returns false.

bool QPlaceMatchRequest:: operator== (const QPlaceMatchRequest & other ) const

返迴 true 若 other is equal to this match request, otherwise returns false.

成員變量文檔編製

const QString QPlaceMatchRequest:: AlternativeId

The key to specify that matching is to be accomplished via an alternative place identifier.