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)
14 , m_transportType(Motorcar)
15{
16 // nothing to do
17}
18
19QString RoutingProfile::name() const
20{
21 return m_name;
22}
23
24void RoutingProfile::setName(const QString &name)
25{
26 m_name = name;
27}
28
29const QHash<QString, QHash<QString, QVariant>> &RoutingProfile::pluginSettings() const
30{
31 return m_pluginSettings;
32}
33
34QHash<QString, QHash<QString, QVariant>> &RoutingProfile::pluginSettings()
35{
36 return m_pluginSettings;
37}
38
39void RoutingProfile::setTransportType(RoutingProfile::TransportType transportType)
40{
41 m_transportType = transportType;
42}
43
44RoutingProfile::TransportType RoutingProfile::transportType() const
45{
46 return m_transportType;
47}
48
49bool RoutingProfile::operator==(const RoutingProfile &other) const
50{
51 return m_name == other.name() && m_pluginSettings == other.pluginSettings();
52}
53
54}
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 Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.