MythTV  master
iso3166.h
Go to the documentation of this file.
1 
2 // -*- Mode: c++ -*-
3 #ifndef _ISO_3166_1_H_
4 #define _ISO_3166_1_H_
5 
6 #include <QString>
7 #include <QMap>
8 
9 #include "mythbaseexp.h"
10 
23 using ISO3166ToNameMap = QMap<QString, QString>;
24 
25 // WARNING: These functions are not thread-safe and sould only be
26 // called from the main UI thread.
27 
29 MBASE_PUBLIC QString GetISO3166EnglishCountryName(const QString &iso3166Code);
31 MBASE_PUBLIC QString GetISO3166CountryName(const QString &iso3166Code);
32 
33 #endif // _ISO_3166_1_H_
MBASE_PUBLIC QString GetISO3166EnglishCountryName(const QString &iso3166Code)
Definition: iso3166.cpp:352
#define MBASE_PUBLIC
Definition: mythbaseexp.h:15
MBASE_PUBLIC QString GetISO3166CountryName(const QString &iso3166Code)
Definition: iso3166.cpp:368
MBASE_PUBLIC ISO3166ToNameMap GetISO3166EnglishCountryMap(void)
Returns a map of ISO-3166 country codes mapped to the country name in English.
Definition: iso3166.cpp:344
QMap< QString, QString > ISO3166ToNameMap
Definition: iso3166.h:23
MBASE_PUBLIC ISO3166ToNameMap GetISO3166CountryMap(void)
Definition: iso3166.cpp:360