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
4
#
include
"qgeorouteparser_p.h"
5
#
include
"qgeorouteparser_p_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
16
QT_BEGIN_NAMESPACE
17
18
/*
19
Private class implementations
20
*/
21
22
QGeoRouteParserPrivate::QGeoRouteParserPrivate()
23
: QObjectPrivate()
24
{
25
}
26
27
QGeoRouteParserPrivate::~QGeoRouteParserPrivate()
28
{
29
}
30
31
/*
32
Public class implementations
33
*/
34
35
QGeoRouteParser::~QGeoRouteParser()
36
{
37
38
}
39
40
QGeoRouteParser::QGeoRouteParser(QGeoRouteParserPrivate &dd, QObject *parent) : QObject(dd, parent)
41
{
42
43
}
44
45
QGeoRouteReply::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
51
QUrl QGeoRouteParser::requestUrl(
const
QGeoRouteRequest &request,
const
QString &prefix)
const
52
{
53
Q_D(
const
QGeoRouteParser);
54
return
d->requestUrl(request, prefix);
55
}
56
57
QGeoRouteParser::TrafficSide QGeoRouteParser::trafficSide()
const
58
{
59
Q_D(
const
QGeoRouteParser);
60
return
d->trafficSide;
61
}
62
63
void
QGeoRouteParser::setTrafficSide(QGeoRouteParser::TrafficSide trafficSide)
64
{
65
Q_D(QGeoRouteParser);
66
if
(d->trafficSide == trafficSide)
return
;
67
d->trafficSide = trafficSide;
68
Q_EMIT trafficSideChanged(trafficSide);
69
}
70
71
QT_END_NAMESPACE
qtlocation
src
location
maps
qgeorouteparser.cpp
Generated on
for Qt by
1.14.0