Location:
VPROP.H
Link against: versit.lib
class CParserTimePropertyValue : public CParserPropertyValue;
Abstract base class for all of the date/time property value classes.
Provides date/time conversion functions between machine-local and universal time.
The date/time property value classes are CParserPropertyValueAlarm
, CParserPropertyValueDate
, CParserPropertyValueDateTime
, CParserPropertyValueMultiDateTime
, CParserPropertyValueDaylight
and CParserPropertyValueRecurrence
.
CBase
- Base class for all classes to be instantiated on the heap
CParserPropertyValue
- Abstract base class for all property values
CParserTimePropertyValue
- Abstract base class for all of the date/time property value classes
Defined in CParserTimePropertyValue
:
CParserTimePropertyValue()
, ConvertAllDateTimesToUTCL()
, ConvertAllUTCDateTimesToMachineLocalL()
, ConvertDateTime()
, EncodeTimePeriodL()
, EncodeVersitDateTimeL()
, SupportsInterface()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Inherited from CParserPropertyValue
:
Append()
,
EncodeL()
,
ExternalizeL()
,
FoldAndWriteValueToStreamL()
,
FoldEncodeAndWriteValueToStreamL()
,
IsAsciiCharacterSetSufficient()
,
PlugIn()
,
SetPlugIn()
,
Uid()
protected: IMPORT_C CParserTimePropertyValue(const TUid &aPropertyValueUid);
|
virtual IMPORT_C void ConvertAllDateTimesToUTCL(const TTimeIntervalSeconds &aIncrement, const CVersitDaylight *aDaylight)=0;
This is implemented, where applicable, to convert date/time values into universal time.
The date/time is checked against the daylight saving information provided in aDaylight. If it falls inside the daylight saving period then the daylight saving offset is subtracted from the time to convert it to universal time. Otherwise aIncrement is added to the date/time of the alarm to convert it to universal time.
Note that the daylight savings offset will adjust the time both for the daylight saving and for the time zone.
The function has no effect if it date/times are already stored in universal time.
If aDaylight is a NULL pointer then aIncrement is used.
|
virtual IMPORT_C void ConvertAllUTCDateTimesToMachineLocalL(const TTimeIntervalSeconds &aIncrement)=0;
Pure virtual function which is implemented, where applicable, to convert the date/time property value into machine-local time.
This process involves adjusting the date/time value by the offset in aIncrement.
The function has no effect if the value is already stored as machine-local time.
The universal date/times are assumed to have been corrected for any daylight saving rule in effect.
|
virtual IMPORT_C TBool SupportsInterface(const TUid &aInterfaceUid) const;
Tests whether the property value supports the specified interface.
It overrides the base class function, which always returns EFalse.
This function is used to test whether or not a property value is time-related (i.e. derived from CParserTimePropertyValue). It returns ETrue if aInterfaceUid is KVersitTimePropertyUid.
|
|
protected: IMPORT_C void ConvertDateTime(TDateTime *aDateTime, const TTimeIntervalSeconds &aIncrement, const CVersitDaylight
*aDaylight);
|
protected: IMPORT_C void EncodeVersitDateTimeL(TDes8 &aBuf, const TVersitDateTime &aDateTime, TBool aEncodeTime=ETrue) const;
|