Home · All Classes · Main Classes · Deprecated |
Public Member Functions | |
MLocationDatabase () | |
virtual | ~MLocationDatabase () |
QList< MCountry > | countries () |
QList< MCity > | cities () |
QList< MCity > | citiesInCountry (const QString &countryKey) |
QList< MCity > | citiesInTimeZone (const QString &timeZoneId) |
QList< MCity > | matchingCities (const QString &searchString) |
MCity | nearestCity (qreal latitude, qreal longitude) |
ML10N::MLocationDatabase::MLocationDatabase | ( | ) |
ML10N::MLocationDatabase::~MLocationDatabase | ( | ) | [virtual] |
returns a list with all cities in a country
returns a list with all cities in a time zone
timeZoneId | the Olson id of the timezone |
Time zone ids are “canonicalized” when comparing, i.e. citiesInTimeZone("US/Pacific") and citiesInTimeZone("America/Los_Angeles") will return the same list.
I.e. this lists all cities which have the same canonical timezone id as the id given as parameter.
It tries to put the “most important” city for this timezone id first in the list of cities returned. Currently it does this by putting a city first if it happens to have the same name as the part of the canonical timezone id after the last “/”.
For invalid time zone ids like "Oz/Emerald_City", an empty list is returned.
returns a list with all cities that contain the given searchString
MCity ML10N::MLocationDatabase::nearestCity | ( | qreal | latitude, | |
qreal | longitude | |||
) |
returns the city with the nearest position to the given location.
Copyright © 2010 Nokia Corporation | MeeGo Touch |