KOSMIndoorMap

kosmindoormapquickplugin.cpp
1 /*
2  SPDX-FileCopyrightText: 2020 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "kosmindoormapquickplugin.h"
8 #include "floorlevelchangemodel.h"
9 #include "mapitem.h"
10 #include "osmaddress.h"
11 #include "osmelement.h"
12 #include "osmelementinformationmodel.h"
13 
14 #include <KOSMIndoorMap/EquipmentModel>
15 #include <KOSMIndoorMap/GateModel>
16 #include <KOSMIndoorMap/MapData>
17 #include <KOSMIndoorMap/PlatformModel>
18 
19 using namespace KOSMIndoorMap;
20 
21 void KOSMIndoorMapQuickPlugin::registerTypes(const char *uri)
22 {
23  Q_UNUSED(uri);
24  qRegisterMetaType<OSMAddress>();
25  qRegisterMetaType<OSMElement>();
26  qRegisterMetaType<Platform::Mode>();
27 
28  qmlRegisterUncreatableType<MapData>("org.kde.kosmindoormap", 1, 0, "MapData", {});
29  qmlRegisterUncreatableType<OSMAddress>("org.kde.kosmindoormap", 1, 0, "OSMAddress", {});
30  qmlRegisterUncreatableType<OSMElement>("org.kde.kosmindoormap", 1, 0, "OSMElement", {});
31  qmlRegisterUncreatableType<Platform>("org.kde.kosmindoormap", 1, 0, "Platform", {});
32 
33  qmlRegisterType<FloorLevelChangeModel>("org.kde.kosmindoormap", 1, 0, "FloorLevelChangeModel");
34  qmlRegisterType<MapItem>("org.kde.kosmindoormap", 1, 0, "MapItemImpl");
35  qmlRegisterType<OSMElementInformationModel>("org.kde.kosmindoormap", 1, 0, "OSMElementInformationModel");
36  qmlRegisterType<EquipmentModel>("org.kde.kosmindoormap", 1, 0, "EquipmentModel");
37  qmlRegisterType<GateModel>("org.kde.kosmindoormap", 1, 0, "GateModel");
38  qmlRegisterType<PlatformModel>("org.kde.kosmindoormap", 1, 0, "PlatformModel");
39 }
OSM-based multi-floor indoor maps for buildings.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 23:04:00 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.