CTzRules Class Reference

class CTzRules : public CBase

Encapsulates a collection of time zone rules, and includes the period covered by the rules and the standard time offset at the start of that period.

Inherits from

Public Member Functions
~CTzRules()
IMPORT_C voidAddRuleL(TTzRule)
IMPORT_C CTzRules *CloneL()
IMPORT_C TIntConvertTime(CVTzActualisedRules &, TTime &, TTzTimeReference)
IMPORT_C voidConvertToLocalL(TTime &)
IMPORT_C voidConvertToUtcL(TTime &)
IMPORT_C voidCopyL(const CTzRules &)
IMPORT_C TIntCount()
IMPORT_C TIntEndYear()
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C voidGetActualisedRulesL(CVTzActualisedRules &)
IMPORT_C TIntGetOffsetL(const TTime &, TTzTimeReference)
IMPORT_C TIntInitialStdTimeOffset()
IMPORT_C voidInternalizeL(RReadStream &)
IMPORT_C TBoolIsEqualTo(const CTzRules &)
IMPORT_C CTzRules *NewL()
IMPORT_C CTzRules *NewL(TInt, TInt)
IMPORT_C CTzRules *NewL(RReadStream &)
IMPORT_C voidRemoveRule(TInt)
IMPORT_C TBoolRulesApply(const TTime &)
IMPORT_C voidSetEndYear(TInt)
IMPORT_C voidSetInitialStdTimeOffset(TInt)
IMPORT_C voidSetStartYear(TInt)
IMPORT_C TIntSizeOfObject()
IMPORT_C TIntStartYear()
IMPORT_C TTzRule &operator[](TInt)
Private Member Functions
CTzRules()
CTzRules(TInt, TInt)
voidAddActualisedRulesL(CVTzActualisedRules &, TInt)
TInt CompareTimesWithRef(TTime, TTzTimeReference, TTime, TTzTimeReference, TInt, TInt, TTimeIntervalMinutes *)
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
CVTzActualisedRules *iActualisedRulesCache
TInt16 iEndYear
TInt iInitialStdTimeOffset
RArray< TTzRule >iRules
TInt16 iStartYear

Constructor & Destructor Documentation

CTzRules()

CTzRules()[private]

CTzRules(TInt, TInt)

CTzRules(TIntaStartYear,
TIntaEndYear
)[private]

Parameters

TInt aStartYear
TInt aEndYear

~CTzRules()

IMPORT_C~CTzRules()

Member Functions Documentation

AddActualisedRulesL(CVTzActualisedRules &, TInt)

voidAddActualisedRulesL(CVTzActualisedRules &aActRules,
TIntaYear
)const [private]

Parameters

CVTzActualisedRules & aActRules
TInt aYear

AddRuleL(TTzRule)

IMPORT_C voidAddRuleL(TTzRuleaRule)

Parameters

TTzRule aRule

CloneL()

IMPORT_C CTzRules *CloneL()const

CompareTimesWithRef(TTime, TTzTimeReference, TTime, TTzTimeReference, TInt, TInt, TTimeIntervalMinutes *)

TInt CompareTimesWithRef(TTimeaTimeA,
TTzTimeReferenceaTimeARef,
TTimeaTimeB,
TTzTimeReferenceaTimeBRef,
TIntaStdOffset,
TIntaWallOffset,
TTimeIntervalMinutes *aMinutesDifference
)const [private]

Parameters

TTime aTimeA
TTzTimeReference aTimeARef
TTime aTimeB
TTzTimeReference aTimeBRef
TInt aStdOffset
TInt aWallOffset
TTimeIntervalMinutes * aMinutesDifference

ConvertTime(CVTzActualisedRules &, TTime &, TTzTimeReference)

IMPORT_C TIntConvertTime(CVTzActualisedRules &aRules,
TTime &aTime,
TTzTimeReferenceaTimerRef
)const

Parameters

CVTzActualisedRules & aRules
TTime & aTime
TTzTimeReference aTimerRef

ConvertToLocalL(TTime &)

IMPORT_C voidConvertToLocalL(TTime &aUtcTime)const

Parameters

TTime & aUtcTime

ConvertToUtcL(TTime &)

IMPORT_C voidConvertToUtcL(TTime &aLocalTime)const

Parameters

TTime & aLocalTime

CopyL(const CTzRules &)

IMPORT_C voidCopyL(const CTzRules &aTzRule)

Parameters

const CTzRules & aTzRule

Count()

IMPORT_C TIntCount()const

EndYear()

IMPORT_C TIntEndYear()const

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

GetActualisedRulesL(CVTzActualisedRules &)

IMPORT_C voidGetActualisedRulesL(CVTzActualisedRules &aActRules)const

Parameters

CVTzActualisedRules & aActRules

GetOffsetL(const TTime &, TTzTimeReference)

IMPORT_C TIntGetOffsetL(const TTime &aTime,
TTzTimeReferenceaTimeRef
)const

Parameters

const TTime & aTime
TTzTimeReference aTimeRef

InitialStdTimeOffset()

IMPORT_C TIntInitialStdTimeOffset()const

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

IsEqualTo(const CTzRules &)

IMPORT_C TBoolIsEqualTo(const CTzRules &aRules)const

Parameters

const CTzRules & aRules

NewL()

IMPORT_C CTzRules *NewL()[static]

NewL(TInt, TInt)

IMPORT_C CTzRules *NewL(TIntaStartYear,
TIntaEndYear
)[static]

Parameters

TInt aStartYear
TInt aEndYear

NewL(RReadStream &)

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

Parameters

RReadStream & aStream

RemoveRule(TInt)

IMPORT_C voidRemoveRule(TIntaIndex)

Parameters

TInt aIndex

RulesApply(const TTime &)

IMPORT_C TBoolRulesApply(const TTime &aTime)const

Parameters

const TTime & aTime

SetEndYear(TInt)

IMPORT_C voidSetEndYear(TIntaYear)

Parameters

TInt aYear

SetInitialStdTimeOffset(TInt)

IMPORT_C voidSetInitialStdTimeOffset(TIntaOffset)

Parameters

TInt aOffset

SetStartYear(TInt)

IMPORT_C voidSetStartYear(TIntaYear)

Parameters

TInt aYear

SizeOfObject()

IMPORT_C TIntSizeOfObject()const

StartYear()

IMPORT_C TIntStartYear()const

operator[](TInt)

IMPORT_C TTzRule &operator[](TIntaIndex)

Parameters

TInt aIndex

Member Data Documentation

CVTzActualisedRules * iActualisedRulesCache

CVTzActualisedRules *iActualisedRulesCache[private]

TInt16 iEndYear

TInt16 iEndYear[private]

TInt iInitialStdTimeOffset

TInt iInitialStdTimeOffset[private]

RArray< TTzRule > iRules

RArray< TTzRule >iRules[private]

TInt16 iStartYear

TInt16 iStartYear[private]