CParserPropertyValueDaylight Class Reference

#include <app/vprop.h>

Link against: versit.lib

class CParserPropertyValueDaylight : public CParserTimePropertyValue

Inherits from

Public Member Functions
CParserPropertyValueDaylight(CVersitDaylight *)
~CParserPropertyValueDaylight()
virtual IMPORT_C voidConvertAllDateTimesToUTCL(const TTimeIntervalSeconds &, const CVersitDaylight *)
virtual IMPORT_C voidConvertAllUTCDateTimesToMachineLocalL(const TTimeIntervalSeconds &)
virtual IMPORT_C voidExternalizeL(RWriteStream &, const Versit::TEncodingAndCharset &, TInt)
CVersitDaylight *Value()
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()
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::IsAsciiCharacterSetSufficient()
CParserPropertyValue::PlugIn()
CParserPropertyValue::SetPlugIn(MVersitPlugIn *)
CParserPropertyValue::Uid()const
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

Detailed Description

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.

Constructor & Destructor Documentation

CParserPropertyValueDaylight ( CVersitDaylight * )

IMPORT_CCParserPropertyValueDaylight(CVersitDaylight *aValue)

Constructs a new CParserPropertyValueDaylight.

Sets the property value's UID to KVersitPropertyDaylightUid.

ParameterDescription
aValuePointer to the daylight saving specification. The property value takes ownership of the pointer.

~CParserPropertyValueDaylight ( )

IMPORT_C~CParserPropertyValueDaylight()

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

Member Function Documentation

ConvertAllDateTimesToUTCL ( const TTimeIntervalSeconds &, const CVersitDaylight * )

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

Reimplemented from CParserTimePropertyValue::ConvertAllDateTimesToUTCL(const TTimeIntervalSeconds &,const CVersitDaylight *)

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

Deprecatedsince 9.1

ParameterDescription
aIncrementNot used.
aDaylightNot used.

ConvertAllUTCDateTimesToMachineLocalL ( const TTimeIntervalSeconds & )

IMPORT_C voidConvertAllUTCDateTimesToMachineLocalL(const TTimeIntervalSeconds &aIncrement)[virtual]

Reimplemented from CParserTimePropertyValue::ConvertAllUTCDateTimesToMachineLocalL(const TTimeIntervalSeconds &)

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.

Deprecatedsince 9.1

ParameterDescription
aIncrementA 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 voidExternalizeL(RWriteStream &aStream,
const Versit::TEncodingAndCharset &aEncodingCharset,
TIntaLengthOutput
)[virtual]

Reimplemented from CParserPropertyValue::ExternalizeL(RWriteStream &,const Versit::TEncodingAndCharset &,TInt)

Externalizes the daylight saving property value into aStream.

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

ParameterDescription
aStreamStream to which the value is to be externalised.
aEncodingCharsetSpecifies the character set and encoding information.
aLengthOutputThe 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.

Value ( )

CVersitDaylight *Value()const [inline]

Gets the daylight saving property value.

Returns: Pointer to the daylight saving specification.