Marble

RoutingProfile.cpp
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 #include "RoutingProfile.h"
8 
9 namespace Marble
10 {
11 
12 RoutingProfile::RoutingProfile( const QString &name ) :
13  m_name( name ), m_transportType( Motorcar )
14 {
15  // nothing to do
16 }
17 
18 QString RoutingProfile::name() const
19 {
20  return m_name;
21 }
22 
23 void RoutingProfile::setName( const QString &name )
24 {
25  m_name = name;
26 }
27 
28 const QHash<QString, QHash<QString, QVariant> >& RoutingProfile::pluginSettings() const
29 {
30  return m_pluginSettings;
31 }
32 
33 QHash<QString, QHash<QString, QVariant> >& RoutingProfile::pluginSettings()
34 {
35  return m_pluginSettings;
36 }
37 
38 void RoutingProfile::setTransportType( RoutingProfile::TransportType transportType )
39 {
40  m_transportType = transportType;
41 }
42 
43 RoutingProfile::TransportType RoutingProfile::transportType() const
44 {
45  return m_transportType;
46 }
47 
48 bool RoutingProfile::operator==( const RoutingProfile &other ) const
49 {
50  return m_name == other.name() && m_pluginSettings == other.pluginSettings();
51 }
52 
53 }
Binds a QML item to a specific geodetic location in screen coordinates.
QString name(StandardShortcut id)
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.