QPlaceMatchReply Class

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

頭: #include <QPlaceMatchReply>
qmake: QT += location
Since: Qt 5.6
繼承: QPlaceReply

公共函數

QPlaceMatchReply (QObject * parent = nullptr)
virtual ~QPlaceMatchReply ()
QList<QPlace> places () const
QPlaceMatchRequest request () const

重實現公共函數

virtual QPlaceReply::Type type () const

靜態公共成員

const QMetaObject staticMetaObject

保護函數

void setPlaces (const QList<QPlace> & places )
void setRequest (const QPlaceMatchRequest & request )

額外繼承成員

詳細描述

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

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.

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

另請參閱 QPlaceMatchRequest and QPlaceManager .

成員函數文檔編製

QPlaceMatchReply:: QPlaceMatchReply ( QObject * parent = nullptr)

Constructs a match reply with a given parent .

[虛擬] QPlaceMatchReply:: ~QPlaceMatchReply ()

Destroys the match reply.

QList < QPlace > QPlaceMatchReply:: places () const

Returns a list of matching places;

另請參閱 setPlaces ().

QPlaceMatchRequest QPlaceMatchReply:: request () const

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

另請參閱 setRequest ().

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

Sets the list of matching places .

另請參閱 places ().

[protected] void QPlaceMatchReply:: setRequest (const QPlaceMatchRequest & request )

Sets the match request used to generate this reply.

另請參閱 request ().

[虛擬] QPlaceReply::Type QPlaceMatchReply:: type () const

重實現自 QPlaceReply::type ().

Returns the type of reply.