EPOC   SDK Home Glossary Indexes Previous Next Up

CParserPropertyValueDate class


Contents


CParserPropertyValueDate class — Date property value

Section Contents


Overview

Compatibility

Applications that use this class will not work correctly on a version of EPOC earlier than ER5.

Derivation

CBase

Abstract: CBase behaviour.

CParserPropertyValue

Abstract: Base class for all property values.

CParserTimePropertyValue

Abstract: Base class for all date and time property values.

Defined in

vprop.h

Link against

versit.lib

Description

Date property value. The date/time 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.


Construction and destruction


CParserPropertyValueDate() — C++ constructor with TVersitDateTime value

CParserPropertyValueDate(TVersitDateTime* aValue);

Description

Constructs a CParserPropertyValueDate with a TVersitDateTime value.

Arguments

TVersitDateTime* aValue

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


~CParserPropertyValueDate() — Destructor

~CParserPropertyValueDate();

Description

The destructor frees all resources owned by the property, prior to its destruction.


Date/time conversion


ConvertAllDateTimesToUTCL() — Converts to universal time

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

Description

This function, inherited from the base class CParserTimePropertyValue has an empty implementation.


ConvertAllUTCDateTimesToMachineLocalL() — Converts to local time

void ConvertAllUTCDateTimesToMachineLocalL(const TTimeIntervalSeconds& aIncrement);

Description

This function, inherited from the base class CParserTimePropertyValue has an empty implementation.


Property value


Value() — Get the date value

TVersitDateTime* Value() const;

Description

Returns a pointer to the date value.

Return value

TVersitDateTime*

Pointer to the date value.

EPOC       SDK Home Glossary Indexes Previous Next Up