Home · All Classes · Main Classes · Deprecated
Public Member Functions

ML10N::MCity Class Reference

List of all members.

Public Member Functions

 MCity ()
 MCity (const MCity &)
virtual ~MCity ()
MCityoperator= (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)

Constructor & Destructor Documentation

ML10N::MCity::MCity (  ) 
ML10N::MCity::MCity ( const MCity other  ) 
ML10N::MCity::~MCity (  )  [virtual]

Member Function Documentation

MCountry ML10N::MCity::country (  )  const

returns the country of the city

QString ML10N::MCity::englishName (  )  const

returns the english name for the city

Example: might return something like “Helsinki”.

QString ML10N::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 ML10N::MCity::latitude (  )  const

returns the latitude for the city

QString ML10N::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 ML10N::MCity::longitude (  )  const

returns the longitude for the city

MCity & ML10N::MCity::operator= ( const MCity other  ) 
void ML10N::MCity::setCountry ( const MCountry val  ) 
void ML10N::MCity::setEnglishName ( const QString val  ) 
void ML10N::MCity::setKey ( const QString val  ) 
void ML10N::MCity::setLatitude ( qreal  val  ) 
void ML10N::MCity::setLocalName ( const QString val  ) 
void ML10N::MCity::setLongitude ( qreal  val  ) 
void ML10N::MCity::setTimeZone ( const QString val  ) 
QString ML10N::MCity::timeZone (  )  const

returns the timezone string for the city

Example: returns something like “Europe/Helsinki”

qint32 ML10N::MCity::timeZoneDstOffset ( QDateTime  dateTime = QDateTime::currentDateTime()  )  const

returns the daylight savings time offset of the timezone

Parameters:
dateTime the date and time to calculate the offset for

returns the daylight savings time offset for the date and time given in milliseconds.

See also:
timeZoneRawOffset() const
timeZoneTotalOffset(QDateTime dateTime = QDateTime::currentDateTime()) const
qint32 ML10N::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.

See also:
timeZoneTotalOffset(QDateTime dateTime = QDateTime::currentDateTime()) const
timeZoneDstOffset(QDateTime dateTime = QDateTime::currentDateTime()) const
qint32 ML10N::MCity::timeZoneTotalOffset ( QDateTime  dateTime = QDateTime::currentDateTime()  )  const

returns the total offset of the timezone

Parameters:
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.

See also:
timeZoneRawOffset() const
timeZoneDstOffset(QDateTime dateTime = QDateTime::currentDateTime()) const

Copyright © 2010 Nokia Corporation
MeeGo Touch