Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
placesearchreply_esri.h
Go to the documentation of this file.
1// Copyright (C) 2013-2018 Esri <contracts@esri.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef PLACESEARCHREPLYESRI_H
5#define PLACESEARCHREPLYESRI_H
6
7#include <QtLocation/QPlaceSearchReply>
8#include <QNetworkReply>
9
11
13class QNetworkReply;
14class QPlaceResult;
15
17{
19
20public:
22 const QHash<QString, QString> &candidateFields,
23 const QHash<QString, QString> &countries, PlaceManagerEngineEsri *parent);
25
27
28private slots:
29 void setError(QPlaceReply::Error errorCode, const QString &errorString);
30 void replyFinished();
31 void networkError(QNetworkReply::NetworkError error);
32
33private:
34 QPlaceResult parsePlaceResult(const QJsonObject &item) const;
35
36 const QHash<QString, QString> &m_candidateFields;
37 const QHash<QString, QString> &m_countries;
38};
39
41
42#endif // PLACESEARCHREPLYESRI_H
PlaceSearchReplyEsri(const QPlaceSearchRequest &request, QNetworkReply *reply, const QHash< QString, QString > &candidateFields, const QHash< QString, QString > &countries, PlaceManagerEngineEsri *parent)
\inmodule QtCore\reentrant
Definition qjsonobject.h:20
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
NetworkError
Indicates all possible error conditions found during the processing of the request.
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
QPlaceReply::Error error() const
Returns the error code.
Error
Describes an error which occurred during an operation.
Definition qplacereply.h:18
QString errorString() const
Returns the error string of the reply.
\inmodule QtLocation
\inmodule QtLocation
QPlaceSearchRequest request() const
Returns the search request that was used to generate this reply.
\inmodule QtLocation
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
#define Q_OBJECT
#define slots
QGraphicsItem * item
QNetworkReply * reply