KContacts

translatedcountrylist.h
1 /*
2  SPDX-FileCopyrightText: 2018 Sune Vuorela <[email protected]>
3 
4  SPDX-License-Identifier: MIT
5 */
6 
7 #ifndef TRANSLATEDCOUNTRYLIST_H
8 #define TRANSLATEDCOUNTRYLIST_H
9 
10 #include <QString>
11 
12 #include <vector>
13 
14 class QIODevice;
15 
16 namespace TranslatedCountries
17 {
18 struct CountryNameMapping {
19  QString name;
20  QString isoCode;
21  QString language;
22 };
23 
24 using TranslationCountryMap = std::vector<CountryNameMapping>;
25 
26 /**
27  * \param directoryPath directory path to scan recursively for cldr xml files
28  * On Debian systems, /usr/share/unicode/cldr/common/main is a good value for this.
29  * \return map of translation name => country id
30  */
31 TranslationCountryMap parseFilesRecursive(const QString &directoryPath);
32 }
33 #endif
QString name(const QVariant &location)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Jun 18 2021 22:54:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.