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 <QString>
13#include <QHash>
14#include <QVariant>
15
16namespace Marble
17{
18
19class MARBLE_EXPORT RoutingProfile {
20 Q_PROPERTY(QString name READ name WRITE setName)
21 Q_PROPERTY(TransportType transportType READ transportType WRITE setTransportType)
22
23public:
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
39
40 void setTransportType( TransportType transportType );
41
42 TransportType transportType() const;
43
44 bool operator==( const RoutingProfile &other ) const;
45
46private:
47 QString m_name;
48 //icon
50
51 TransportType m_transportType;
52};
53
54}
55
56#endif
QString name(GameStandardAction id)
Binds a QML item to a specific geodetic location in screen coordinates.
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:57:58 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.