Vidalia 0.2.12
|
#include <CountryInfo.h>
Public Member Functions | |
CountryInfo (QObject *parent=0) | |
Static Public Member Functions | |
static QString | countryName (const QString &countryCode) |
static QPair< float, float > | countryLocation (const QString &countryCode) |
Definition at line 25 of file CountryInfo.h.
CountryInfo::CountryInfo | ( | QObject * | parent = 0 | ) |
Default constructor.
Definition at line 28 of file CountryInfo.cpp.
QPair< float, float > CountryInfo::countryLocation | ( | const QString & | countryCode | ) | [static] |
Definition at line 246 of file CountryInfo.cpp.
References COUNTRY_LOCATION_FILE, and vInfo.
Referenced by GeoIpResolver::resolveUsingLocalDatabase(), and GeoIpResolver::resolveUsingTor().
QString CountryInfo::countryName | ( | const QString & | countryCode | ) | [static] |
Returns the name of the country represented by countryCode, where countryCode is a 2-letter ISO 3166-1 alpha-2 two-letter country code. The name will be returned translated to the current locale if an appropriate QTranslator is currently installed.
Definition at line 34 of file CountryInfo.cpp.
Referenced by GeoIpResolver::resolveUsingLocalDatabase(), GeoIpResolver::resolveUsingTor(), and BridgeUsageDialog::update().