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
qgeoroutingmanagerenginemapbox.h
Go to the documentation of this file.
1// Copyright (C) 2016 Vlad Seryakov <vseryakov@gmail.com>
2// Copyright (C) 2016 Aaron McCarthy <mccarthy.aaron@gmail.com>
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QGEOROUTINGMANAGERENGINEMAPBOX_H
6#define QGEOROUTINGMANAGERENGINEMAPBOX_H
7
8#include <QtLocation/QGeoServiceProvider>
9#include <QtLocation/QGeoRoutingManagerEngine>
10
12
13class QNetworkAccessManager;
14class QGeoRouteParser;
15
17{
19
20public:
25
26 QGeoRouteReply *calculateRoute(const QGeoRouteRequest &request) override;
27 const QGeoRouteParser *routeParser() const;
28
29private Q_SLOTS:
30 void replyFinished();
31 void replyError(QGeoRouteReply::Error errorCode, const QString &errorString);
32
33private:
34 QNetworkAccessManager *m_networkManager;
35 QByteArray m_userAgent;
36 QString m_accessToken;
37 bool m_useMapboxText = false;
38 QGeoRouteParser *m_routeParser = nullptr;
39};
40
41QT_END_NAMESPACE
42
43#endif // QGEOROUTINGMANAGERENGINEOSM_H
const QGeoRouteParser * routeParser() const
QGeoRouteReply * calculateRoute(const QGeoRouteRequest &request) override
Begins the calculation of the route specified by request.
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.