Marble

RoutingWaypoint.cpp
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2010 Dennis Nienhüser <[email protected]>
9 //
10 
11 #include "RoutingWaypoint.h"
12 
13 #include <QDebug>
14 
15 namespace Marble
16 {
17 
18 RoutingWaypoint::RoutingWaypoint() : m_secondsRemaining( 0 )
19 {
20  // nothing to do
21 }
22 
24  const QString &junctionTypeRaw, const QString &roadType,
25  int secondsRemaining, const QString &roadName )
26  : m_point( point ), m_junctionType( junctionType ),
27  m_junctionTypeRaw(junctionTypeRaw), m_roadType( roadType ),
28  m_secondsRemaining( secondsRemaining ), m_roadName( roadName.trimmed() )
29 {
30  // nothing to do
31 }
32 
34 {
35  return m_point;
36 }
37 
39 {
40  return m_junctionType;
41 }
42 
44 {
45  return m_junctionTypeRaw;
46 }
47 
49 {
50  return m_roadType;
51 }
52 
54 {
55  return m_secondsRemaining;
56 }
57 
59 {
60  return m_roadName;
61 }
62 
63 } // namespace Marble
QString roadName() const
OSM name of the road.
Binds a QML item to a specific geodetic location in screen coordinates.
RoutingWaypoint()
Constructor.
RoutingPoint point() const
Associated geo point.
JunctionType junctionType() const
Parsed junction type.
int secondsRemaining() const
Estimated seconds remaining until the route destination is reached.
QString roadType() const
OSM type of the road.
There are many Point classes, but this is mine.
Definition: RoutingPoint.h:26
QString junctionTypeRaw() const
Junction type originally passed.
JunctionType
Junction types that affect instructions.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun May 24 2020 22:38:26 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.