KOSMIndoorMap

routing-quick/routingarea.h
1/*
2 SPDX-FileCopyrightText: 2024 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#include <KOSMIndoorRouting/RoutingArea>
7
8#include <QQmlEngine>
9#include <QQmlExtensionPlugin>
10
11namespace AreaType {
12Q_NAMESPACE
13QML_NAMED_ELEMENT(AreaType)
14
15#define E(x) x = qToUnderlying(KOSMIndoorRouting::AreaType::x)
16
17// ugly, but QML can't do enum classes and/or enums != 32 bit
18enum AreaType {
19 E(Unwalkable),
20 E(Stairs),
21 E(Elevator),
22 E(Escalator),
23 E(MovingWalkway),
24 E(TactilePaving),
25 E(StreetCrossing),
26 E(Ramp),
27 E(Room),
28 E(Walkable),
29};
30
31#undef E
32
33Q_ENUM_NS(AreaType)
34}
35
36namespace AreaFlag {
37Q_NAMESPACE
38QML_NAMED_ELEMENT(AreaFlag)
39
40#define E(x) x = qToUnderlying(KOSMIndoorRouting::AreaFlag::x)
41
42enum AreaFlag {
43 E(NoFlag),
44 E(Walkable),
45 E(Stairs),
46 E(Escalator),
47 E(Elevator),
48};
49
50#undef E
51
52Q_ENUM_NS(AreaFlag)
53
54}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.