Marble

RoutingProfile.h
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#ifndef MARBLE_ROUTINGPROFILE_H
8#define MARBLE_ROUTINGPROFILE_H
9
10#include "marble_export.h"
11
12#include <QHash>
13#include <QString>
14#include <QVariant>
15
16namespace Marble
17{
18
19class MARBLE_EXPORT RoutingProfile
20{
21 Q_GADGET
22 Q_PROPERTY(QString name READ name WRITE setName)
23 Q_PROPERTY(TransportType transportType READ transportType WRITE setTransportType)
24
25public:
26 enum TransportType {
27 Motorcar,
28 Bicycle,
29 Pedestrian,
30 };
31 Q_ENUM(TransportType);
32
33 explicit RoutingProfile(const QString &name = QString());
34
35 QString name() const;
36
37 void setName(const QString &name);
38
39 const QHash<QString, QHash<QString, QVariant>> &pluginSettings() const;
40
42
43 void setTransportType(TransportType transportType);
44
45 TransportType transportType() const;
46
47 bool operator==(const RoutingProfile &other) const;
48
49private:
50 QString m_name;
51 // icon
53
54 TransportType m_transportType;
55};
56
57}
58
59#endif
QString name(StandardAction id)
bool operator==(const StyleDelim &l, const StyleDelim &r)
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.