IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

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.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QPlaceMatchRequest Class

  • Header: QPlaceMatchRequest

  • qmake: QT += location

  • Group: QPlaceMatchRequest is part of QtLocation-places, QtLocation-places-requests

I. Detailed Description

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.

I-1. See Also

II. Member Function Documentation

 

II-1. QPlaceMatchRequest::QPlaceMatchRequest()

Default constructor. Constructs a new request object.

II-2. QPlaceMatchRequest::QPlaceMatchRequest(const QPlaceMatchRequest &other)

Constructs a copy of other.

II-3. QPlaceMatchRequest::~QPlaceMatchRequest()

Destroys the request object.

II-4. void QPlaceMatchRequest::clear()

Clears the match request.

II-5. QVariantMap QPlaceMatchRequest::parameters() const

Returns the parameters for matching places.

II-5-1. See Also

See also setParameters()

II-6. QList<QPlace> QPlaceMatchRequest::places() const

Returns a list of places which are to be matched.

II-6-1. See Also

See also setPlaces()

II-7. void QPlaceMatchRequest::setParameters(const QVariantMap &parameters)

Sets the parameters for matching places.

II-7-1. See Also

See also parameters()

II-8. void QPlaceMatchRequest::setPlaces(const QList<QPlace> &places)

Sets a list of places which are to be matched.

II-8-1. See Also

See also places(), setResults()

II-9. void QPlaceMatchRequest::setResults(const QList<QPlaceSearchResult> &results)

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

II-9-1. See Also

See also setPlaces()

II-10. QPlaceMatchRequest &QPlaceMatchRequest::operator=(const QPlaceMatchRequest &other)

Assigns other to this search request and returns a reference to this match request.

III. Member Variable Documentation

 

III-1. const QString QPlaceMatchRequest::AlternativeId

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

IV. Related Non-Members

 

IV-1. bool operator!=(const QPlaceMatchRequest &lhs, const QPlaceMatchRequest &rhs)

Returns true if lhs is not equal to rhs, otherwise returns false.

IV-2. bool operator==(const QPlaceMatchRequest &lhs, const QPlaceMatchRequest &rhs)

Returns true if lhs is equal to rhs, otherwise returns false.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+