The QPlaceMatchRequest class is used to find places from one manager that match those from another. It represents a set of request parameters. More...
Header: | #include <QPlaceMatchRequest> |
qmake: | QT += location |
Since: | Qt 5.6 |
QPlaceMatchRequest(const QPlaceMatchRequest &other) | |
QPlaceMatchRequest() | |
QPlaceMatchRequest & | operator=(const QPlaceMatchRequest &other) |
~QPlaceMatchRequest() | |
void | clear() |
QVariantMap | parameters() const |
QList<QPlace> | places() const |
void | setParameters(const QVariantMap ¶meters) |
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() or 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 instance.
See Matching places between managers for an example on how to use a match request.
See also QPlaceMatchReply and QPlaceManager.
Constructs a copy of other.
Default constructor. Constructs a new request object.
Assigns other to this search request and returns a reference to this match request.
Destroys the request object.
Clears the match request.
Returns the parameters for matching places.
See also setParameters().
Returns a list of places which are to be matched.
See also setPlaces().
Sets the parameters for matching places.
See also parameters().
Sets a list of places which are to be matched.
See also places() and setResults().
Convenience function which uses a set of search results to set the places which should be matched.
See also setPlaces().
Returns true if other is not equal to this match request, otherwise returns false.
Returns true if other is equal to this match request, otherwise returns false.
The key to specify that matching is to be accomplished via an alternative place identifier.