KOSMIndoorMap

osmelement.h
1 /*
2  SPDX-FileCopyrightText: 2020 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef KOSMINDOORMAP_OSMELEMENT_H
8 #define KOSMINDOORMAP_OSMELEMENT_H
9 
10 #include <osm/element.h>
11 
12 #include <QMetaType>
13 #include <QUrl>
14 
15 namespace KOSMIndoorMap {
16 
17 /** QML wrapper around an OSM element. */
19 {
20  Q_GADGET
21  Q_PROPERTY(bool isNull READ isNull)
22  Q_PROPERTY(QString name READ name)
23 public:
24  OSMElement();
25  explicit OSMElement(OSM::Element e);
26  ~OSMElement();
27 
28  bool isNull() const;
29  QString name() const;
30 
31  Q_INVOKABLE QString tagValue(const QString &key) const;
32 
33  // @internal
34  OSM::Element element() const;
35 
36 private:
37  OSM::Element m_element;
38 };
39 
40 }
41 
42 Q_DECLARE_METATYPE(KOSMIndoorMap::OSMElement)
43 
44 #endif // KOSMINDOORMAP_OSMELEMENT_H
OSM-based multi-floor indoor maps for buildings.
QML wrapper around an OSM element.
Definition: osmelement.h:18
A reference to any of OSM::Node/OSMWay/OSMRelation.
Definition: element.h:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 16 2021 23:05:32 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.