Location:
VPROP.H
Link against: versit.lib
class CParserPropertyValueHBufC : public CParserPropertyValue;
A heap descriptor property value parser.
Many properties are stored using this class. Examples are vCard e-mails and vCalendar locations.
The UID for a heap descriptor property value is KVersitPropertyHBufCUid.
CBase
- Base class for all classes to be instantiated on the heap
CParserPropertyValue
- Abstract base class for all property values
CParserPropertyValueHBufC
- A heap descriptor property value parser
Defined in CParserPropertyValueHBufC
:
CParserPropertyValueHBufC()
, ExternalizeL()
, IsAsciiCharacterSetSufficient()
, NewL()
, TakeValueOwnership()
, TreatAsArrayPropertyLC()
, Value()
, iValue
, ~CParserPropertyValueHBufC()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Inherited from CParserPropertyValue
:
Append()
,
EncodeL()
,
FoldAndWriteValueToStreamL()
,
FoldEncodeAndWriteValueToStreamL()
,
PlugIn()
,
SetPlugIn()
,
SupportsInterface()
,
Uid()
static IMPORT_C CParserPropertyValueHBufC *NewL(const TDesC &aValue);
Allocates and constructs a new heap descriptor property value with a descriptor.
Sets the property value's UID to KVersitPropertyHBufCUid.
|
|
IMPORT_C ~CParserPropertyValueHBufC();
Frees all resources owned by the property value, prior to its destruction.
IMPORT_C TPtrC Value() const;
Retrieves the property value.
|
IMPORT_C HBufC *TakeValueOwnership();
Take ownership of the heap descriptor property value.
The property value previously owned by the object is deleted.
|
IMPORT_C CParserPropertyValueCDesCArray *TreatAsArrayPropertyLC(const CParserProperty &aOwningProperty) const;
Treats this HBufC-based property value as a possible array-based property.
This function was added for compatibility reasons to support array-based SOUND property values. This does not alter the representation of this parser property value.
If the underlying HBufC value cannot be parsed into any array elements, then this method returns an array containing only a single item. Otherwise, the HBufC is split into its constituent elements and returned as an array.
|
|
virtual IMPORT_C TBool IsAsciiCharacterSetSufficient();
Tests whether the property value can be represented using the ASCII character set.
|
virtual IMPORT_C void ExternalizeL(RWriteStream &aStream, const Versit::TEncodingAndCharset &aEncodingCharset, TInt aLengthOutput);
Externalizes the descriptor property value into aStream.
This function is invoked by the parser's ExternalizeL()
function.
|
protected: HBufC * iValue;