Marble

RoutingProfile.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2010 Niko Sams <niko.sams@gmail.com>
4// SPDX-FileCopyrightText: 2010 Dennis Nienhüser <nienhueser@kde.org>
5//
6
7#include "RoutingProfile.h"
8
9namespace Marble
10{
11
12RoutingProfile::RoutingProfile( const QString &name ) :
13 m_name( name ), m_transportType( Motorcar )
14{
15 // nothing to do
16}
17
18QString RoutingProfile::name() const
19{
20 return m_name;
21}
22
23void RoutingProfile::setName( const QString &name )
24{
25 m_name = name;
26}
27
28const QHash<QString, QHash<QString, QVariant> >& RoutingProfile::pluginSettings() const
29{
30 return m_pluginSettings;
31}
32
33QHash<QString, QHash<QString, QVariant> >& RoutingProfile::pluginSettings()
34{
35 return m_pluginSettings;
36}
37
38void RoutingProfile::setTransportType( RoutingProfile::TransportType transportType )
39{
40 m_transportType = transportType;
41}
42
43RoutingProfile::TransportType RoutingProfile::transportType() const
44{
45 return m_transportType;
46}
47
48bool RoutingProfile::operator==( const RoutingProfile &other ) const
49{
50 return m_name == other.name() && m_pluginSettings == other.pluginSettings();
51}
52
53}
QString name(StandardAction id)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:49:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.