Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
14class QGeoRouteParser;
15
17{
19
20public:
23 QString *errorString);
25
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
42
43#endif // QGEOROUTINGMANAGERENGINEOSM_H
44
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtLocation
Error
Describes an error which prevented the completion of the operation.
\inmodule QtLocation
const QGeoRouteParser * routeParser() const
QGeoRouteReply * calculateRoute(const QGeoRouteRequest &request) override
Error
Describes an error related to the loading and setup of a service provider plugin.
The QNetworkAccessManager class allows the application to send network requests and receive replies.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
#define Q_OBJECT
#define Q_SLOTS
QNetworkRequest request(url)