#include <app/vprop.h>
class CParserPropertyValueDaylight : public CParserTimePropertyValue |
Public Member Functions | |
---|---|
CParserPropertyValueDaylight(CVersitDaylight *) | |
~CParserPropertyValueDaylight() | |
virtual IMPORT_C void | ConvertAllDateTimesToUTCL(const TTimeIntervalSeconds &, const CVersitDaylight *) |
virtual IMPORT_C void | ConvertAllUTCDateTimesToMachineLocalL(const TTimeIntervalSeconds &) |
virtual IMPORT_C void | ExternalizeL(RWriteStream &, const Versit::TEncodingAndCharset &, TInt) |
CVersitDaylight * | Value() |
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.
IMPORT_C | CParserPropertyValueDaylight | ( | CVersitDaylight * | aValue | ) |
Constructs a new CParserPropertyValueDaylight.
Sets the property value's UID to KVersitPropertyDaylightUid.
Parameter | Description |
---|---|
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.
IMPORT_C void | ConvertAllDateTimesToUTCL | ( | 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
Parameter | Description |
---|---|
aIncrement | Not used. |
aDaylight | Not used. |
IMPORT_C void | ConvertAllUTCDateTimesToMachineLocalL | ( | 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
Parameter | Description |
---|---|
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. |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream, |
const Versit::TEncodingAndCharset & | aEncodingCharset, | |||
TInt | aLengthOutput | |||
) | [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.
Parameter | Description |
---|---|
aStream | Stream to which the value is to be externalised. |
aEncodingCharset | Specifies the character set and encoding information. |
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.
Returns: Pointer to the daylight saving specification.