Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: vprop.h
Link against: versit.lib

Class CParserPropertyValueDate

CParserPropertyValueDate

Support

Supported from 5.0

Description

A date property value. The date value is contained in a TVersitDateTime object. The Year(), Month() and Day() member functions of class TDateTime may be used to extract the date components from TVersitDateTime::iDateTime.

To find out the property value type, use Uid() defined in the base class CParserPropertyValue. A date property UID has the value KVersitPropertyDateUid.

Derivation

CBaseBase class for all classes to be instantiated on the heap
CParserPropertyValueAbstract base class for all property values
CParserPropertyValueDateA date property value
CParserTimePropertyValueAbstract base class for all of the date/time property value classes (CParserPropertyValueAlarm, CParserPropertyValueDate, CParserPropertyValueDateTime, CParserPropertyValueMultiDateTime, CParserPropertyValueDaylight, CParserPropertyValueRecurrence)

Defined in CParserPropertyValueDate:
CParserPropertyValueDate(), ConvertAllDateTimesToUTCL(), ConvertAllUTCDateTimesToMachineLocalL(), Value(), ~CParserPropertyValueDate()

Inherited from CBase:
operator new()

Inherited from CParserPropertyValue:
EncodeL(), ExternalizeL(), IsAsciiCharacterSetSufficient(), Uid()

Inherited from CParserTimePropertyValue:
SupportsInterface()


Construction and destruction


CParserPropertyValueDate()

CParserPropertyValueDate(TVersitDateTime* aValue);

Description

Constructs a CParserPropertyValueDate with a TVersitDateTime value. Sets the property value’s UID to KVersitPropertyDateUid.

Parameters

TVersitDateTime* aValue

Specifies the date, and information about the date. The property value takes ownership of the pointer.


~CParserPropertyValueDate()

~CParserPropertyValueDate();

Description

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

[Top]


Date/time conversion


ConvertAllDateTimesToUTCL()

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

Description

This function is inherited from the base class CParserTimePropertyValue. It has an empty implementation because this class represents a date not a time value.


ConvertAllUTCDateTimesToMachineLocalL()

void ConvertAllUTCDateTimesToMachineLocalL(const TTimeIntervalSeconds& aIncrement);

Description

This function is inherited from the base class CParserTimePropertyValue. It has an empty implementation because this class represents a date not a time value.

[Top]


Property value


Value()

TVersitDateTime* Value() const;

Description

Gets a pointer to the date value.

Return value

TVersitDateTime*

Pointer to the date value.