TTzLocalizedId Class Reference

#include <mw/tzlocalizationdatatypes.h>

Link against: timezonelocalization.lib

class TTzLocalizedId
Public Member Functions
TTzLocalizedId(const TUint16, const TUint)
TUint ResourceId()
TUint16 TimeZoneId()

Detailed Description

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 TUint16aTzId,
const TUintaResourceId
)[explicit]

Constructor.

ParameterDescription
aTzIdThe time zone ID to store.
aResourceIdThe resource ID corresponding to aTzId.

Member Function Documentation

ResourceId ( )

TUint ResourceId()const [inline]

Returns the resource ID.

Returns: The resource ID.

TimeZoneId ( )

TUint16 TimeZoneId()const [inline]

Returns the time zone ID.

Returns: The time zone ID.