Qt 6.x
The Qt SDK
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
24{
25}
26
28{
29}
30
31/*
32 Public class implementations
33*/
34
36{
37
38}
39
41{
42
43}
44
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
Definition qlist.h:74
\inmodule QtCore
Definition qobject.h:90
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
#define Q_EMIT
QNetworkRequest request(url)
QNetworkReply * reply
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent