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; } }; }

Constructor & Destructor Documentation

TTzLocalizedId(const TUint16, const TUint)

TTzLocalizedId ( const TUint16 aTzId,
const TUint aResourceId
) [explicit]

Constructor.

Parameters

const TUint16 aTzId The time zone ID to store.
const TUint aResourceId The 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]