Home · All Classes · Main Classes · Deprecated |
Public Member Functions | |
MCity () | |
MCity (const MCity &) | |
virtual | ~MCity () |
MCity & | operator= (const MCity &) |
QString | key () const |
QString | englishName () const |
QString | localName () const |
qreal | latitude () const |
qreal | longitude () const |
QString | timeZone () const |
qint32 | timeZoneRawOffset () const |
qint32 | timeZoneDstOffset (QDateTime dateTime=QDateTime::currentDateTime()) const |
qint32 | timeZoneTotalOffset (QDateTime dateTime=QDateTime::currentDateTime()) const |
MCountry | country () const |
void | setKey (const QString &val) |
void | setEnglishName (const QString &val) |
void | setLocalName (const QString &val) |
void | setLatitude (qreal val) |
void | setLongitude (qreal val) |
void | setTimeZone (const QString &val) |
void | setCountry (const MCountry &val) |
MCity::MCity | ( | ) |
MCity::MCity | ( | const MCity & | other | ) |
MCity::~MCity | ( | ) | [virtual] |
MCountry MCity::country | ( | ) | const |
returns the country of the city
QString MCity::englishName | ( | ) | const |
returns the english name for the city
Example: might return something like “Helsinki”.
QString MCity::key | ( | ) | const |
returns the unique key for the city
Example: something like “qtn_clk_city_fin_hki” might be returned for Helsinki. This key can be used in qtTrId() to get the translation for “Helsinki”:
qtTrId("qtn_clk_city_fin_hki");
qreal MCity::latitude | ( | ) | const |
returns the latitude for the city
QString MCity::localName | ( | ) | const |
returns the local name for the city
Example: For a city with the English name “Rome” this function might return “Roma”.
qreal MCity::longitude | ( | ) | const |
returns the longitude for the city
void MCity::setCountry | ( | const MCountry & | val | ) |
void MCity::setEnglishName | ( | const QString & | val | ) |
void MCity::setKey | ( | const QString & | val | ) |
void MCity::setLatitude | ( | qreal | val | ) |
void MCity::setLocalName | ( | const QString & | val | ) |
void MCity::setLongitude | ( | qreal | val | ) |
void MCity::setTimeZone | ( | const QString & | val | ) |
QString MCity::timeZone | ( | ) | const |
returns the timezone string for the city
Example: returns something like “Europe/Helsinki”
qint32 MCity::timeZoneDstOffset | ( | QDateTime | dateTime = QDateTime::currentDateTime() |
) | const |
returns the daylight savings time offset of the timezone
dateTime | the date and time to calculate the offset for |
returns the daylight savings time offset for the date and time given in milliseconds.
qint32 MCity::timeZoneRawOffset | ( | ) | const |
returns the raw offset of the timezone
returns the raw offset of the time zone in milliseconds. The raw offset is the offset without considering daylight savings time.
qint32 MCity::timeZoneTotalOffset | ( | QDateTime | dateTime = QDateTime::currentDateTime() |
) | const |
returns the total offset of the timezone
dateTime | the date and time to calculate the offset for |
returns the total offset, i.e. the raw offset plus the daylight savings time offset for the date and time given in milliseconds.
Copyright © 2010 Nokia Corporation | MeeGo Touch |