Marble

RoutingWaypoint.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2010 Dennis Nienhüser <[email protected]>
4 //
5 
6 #include "RoutingWaypoint.h"
7 
8 #include <QDebug>
9 
10 namespace Marble
11 {
12 
13 RoutingWaypoint::RoutingWaypoint() : m_secondsRemaining( 0 )
14 {
15  // nothing to do
16 }
17 
19  const QString &junctionTypeRaw, const QString &roadType,
20  int secondsRemaining, const QString &roadName )
21  : m_point( point ), m_junctionType( junctionType ),
22  m_junctionTypeRaw(junctionTypeRaw), m_roadType( roadType ),
23  m_secondsRemaining( secondsRemaining ), m_roadName( roadName.trimmed() )
24 {
25  // nothing to do
26 }
27 
29 {
30  return m_point;
31 }
32 
34 {
35  return m_junctionType;
36 }
37 
39 {
40  return m_junctionTypeRaw;
41 }
42 
44 {
45  return m_roadType;
46 }
47 
49 {
50  return m_secondsRemaining;
51 }
52 
54 {
55  return m_roadName;
56 }
57 
58 } // namespace Marble
int secondsRemaining() const
Estimated seconds remaining until the route destination is reached.
QString roadType() const
OSM type of the road.
JunctionType
Junction types that affect instructions.
RoutingPoint point() const
Associated geo point.
JunctionType junctionType() const
Parsed junction type.
There are many Point classes, but this is mine.
Definition: RoutingPoint.h:21
QString junctionTypeRaw() const
Junction type originally passed.
Binds a QML item to a specific geodetic location in screen coordinates.
QString roadName() const
OSM name of the road.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:09 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.