TTzLocalizedId Class Reference

class TTzLocalizedId

The resource structure LOCALIZED_TIMEZONE (defined in TimeZoneLocalization.rh) is used to represent a time zone item in a resource file. One of the members of this structure is WORD time_zone_id which stores the id of the time zone.

This class stores a time zone id (iTzId) and its associated resource id (iResourceId). This facilitates fast finding of resources in the resource file. For internal use only.

For instance for a time zone defined as follow in the resource file, iTzId would be 2728 and iResourceId would be r_tz_europe_tirane (more precisely the resource id assigned to r_tz_europe_tirane by the resource compiler).

RESOURCE LOCALIZED_TIMEZONE r_tz_europe_tirane { time_zone_id = 2728; standard_name = 2728_standard_name; daylight_name = 2728_daylight_name; short_standard_name = 2728_short_standard_name; short_daylight_name = 2728_short_daylight_name; cities = { TIMEZONE_CITY { city_group_id = 5; city_name = 2728_tirane_name; } }; }

Public Member Functions
TTzLocalizedId(const TUint16, const TUint)
TUint ResourceId()
TUint16 TimeZoneId()
Private Attributes
TUint iResourceId
TUint16 iTzId

Constructor & Destructor Documentation

TTzLocalizedId(const TUint16, const TUint)

TTzLocalizedId(const TUint16aTzId,
const TUintaResourceId
)[explicit]

Constructor.

Parameters

const TUint16 aTzIdThe time zone ID to store.
const TUint aResourceIdThe resource ID corresponding to aTzId.

Member Functions Documentation

ResourceId()

TUint ResourceId()const [inline]

Returns the resource ID.

TimeZoneId()

TUint16 TimeZoneId()const [inline]

Returns the time zone ID.

Member Data Documentation

TUint iResourceId

TUint iResourceId[private]

TUint16 iTzId

TUint16 iTzId[private]