QPlaceMatchReply Class
The QPlaceMatchReply class manages a place matching operation started by an instance of QPlaceManager. 更多...
头文件: | #include <QPlaceMatchReply> |
qmake: | QT += location |
开始支持版本: | Qt 5.6 |
基类: | QPlaceReply |
公有函数
QPlaceMatchReply(QObject *parent = Q_NULLPTR) | |
~QPlaceMatchReply() | |
QList<QPlace> | places() const |
QPlaceMatchRequest | request() const |
重新实现的公有函数
virtual QPlaceReply::Type | type() const |
- 4 个公有函数继承自 QPlaceReply
- 32 个公有函数继承自 QObject
受保护的函数
void | setPlaces(const QList<QPlace> &places) |
void | setRequest(const QPlaceMatchRequest &request) |
- 2 个受保护的函数继承自 QPlaceReply
- 9 个受保护的函数继承自 QObject
其他继承的成员
- 1 个属性继承自 QObject
- 1 个公有槽函数继承自 QPlaceReply
- 1 个公有槽函数继承自 QObject
- 3 个信号继承自 QPlaceReply
- 2 个信号继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
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.
See Matching places between managers for an example on how to use a match reply.
参见 QPlaceMatchRequest and QPlaceManager.
成员函数
QPlaceMatchReply::QPlaceMatchReply(QObject *parent = Q_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().
[virtual]
QPlaceReply::Type QPlaceMatchReply::type() const
Reimplemented from QPlaceReply::type().
Returns the type of reply.