Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: VPROP.H
Link against: versit.lib

Class CParserPropertyValueDaylight

class CParserPropertyValueDaylight : public CParserTimePropertyValue;

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.

Derivation

Members

Defined in CParserPropertyValueDaylight:
CParserPropertyValueDaylight(), ConvertAllDateTimesToUTCL(), ConvertAllUTCDateTimesToMachineLocalL(), ExternalizeL(), Value(), ~CParserPropertyValueDaylight()

Inherited from CBase:
Delete(), Extension_(), operator new()

Inherited from CParserPropertyValue:
Append(), EncodeL(), FoldAndWriteValueToStreamL(), FoldEncodeAndWriteValueToStreamL(), IsAsciiCharacterSetSufficient(), PlugIn(), SetPlugIn(), Uid()

Inherited from CParserTimePropertyValue:
ConvertDateTime(), EncodeTimePeriodL(), EncodeVersitDateTimeL(), SupportsInterface()


Construction and destruction


CParserPropertyValueDaylight()

IMPORT_C CParserPropertyValueDaylight(CVersitDaylight *aValue);

Description

Constructs a new CParserPropertyValueDaylight.

Sets the property value's UID to KVersitPropertyDaylightUid.

Parameters

CVersitDaylight *aValue

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


~CParserPropertyValueDaylight()

IMPORT_C ~CParserPropertyValueDaylight();

Description

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

[Top]


Member functions


Value()

inline CVersitDaylight *Value() const;

Description

Gets the daylight saving property value.

Return value

CVersitDaylight *

Pointer to the daylight saving specification.


ConvertAllDateTimesToUTCL()

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

Description

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

Parameters

const TTimeIntervalSeconds &aIncrement

Not used.

const CVersitDaylight *aDaylight

Not used.


ConvertAllUTCDateTimesToMachineLocalL()

virtual IMPORT_C void ConvertAllUTCDateTimesToMachineLocalL(const TTimeIntervalSeconds &aIncrement);

Description

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.

Parameters

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()

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

Description

Externalizes the daylight saving property value into aStream.

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

Parameters

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.