CParserPropertyValueDaylight Class Reference

class CParserPropertyValueDaylight : public CParserTimePropertyValue

A property value parser which contains the daylight savings rule for a vCalendar.

The property value is stored using an instance of the CVersitDaylight class.

The UID for a daylight savings rule property value is KVersitPropertyDaylightUid.

Inherits from

Public Member Functions
CParserPropertyValueDaylight ( CVersitDaylight *)
~CParserPropertyValueDaylight ()
IMPORT_C void ConvertAllDateTimesToUTCL (const TTimeIntervalSeconds &, const CVersitDaylight *)
IMPORT_C void ConvertAllUTCDateTimesToMachineLocalL (const TTimeIntervalSeconds &)
IMPORT_C void ExternalizeL ( RWriteStream &, const Versit::TEncodingAndCharset &, TInt )
CVersitDaylight * Value ()
Inherited Functions
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)
CParserPropertyValue::Append(TDes16 &,TDesC8 &)
CParserPropertyValue::CParserPropertyValue(const TUid &)
CParserPropertyValue::EncodeL(CBufBase *,const TDesC8 &,const TUid &)const
CParserPropertyValue::FoldAndWriteValueToStreamL(RWriteStream &,const TDesC &,const Versit::TEncodingAndCharset &,TInt &)const
CParserPropertyValue::FoldEncodeAndWriteValueToStreamL(RWriteStream &,const CDesCArray *,const Versit::TEncodingAndCharset &,TInt &)const
CParserPropertyValue::FoldEncodeAndWriteValueToStreamL(RWriteStream &,const TDesC &,const Versit::TEncodingAndCharset &,TInt &)const
CParserPropertyValue::SetPlugIn(MVersitPlugIn *)
CParserTimePropertyValue::CParserTimePropertyValue(const TUid &)
CParserTimePropertyValue::ConvertDateTime(TDateTime &,const TTimeIntervalSeconds &,const CVersitDaylight *,TBool)
CParserTimePropertyValue::ConvertDateTime(TDateTime *,const TTimeIntervalSeconds &,const CVersitDaylight *)
CParserTimePropertyValue::EncodeTimePeriodL(TDes8 &,const TTime &)const
CParserTimePropertyValue::EncodeVersitDateTimeL(TDes8 &,const TVersitDateTime &,TBool)const
CParserTimePropertyValue::SupportsInterface(const TUid &)const
Private Attributes
CVersitDaylight * iValue

Constructor & Destructor Documentation

CParserPropertyValueDaylight(CVersitDaylight *)

IMPORT_C CParserPropertyValueDaylight ( CVersitDaylight * aValue )

Constructs a new CParserPropertyValueDaylight .

Sets the property value's UID to KVersitPropertyDaylightUid.


CVersitDaylight * aValue Pointer to the daylight saving specification. The property value takes ownership of the pointer.


IMPORT_C ~CParserPropertyValueDaylight ( )

Frees all resources owned by the property value, prior to its destruction.

Member Functions Documentation

ConvertAllDateTimesToUTCL(const TTimeIntervalSeconds &, const CVersitDaylight *)

IMPORT_C void ConvertAllDateTimesToUTCL ( const TTimeIntervalSeconds & aIncrement,
const CVersitDaylight * aDaylight
) [virtual]

This function does nothing, as daylight saving times should always be specified as local times.

since 9.1


const TTimeIntervalSeconds & aIncrement Not used.
const CVersitDaylight * aDaylight Not used.

ConvertAllUTCDateTimesToMachineLocalL(const TTimeIntervalSeconds &)

IMPORT_C void ConvertAllUTCDateTimesToMachineLocalL ( const TTimeIntervalSeconds & aIncrement ) [virtual]

Converts the start and end times for the daylight saving period to machine-local.

This process involves adjusting the date/time values by the offset in aIncrement.

It has no effect if daylight savings is not in effect or on values already stored in machine-local time.

This function is deprecated.

since 9.1


const TTimeIntervalSeconds & aIncrement A time interval in seconds to add to the start and end date/times for daylight saving. This should normally be the universal time offset for the machine's locale.

ExternalizeL(RWriteStream &, const Versit::TEncodingAndCharset &, TInt)

IMPORT_C void ExternalizeL ( RWriteStream & aStream,
const Versit::TEncodingAndCharset & aEncodingCharset,
TInt aLengthOutput
) [virtual]

Externalizes the daylight saving property value into aStream.

This is invoked by the parser's ExternalizeL() function.


RWriteStream & aStream Stream to which the value is to be externalised.
const Versit::TEncodingAndCharset & aEncodingCharset Specifies the character set and encoding information.
TInt aLengthOutput The amount of text that has been output so far on the line, which needs to be taken into account when calculating if and where any line break should occur.


CVersitDaylight * Value ( ) const [inline]

Gets the daylight saving property value.

Member Data Documentation

CVersitDaylight * iValue

CVersitDaylight * iValue [private]