#include <mw/tzlocalizationdatatypes.h>
| class CTzLocalizedCity : public CBase |
| Public Member Functions | |
|---|---|
| ~CTzLocalizedCity() | |
| TInt | CityIndex() |
| IMPORT_C TUint8 | GroupId() |
| IMPORT_C TPtrC | Name() |
| CTzLocalizedCity * | NewL(const TDesC &, const TTzLocalizedId &, const TUint8) |
| CTzLocalizedCity * | NewLC(const TDesC &, const TTzLocalizedId &, const TUint8) |
| void | SetCityIndex(TInt) |
| void | SetUTCOffset(TInt) |
| IMPORT_C TUint16 | TimeZoneId() |
| TTzLocalizedId | TzLocalizedId() |
| TInt | UTCOffset() |
Encapsulates a localized (exemplar) city.
| IMPORT_C TUint8 | GroupId | ( | ) | const |
Returns the ID of the group to which the city belongs.
Returns: The ID of the group to which the city belongs.
| CTzLocalizedCity * | NewL | ( | const TDesC & | aName, |
| const TTzLocalizedId & | aTzLocalizedId, | |||
| const TUint8 | aGroupId = 0 | |||
| ) | [static] | |||
Two phase Symbian constructor.
| Parameter | Description |
|---|---|
| aName | The name of the city. |
| aTzLocalizedId | Contains the time zone ID and resource ID for this city. |
| aGroupId | The group that this city belongs to. This defaults to zero. |
Returns: A pointer to a new instance of a localized city object.
| CTzLocalizedCity * | NewLC | ( | const TDesC & | aName, |
| const TTzLocalizedId & | aTzLocalizedId, | |||
| const TUint8 | aGroupId = 0 | |||
| ) | [static] | |||
Two phase Symbian constructor.
| Parameter | Description |
|---|---|
| aName | The name of the city. |
| aTzLocalizedId | Contains the time zone ID and resource ID for this city. |
| aGroupId | The group that this city belongs to. This defaults to zero. |
Returns: A pointer to a new instance of a localized city object that is left on the cleanup stack.
| void | SetUTCOffset | ( | TInt | aUTCoffset | ) |
Sets the UTC offset for this city (in minutes).
| Parameter | Description |
|---|---|
| aUTCoffset | UTC offset in minutes for this time zone. |
| TTzLocalizedId | TzLocalizedId | ( | ) | const |
Returns the TTzLocalizedId of this city. Cannot be inline, as it is for internal use only.
Returns: The TTzLocalizedId of this city.
| TInt | UTCOffset | ( | ) | const |
Returns the UTC offset for this city. This is for internal sorting use only. A more accurate offset can be obtained from Tz by using the time zone id stored in iTzLocalizedId.
Returns: TInt representing UTC offset (in minutes).