blob: 826cd89a2df5508c071722406b9ee91db37f6266 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright (C) 2013-2018 Esri <contracts@esri.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef GEOROUTINGMANAGERENGINEESRI_H
#define GEOROUTINGMANAGERENGINEESRI_H
#include <QGeoServiceProvider>
#include <QGeoRoutingManagerEngine>
QT_BEGIN_NAMESPACE
class QNetworkAccessManager;
class GeoRoutingManagerEngineEsri : public QGeoRoutingManagerEngine
{
Q_OBJECT
public:
GeoRoutingManagerEngineEsri(const QVariantMap ¶meters, QGeoServiceProvider::Error *error,
QString *errorString);
virtual ~GeoRoutingManagerEngineEsri();
QGeoRouteReply *calculateRoute(const QGeoRouteRequest &request) override;
private Q_SLOTS:
void replyFinished();
void replyError(QGeoRouteReply::Error errorCode, const QString &errorString);
private:
QString preferedDirectionLangage();
QString preferedDirectionsLengthUnits();
QNetworkAccessManager *m_networkManager;
QByteArray m_userAgent;
QString m_token;
};
QT_END_NAMESPACE
#endif // GEOROUTINGMANAGERENGINEESRI_H
|