Marble

RoutingProfile.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2010 Niko Sams <[email protected]>
4 // SPDX-FileCopyrightText: 2010 Dennis Nienhüser <[email protected]>
5 //
6 
7 #ifndef MARBLE_ROUTINGPROFILE_H
8 #define MARBLE_ROUTINGPROFILE_H
9 
10 #include "marble_export.h"
11 
12 #include <QString>
13 #include <QHash>
14 #include <QVariant>
15 
16 namespace Marble
17 {
18 
19 class MARBLE_EXPORT RoutingProfile {
20  Q_PROPERTY(QString name READ name WRITE setName)
21  Q_PROPERTY(TransportType transportType READ transportType WRITE setTransportType)
22 
23 public:
24  enum TransportType {
25  Motorcar,
26  Bicycle,
27  Pedestrian
28  };
29 
30  explicit RoutingProfile( const QString &name = QString() );
31 
32  QString name() const;
33 
34  void setName( const QString &name );
35 
36  const QHash<QString, QHash<QString, QVariant> >& pluginSettings() const;
37 
38  QHash<QString, QHash<QString, QVariant> >& pluginSettings();
39 
40  void setTransportType( TransportType transportType );
41 
42  TransportType transportType() const;
43 
44  bool operator==( const RoutingProfile &other ) const;
45 
46 private:
47  QString m_name;
48  //icon
49  QHash<QString, QHash<QString, QVariant> > m_pluginSettings;
50 
51  TransportType m_transportType;
52 };
53 
54 }
55 
56 #endif
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Binds a QML item to a specific geodetic location in screen coordinates.
const char * name(StandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Oct 4 2023 04:09:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.