Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: vprop.h
Link against: versit.lib

Class CParserPropertyValueCDesCArray

CParserPropertyValueCDesCArray

Support

Supported from 5.0

Description

A property value stored in an array of descriptors. For instance, a postal address in a vCard 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.

Derivation

CBaseBase class for all classes to be instantiated on the heap
CParserPropertyValueAbstract base class for all property values
CParserPropertyValueCDesCArrayA property value stored in an array of descriptors

Defined in CParserPropertyValueCDesCArray:
CParserPropertyValueCDesCArray(), IsAsciiCharacterSetSufficient(), IsPresent(), Value(), ~CParserPropertyValueCDesCArray()

Inherited from CBase:
operator new()

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


Construction and destruction


CParserPropertyValueCDesCArray()

CParserPropertyValueCDesCArray(CDesCArray* aValue);

Description

Constructs a new CParserPropertyValueCDesCArray with a CDesCArray pointer. Sets the property value’s UID to KVersitPropertyCDesCArrayUid.

Parameters

CDesCArray* aValue

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


~CParserPropertyValueCDesCArray()

~CParserPropertyValueCDesCArray();

Description

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

[Top]


Property value


IsPresent()

TBool IsPresent(const TDesC& aValue) const;

Description

Tests whether a specified descriptor is present in the array of descriptors owned by the property value object.

Parameters

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

CDesCArray* Value() const;

Description

Gets the property value.

Return value

CDesCArray*

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


IsAsciiCharacterSetSufficient()

virtual TBool IsAsciiCharacterSetSufficient();

Support

Supported from 5.1

Description

Tests whether the property value can be represented using the ASCII character set.

Return value

TBool

ETrue if the property value can be represented using the ASCII character set. If not, EFalse.