Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: vprop.h
Link against: versit.lib

Class CParserPropertyValueHBufC

CParserPropertyValueHBufC

Support

Supported from 5.0

Description

A property value which is stored using an HBufC. For example, a summary property value in a vCalendar entity might be stored using this class.

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

The class defines an ExternalizeL() function which has not been documented. It is invoked by the parser's ExternalizeL() function.

Derivation

CBaseBase class for all classes to be instantiated on the heap
CParserPropertyValueAbstract base class for all property values
CParserPropertyValueHBufCA property value which is stored using an HBufC

Defined in CParserPropertyValueHBufC:
IsAsciiCharacterSetSufficient(), NewL(), NewLC(), Value(), ~CParserPropertyValueHBufC()

Inherited from CBase:
operator new()

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


Construction and destruction


NewL()

CParserPropertyValueHBufC* NewL(const TDesC& aValue);

Description

Allocates and constructs a new heap descriptor property value with a descriptor. Sets the property value’s UID to KVersitPropertyHBufCUid.

Parameters

const TDesC& aValue

The property value.

Return value

CParserPropertyValueHBufC*

Pointer to the newly created heap descriptor property value.


NewLC()

CParserPropertyValueHBufC* NewLC(const TDesC& aValue);

Description

Allocates and constructs a new heap descriptor property value with a descriptor. Leaves the object on the cleanup stack. Sets the property value’s UID to KVersitPropertyHBufCUid.

Parameters

const TDesC& aValue

The property value.

Return value

CParserPropertyValueHBufC*

Pointer to the newly created heap descriptor property value.


~CParserPropertyValueHBufC()

~CParserPropertyValueHBufC();

Description

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

[Top]


Property value


Value()

TPtrC Value() const;

Description

Gets the property value. If no value has been set, the function returns an empty descriptor.

Return value

TPtrC

Pointer descriptor representing the property value.


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.