KOSMIndoorMap

localization.h
1/*
2 SPDX-FileCopyrightText: 2023 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#ifndef KOSMINDOORMAP_LOCALIZATION_H
7#define KOSMINDOORMAP_LOCALIZATION_H
8
9class QByteArray;
10class QString;
11
12namespace KOSMIndoorMap {
13
14/** Translations of various OSM tag values. */
15namespace Localization
16{
17
18/** Control how unknown elements get translated. */
20 ReturnUnknownKey,
21 ReturnEmptyOnUnknownKey
22};
23
24/** Returns @c true if we can translate @p value. */
25bool hasAmenityTypeTranslation(const char *value);
26
27/** Translated name for an amenity tag value (after list splitting).
28 * This also covers values of similar/overlapping tags (office, tourism, leisure, historic, room, building, etc).
29 */
30QString amenityType(const char *value, Localization::TranslationOption opt = Localization::ReturnUnknownKey);
31
32/** Translated values of the cuisine tag (does list splitting). */
33QString cuisineTypes(const QByteArray &value, Localization::TranslationOption opt = Localization::ReturnUnknownKey);
34}
35
36}
37
38#endif // KOSMINDOORMAP_LOCALIZATION_H
QString cuisineTypes(const QByteArray &value, Localization::TranslationOption opt=Localization::ReturnUnknownKey)
Translated values of the cuisine tag (does list splitting).
bool hasAmenityTypeTranslation(const char *value)
Returns true if we can translate value.
QString amenityType(const char *value, Localization::TranslationOption opt=Localization::ReturnUnknownKey)
Translated name for an amenity tag value (after list splitting).
TranslationOption
Control how unknown elements get translated.
OSM-based multi-floor indoor maps for buildings.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Apr 27 2024 22:14:31 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.