Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
geocodereply_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 GEOCODEREPLYESRI_H
5#define GEOCODEREPLYESRI_H
6
7#include <QNetworkReply>
8#include <QGeoCodeReply>
9
10QT_BEGIN_NAMESPACE
11
12class QGeoLocation;
13
15{
16 Q_OBJECT
17 Q_MOC_INCLUDE(<QGeoLocation>)
18
19public:
25
26public:
27 GeoCodeReplyEsri(QNetworkReply *reply, OperationType operationType, QObject *parent = nullptr);
29
30 inline OperationType operationType() const;
31
32private Q_SLOTS:
34 void networkReplyError(QNetworkReply::NetworkError error);
35
36 QGeoLocation parseAddress(const QJsonObject &object);
37 QGeoLocation parseCandidate(const QJsonObject &candidate);
38
39private:
40 OperationType m_operationType;
41};
42
44{
45 return m_operationType;
46}
47
48QT_END_NAMESPACE
49
50#endif // GEOCODEREPLYESRI_H
GeoCodeReplyEsri(QNetworkReply *reply, OperationType operationType, QObject *parent=nullptr)
OperationType operationType() const
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
QObject * parent
Definition qobject.h:73