CTzUserNames Class Reference

class CTzUserNames : public CBase

The CTzUserNames class is used to encapsulate the names for a user-defined time zone.

When creating an instance of this class the client can specify the following names:

  • Long standard time name, for example "Mountain Standard Time"

  • Short standard time name, for example "MST"

  • Long daylight saving time name, for example "Mountain Daylight Time"

  • Short daylight saving time name, for example "MDT"

  • City name, for example "Shiprock"

  • Region name, for example "America"

The client can also read these names.

Inherits from

Public Member Functions
~CTzUserNames()
IMPORT_C const TDesC &CityName()
IMPORT_C const TDesC &DaylightSaveName()
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C voidInternalizeL(RReadStream &)
IMPORT_C CTzUserNames *NewL(const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &)
IMPORT_C CTzUserNames *NewL(RReadStream &)
IMPORT_C CTzUserNames *NewLC(const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &)
IMPORT_C const TDesC &RegionName()
IMPORT_C const TDesC &ShortDaylightSaveName()
IMPORT_C const TDesC &ShortStandardName()
IMPORT_C TIntSizeOfObject()
IMPORT_C const TDesC &StandardName()
Private Member Functions
CTzUserNames()
voidConstructL(const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
HBufC *iCityName
HBufC *iDaylightName
HBufC *iRegionName
HBufC *iShortDaylightName
HBufC *iShortStandardName
HBufC *iStandardName

Constructor & Destructor Documentation

CTzUserNames()

CTzUserNames()[private]

~CTzUserNames()

IMPORT_C~CTzUserNames()

Member Functions Documentation

CityName()

IMPORT_C const TDesC &CityName()const

ConstructL(const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &)

voidConstructL(const TDesC &aStandardName,
const TDesC &aShortStandardName,
const TDesC &aDayLightSaveName,
const TDesC &aShortDayLightSaveName,
const TDesC &aCityName,
const TDesC &aRegionName
)[private]

Parameters

const TDesC & aStandardName
const TDesC & aShortStandardName
const TDesC & aDayLightSaveName
const TDesC & aShortDayLightSaveName
const TDesC & aCityName
const TDesC & aRegionName

DaylightSaveName()

IMPORT_C const TDesC &DaylightSaveName()const

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

NewL(const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &)

IMPORT_C CTzUserNames *NewL(const TDesC &aStandardName,
const TDesC &aShortStandardName,
const TDesC &aDaylightSaveName,
const TDesC &aShortDaylightSaveName,
const TDesC &aCityName,
const TDesC &aRegionName
)[static]

Parameters

const TDesC & aStandardName
const TDesC & aShortStandardName
const TDesC & aDaylightSaveName
const TDesC & aShortDaylightSaveName
const TDesC & aCityName
const TDesC & aRegionName

NewL(RReadStream &)

IMPORT_C CTzUserNames *NewL(RReadStream &aStream)[static]

Parameters

RReadStream & aStream

NewLC(const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &, const TDesC &)

IMPORT_C CTzUserNames *NewLC(const TDesC &aStandardName,
const TDesC &aShortStandardName,
const TDesC &aDayLightSaveName,
const TDesC &aShortDaylightSaveName,
const TDesC &aCityName,
const TDesC &aRegionName
)[static]

Parameters

const TDesC & aStandardName
const TDesC & aShortStandardName
const TDesC & aDayLightSaveName
const TDesC & aShortDaylightSaveName
const TDesC & aCityName
const TDesC & aRegionName

RegionName()

IMPORT_C const TDesC &RegionName()const

ShortDaylightSaveName()

IMPORT_C const TDesC &ShortDaylightSaveName()const

ShortStandardName()

IMPORT_C const TDesC &ShortStandardName()const

SizeOfObject()

IMPORT_C TIntSizeOfObject()const

StandardName()

IMPORT_C const TDesC &StandardName()const

Member Data Documentation

HBufC * iCityName

HBufC *iCityName[private]

HBufC * iDaylightName

HBufC *iDaylightName[private]

HBufC * iRegionName

HBufC *iRegionName[private]

HBufC * iShortDaylightName

HBufC *iShortDaylightName[private]

HBufC * iShortStandardName

HBufC *iShortStandardName[private]

HBufC * iStandardName

HBufC *iStandardName[private]