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
qgeoroutingmanagerengineosm.h
Go to the documentation of this file.
1// Copyright (C) 2016 Aaron McCarthy <mccarthy.aaron@gmail.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 QGEOROUTINGMANAGERENGINEOSM_H
5#define QGEOROUTINGMANAGERENGINEOSM_H
6
7#include <QtLocation/QGeoServiceProvider>
8#include <QtLocation/QGeoRoutingManagerEngine>
9#include <QtLocation/private/qgeorouteparser_p.h>
10
12
13class QNetworkAccessManager;
14
16{
18
19public:
24
25 QGeoRouteReply *calculateRoute(const QGeoRouteRequest &request) override;
26 const QGeoRouteParser *routeParser() const;
27
28private Q_SLOTS:
29 void replyFinished();
30 void replyError(QGeoRouteReply::Error errorCode, const QString &errorString);
31
32private:
33 QNetworkAccessManager *m_networkManager;
34 QGeoRouteParser *m_routeParser;
35 QByteArray m_userAgent;
36 QString m_urlPrefix;
37};
38
39QT_END_NAMESPACE
40
41#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.