Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgeorouteparser.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "qgeorouteparser_p.h"
6#include "qgeoroutesegment.h"
7#include "qgeomaneuver.h"
8
9#include <QtCore/QJsonDocument>
10#include <QtCore/QJsonObject>
11#include <QtCore/QJsonArray>
12
13#include <QtCore/private/qobject_p.h>
14#include <QtPositioning/private/qlocationutils_p.h>
15
17
18/*
19 Private class implementations
20*/
21
26
30
31/*
32 Public class implementations
33*/
34
39
44
45QGeoRouteReply::Error QGeoRouteParser::parseReply(QList<QGeoRoute> &routes, QString &errorString, const QByteArray &reply) const
46{
47 Q_D(const QGeoRouteParser);
48 return d->parseReply(routes, errorString, reply);
49}
50
52{
53 Q_D(const QGeoRouteParser);
54 return d->requestUrl(request, prefix);
55}
56
58{
59 Q_D(const QGeoRouteParser);
60 return d->trafficSide;
61}
62
64{
65 Q_D(QGeoRouteParser);
66 if (d->trafficSide == trafficSide) return;
67 d->trafficSide = trafficSide;
69}
70
72
73
\inmodule QtCore
Definition qbytearray.h:57
QUrl requestUrl(const QGeoRouteRequest &request, const QString &prefix) const
QGeoRouteReply::Error parseReply(QList< QGeoRoute > &routes, QString &errorString, const QByteArray &reply) const
void setTrafficSide(TrafficSide trafficSide)
TrafficSide trafficSide
QGeoRouteParser(QGeoRouteParserPrivate &dd, QObject *parent=nullptr)
void trafficSideChanged(TrafficSide trafficSide)
virtual ~QGeoRouteParser()
Error
Describes an error which prevented the completion of the operation.
\inmodule QtLocation
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
#define Q_EMIT
QNetworkRequest request(url)
QNetworkReply * reply