EPOC   SDK Home Glossary Indexes Previous Next Up

CParserPropertyValueCDesCArray class


Contents


CParserPropertyValueCDesCArray class — Descriptor array 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.

Defined in

vprop.h

Link against

versit.lib

Description

This class represents a property value stored in an array of descriptors. For instance, a postal address property value in a vCard entity might be stored using this class.

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


Construction and destruction


CParserPropertyValueCDesCArray() — C++ constructor with a CDesCArray property

CParserPropertyValueCDesCArray(CDesCArray* aValue);

Description

Constructs a new CParserPropertyValueCDesCArray with a CDesCArray pointer.

Arguments

CDesCArray* aValue

Pointer to the descriptor array. The property value takes ownership of the pointer.


~CParserPropertyValueCDesCArray() — Destructor

~CParserPropertyValueCDesCArray();

Description

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


Property value


IsPresent() — Get whether value present

TBool IsPresent(const TDesC& aValue) const;

Description

Use this function to test whether a specified value is present in the array of descriptors owned by the property value object.

Arguments

const TDesC& aValue

The value of interest.

Return value

TBool

ETrue if the value specified is present in the descriptor array. EFalse if not.


Value() — Get the property value

CDesCArray* Value() const;

Description

Retrieves the property value.

Return value

CDesCArray*

Pointer to the array of descriptors owned by the property value object.

EPOC       SDK Home Glossary Indexes Previous Next Up