|
IP2CCountry | countryInfo (const QString &countryCode) |
|
IP2CCountry | countryInfoForAddress (const QHostAddress &ipaddress) |
|
IP2CCountry | countryInfoForIPv4 (unsigned int ipaddress) |
|
IP2CCountry | countryInfoForServer (const Server &server) |
|
const QPixmap & | flag (const QString &countryCode) |
|
bool | hasData () const |
|
bool | isDataAccessLocked () const |
|
const QMap< QString, QString > & | licenceNotice () const |
|
int | numKnownEntries () const |
|
void | setDataAccessLockEnabled (bool b) |
|
void | setLicence (const QMap< QString, QString > &licences) |
|
void | setRangesDatabase (const QList< IP2CRange > &sortedRanges) |
| Sets the IP range database to the list specified.
|
|
void | setUrl (const QString &url) |
|
const QString & | urlDatabase () const |
|
IP to Country database handler.
IP2C class provides an interface for translating IP addresses into country names they are in. Additional methods allow to retrieve country's flag picture for given IP.
- See Also
- IP2CParser
Definition at line 48 of file ip2c.h.