Marble

RoutingWaypoint.h
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 #ifndef MARBLE_ROUTINGWAYPOINT_H
12 #define MARBLE_ROUTINGWAYPOINT_H
13 
14 #include "RoutingPoint.h"
15 #include "marble_export.h"
16 
17 #include <QVector>
18 #include <QString>
19 
20 namespace Marble
21 {
22 
26 class MARBLE_EXPORT RoutingWaypoint
27 {
28 public:
31  {
32  Roundabout,
33  Other,
34  None
35  };
36 
39 
41  RoutingWaypoint( const RoutingPoint &point, JunctionType junctionType, const QString &junctionTypeRaw,
42  const QString &roadType, int secondsRemaining, const QString &roadName );
43 
45  RoutingPoint point() const;
46 
48  JunctionType junctionType() const;
49 
51  QString junctionTypeRaw() const;
52 
54  QString roadType() const;
55 
57  int secondsRemaining() const;
58 
60  QString roadName() const;
61 
62 private:
63  RoutingPoint m_point;
64 
65  JunctionType m_junctionType;
66 
67  QString m_junctionTypeRaw;
68 
69  QString m_roadType;
70 
71  int m_secondsRemaining;
72 
73  QString m_roadName;
74 };
75 
77 
78 } // namespace Marble
79 
80 #endif
Binds a QML item to a specific geodetic location in screen coordinates.
There are many Point classes, but this is mine.
Definition: RoutingPoint.h:26
Stores one line of gosmore/routino output.
JunctionType
Junction types that affect instructions.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 23:17:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.