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
23using 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
29MBASE_PUBLIC QString GetISO3166EnglishCountryName(const QString &iso3166Code);
31MBASE_PUBLIC QString GetISO3166CountryName(const QString &iso3166Code);
32
33#endif // ISO_3166_1_H
QMap< QString, QString > ISO3166ToNameMap
Definition: iso3166.h:23
MBASE_PUBLIC QString GetISO3166CountryName(const QString &iso3166Code)
Definition: iso3166.cpp:368
MBASE_PUBLIC ISO3166ToNameMap GetISO3166CountryMap(void)
Definition: iso3166.cpp:360
MBASE_PUBLIC ISO3166ToNameMap GetISO3166EnglishCountryMap(void)
Returns a map of ISO-3166 country codes mapped to the country name in English.
Definition: iso3166.cpp:344
MBASE_PUBLIC QString GetISO3166EnglishCountryName(const QString &iso3166Code)
Definition: iso3166.cpp:352
#define MBASE_PUBLIC
Definition: mythbaseexp.h:15