7#include "QtLocation/private/qgeorouteparserosrmv5_p.h"
9#include <QtCore/QUrlQuery>
11#include <QtCore/QDebug>
21 m_userAgent =
"Qt Location based application";
26 m_urlPrefix =
QStringLiteral(
"http://router.project-osrm.org/route/v1/driving/");
62 this, &QGeoRoutingManagerEngineOsm::replyFinished);
64 this, &QGeoRoutingManagerEngineOsm::replyError);
74void QGeoRoutingManagerEngineOsm::replyFinished()
void setTrafficSide(TrafficSide trafficSide)
void finished()
This signal is emitted when this reply has finished processing.
Error
Describes an error which prevented the completion of the operation.
void errorOccurred(QGeoRouteReply::Error error, const QString &errorString=QString())
This signal is emitted when an error has been detected in the processing of this reply.
~QGeoRoutingManagerEngineOsm()
const QGeoRouteParser * routeParser() const
QGeoRouteReply * calculateRoute(const QGeoRouteRequest &request) override
QGeoRoutingManagerEngineOsm(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString)
void errorOccurred(QGeoRouteReply *reply, QGeoRouteReply::Error error, const QString &errorString=QString())
This signal is emitted when an error has been detected in the processing of reply.
void finished(QGeoRouteReply *reply)
This signal is emitted when reply has finished processing.
Error
Describes an error related to the loading and setup of a service provider plugin.
T value(const Key &key, const T &defaultValue=T()) const
bool contains(const Key &key) const
The QNetworkAccessManager class allows the application to send network requests and receive replies.
QNetworkReply * get(const QNetworkRequest &request)
Posts a request to obtain the contents of the target request and returns a new QNetworkReply object o...
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
The QNetworkRequest class holds a request to be sent with QNetworkAccessManager.
void setHeader(KnownHeaders header, const QVariant &value)
Sets the value of the known header header to be value, overriding any previously set headers.
void setUrl(const QUrl &url)
Sets the URL this network request is referring to be url.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
QObject * sender() const
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; othe...
\macro QT_RESTRICTED_CAST_FROM_ASCII
QByteArray toLatin1() const &
void clear()
Clears the contents of the string and makes it null.
QString toString() const
Returns the variant as a QString if the variant has a userType() including, but not limited to:
DBusConnection const char DBusError * error
#define QStringLiteral(str)
QNetworkRequest request(url)
char * toString(const MyType &t)
[31]