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
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
// Qt-Security score:significant reason:default
4
5
#
include
"qgeorouteparser_p.h"
6
#
include
"qgeorouteparser_p_p.h"
7
#
include
"qgeoroutesegment.h"
8
#
include
"qgeomaneuver.h"
9
10
#
include
<
QtCore
/
QJsonDocument
>
11
#
include
<
QtCore
/
QJsonObject
>
12
#
include
<
QtCore
/
QJsonArray
>
13
14
#
include
<
QtCore
/
private
/
qobject_p
.
h
>
15
#
include
<
QtPositioning
/
private
/
qlocationutils_p
.
h
>
16
17
QT_BEGIN_NAMESPACE
18
19
/*
20
Private class implementations
21
*/
22
23
QGeoRouteParserPrivate::QGeoRouteParserPrivate()
24
: QObjectPrivate()
25
{
26
}
27
28
QGeoRouteParserPrivate::~QGeoRouteParserPrivate()
29
{
30
}
31
32
/*
33
Public class implementations
34
*/
35
36
QGeoRouteParser::~QGeoRouteParser()
37
{
38
39
}
40
41
QGeoRouteParser::QGeoRouteParser(QGeoRouteParserPrivate &dd, QObject *parent) : QObject(dd, parent)
42
{
43
44
}
45
46
QGeoRouteReply::Error QGeoRouteParser::parseReply(QList<QGeoRoute> &routes, QString &errorString,
const
QByteArray &reply)
const
47
{
48
Q_D(
const
QGeoRouteParser);
49
return
d->parseReply(routes, errorString, reply);
50
}
51
52
QUrl QGeoRouteParser::requestUrl(
const
QGeoRouteRequest &request,
const
QString &prefix)
const
53
{
54
Q_D(
const
QGeoRouteParser);
55
return
d->requestUrl(request, prefix);
56
}
57
58
QGeoRouteParser::TrafficSide QGeoRouteParser::trafficSide()
const
59
{
60
Q_D(
const
QGeoRouteParser);
61
return
d->trafficSide;
62
}
63
64
void
QGeoRouteParser::setTrafficSide(QGeoRouteParser::TrafficSide trafficSide)
65
{
66
Q_D(QGeoRouteParser);
67
if
(d->trafficSide == trafficSide)
return
;
68
d->trafficSide = trafficSide;
69
Q_EMIT trafficSideChanged(trafficSide);
70
}
71
72
QT_END_NAMESPACE
qtlocation
src
location
maps
qgeorouteparser.cpp
Generated on
for Qt by
1.16.1