CTzId Class Reference

class CTzId : public CBase

Encapsulates a time zone identifier.

The identifier may be either a name or a number.

Since
9.1

Inherits from

Constructor & Destructor Documentation

CTzId()

CTzId()[private]

CTzId(TUint)

CTzId(TUintaNumericId)[private]

Parameters

TUint aNumericId

~CTzId()

IMPORT_C~CTzId()

Destructor.

Member Functions Documentation

CloneL()

IMPORT_C CTzId *CloneL()const

This should not be used. For internal use only.

Replicates a CTzId.

leave
KErrNoMemory or some other system error code.

ConstructL()

voidConstructL()[private]

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

This should not be used. For internal use only.

Time zone ID data externaliser.

Parameters

RWriteStream & aStreamA stream that will contain the serialised time zone ID.

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

This should not be used. For internal use only.

Serialised CTzId data internaliser.

Parameters

RReadStream & aStreama stream containing the serialised time zone Id

IsUserTzId()

IMPORT_C TBoolIsUserTzId()const

Determines if this time zone identifier has a numeric identifier value that belongs to the range of values used to identify user-defined time zones.

IsUserTzId(TUint)

IMPORT_C TBoolIsUserTzId(TUintaTzId)[static]

Determines if the given numeric time zone identifier value belongs to the range of values used to identify user-defined time zones.

Parameters

TUint aTzIdNumeric time zone identifier value.

NewL(TUint)

IMPORT_C CTzId *NewL(TUintaNumericId)[static]

Time zone ID factory method.

panic
TzServer 8 aNumericId must not be zero.

Parameters

TUint aNumericIdA numeric reference ID, generated by the time zone compiler.

NewL(const TDesC8 &)

IMPORT_C CTzId *NewL(const TDesC8 &aNameIdentity)[static]

Time zone ID factory method.

Parameters

const TDesC8 & aNameIdentityA name recognised by the time zone database.

NewL(RReadStream &)

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

This should not be used. For internal use only.

Time zone ID factory method.

leave
KErrNoMemory or some other system error code

Parameters

RReadStream & aStreama stream containing the serialised time zone Id

SetId(TUint)

IMPORT_C voidSetId(TUintaNumericId)

This should not be used. For internal use only.

Sets the numeric time zone ID.

Parameters

TUint aNumericIdThe new numeric ID, generated by the time zone compiler.

SetIdL(const TDesC8 &)

IMPORT_C voidSetIdL(const TDesC8 &aNameIdentity)

This should not be used. For internal use only.

Sets the the time zone's name.

Parameters

const TDesC8 & aNameIdentitystring TZID as used in the Olson's TZ Database

SetIdL(TUint, const TDesC8 &)

voidSetIdL(TUintaNumRefId,
const TDesC8 &aZoneIdentity
)

Parameters

TUint aNumRefId
const TDesC8 & aZoneIdentity

TimeZoneNameID()

IMPORT_C const TDesC8 &TimeZoneNameID()const

Retrieves the time zone's name.

This can be used after calling RTz::GetTimeZoneIdL().

TimeZoneNumericID()

IMPORT_C TUintTimeZoneNumericID()const

Retrieves the time zone's numeric ID.

This can be used after calling RTz::GetTimeZoneIdL().

operator!=(const CTzId &)

TBool operator!=(const CTzId &aTZId)const [inline]

Inequality operator.

Parameters

const CTzId & aTZIdThe time zone ID to compare with this one.

operator==(const CTzId &)

IMPORT_C TBooloperator==(const CTzId &aTZId)const

Equality operator.

Parameters

const CTzId & aTZIdThe ID of another time zone.

Member Data Documentation

TUint32 iReferenceId

TUint32 iReferenceId[private]

HBufC8 * iZoneId

HBufC8 *iZoneId[private]