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 |
QPlaceMatchRequest () | |
QPlaceMatchRequest (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> & 结果 ) |
QPlaceMatchRequest & | operator= (const QPlaceMatchRequest & other ) |
const QString | AlternativeId |
bool | operator!= (const QPlaceMatchRequest & lhs , const QPlaceMatchRequest & rhs ) |
bool | operator== (const QPlaceMatchRequest & lhs , const QPlaceMatchRequest & rhs ) |
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 .
Default constructor. Constructs a new request object.
[noexcept]
QPlaceMatchRequest::
QPlaceMatchRequest
(const
QPlaceMatchRequest
&
other
)
构造副本为 other .
[noexcept]
QPlaceMatchRequest::
~QPlaceMatchRequest
()
Destroys the request object.
Clears the match request.
Returns the parameters for matching places.
另请参阅 setParameters ().
Returns a list of places which are to be matched.
另请参阅 setPlaces ().
设置 参数 for matching places.
另请参阅 参数 ().
Sets a list of places which are to be matched.
另请参阅 places () 和 setResults ().
Convenience function which uses a set of search 结果 to set the places which should be matched.
另请参阅 setPlaces ().
[noexcept]
QPlaceMatchRequest
&QPlaceMatchRequest::
operator=
(const
QPlaceMatchRequest
&
other
)
赋值 other to this search request and returns a reference to this match request.
The key to specify that matching is to be accomplished via an alternative place identifier.
[noexcept]
bool
operator!=
(const
QPlaceMatchRequest
&
lhs
, const
QPlaceMatchRequest
&
rhs
)
返回 true 若 lhs 不等于 rhs ,否则返回 false。
[noexcept]
bool
operator==
(const
QPlaceMatchRequest
&
lhs
, const
QPlaceMatchRequest
&
rhs
)
返回 true 若 lhs 等于 rhs ,否则返回 false。