00001 00002 // -*- Mode: c++ -*- 00003 #ifndef _ISO_3166_1_H_ 00004 #define _ISO_3166_1_H_ 00005 00006 #include <vector> 00007 using namespace std; 00008 00009 #include <QString> 00010 #include <QStringList> 00011 #include <QMap> 00012 00013 #include "mythbaseexp.h" 00014 00027 typedef QMap<QString, QString> ISO3166ToNameMap; 00028 00029 // WARNING: These functions are not thread-safe and sould only be 00030 // called from the main UI thread. 00031 00032 MBASE_PUBLIC ISO3166ToNameMap GetISO3166EnglishCountryMap(void); 00033 MBASE_PUBLIC QString GetISO3166EnglishCountryName(const QString &iso3166Code); 00034 MBASE_PUBLIC ISO3166ToNameMap GetISO3166CountryMap(void); 00035 MBASE_PUBLIC QString GetISO3166CountryName(const QString &iso3166Code); 00036 00037 #endif // _ISO_3166_1_H_