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

QPlaceMatchReply Class

The QPlaceMatchReply class manages a place matching operation started by an instance of QPlaceManager.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QPlaceMatchReply Class

  • Header: QPlaceMatchReply

  • qmake: QT += location

  • Inherits: QPlaceReply

  • Inherited By:

  • Group: QPlaceMatchReply is part of QtLocation-places, QtLocation-places-replies

I. Detailed Description

If the operation is successful, the number of places in the reply matches those in the request. If a particular place in the request is not found, a default constructed place is used as a place holder in the reply. In this way, there is always a one is to one relationship between input places in the request, and output places in the reply.

If the operation is not successful the number of places is always zero.

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

I-1. See Also

II. Member Function Documentation

 

II-1. [explicit] QPlaceMatchReply::QPlaceMatchReply(QObject *parent = nullptr)

Constructs a match reply with a given parent.

II-2. [virtual] QPlaceMatchReply::~QPlaceMatchReply()

Destroys the match reply.

II-3. QList<QPlace> QPlaceMatchReply::places() const

Returns a list of matching places;

II-3-1. See Also

See also setPlaces()

II-4. QPlaceMatchRequest QPlaceMatchReply::request() const

Returns the match request that was used to generate this reply.

II-4-1. See Also

See also setRequest()

II-5. [protected] void QPlaceMatchReply::setPlaces(const QList<QPlace> &places)

Sets the list of matching places.

II-5-1. See Also

See also places()

II-6. [protected] void QPlaceMatchReply::setRequest(const QPlaceMatchRequest &request)

Sets the match request used to generate this reply.

II-6-1. See Also

See also request()

II-7. [override virtual] QPlaceReply::Type QPlaceMatchReply::type() const

Reimplements: QPlaceReply::type() const.

Returns the type of reply.

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