CParserPropertyValueBinary Class Reference

class CParserPropertyValueBinary : public CParserPropertyValue

A binary property value parser.

It is used to store logos, photos, alarm content and binary attachment as binary values.

The UID for a binary property value is KVersitPropertyBinaryUid.

Inherits from

Public Member Functions
CParserPropertyValueBinary ( CBufSeg &)
~CParserPropertyValueBinary ()
IMPORT_C void ExternalizeL ( RWriteStream &, const Versit::TEncodingAndCharset &, TInt )
IMPORT_C CParserPropertyValueBinary * NewL (const TDesC8 &)
IMPORT_C CParserPropertyValueBinary * NewLC (const TDesC8 &)
IMPORT_C const CBufSeg * Value ()
Protected Member Functions
CParserPropertyValueBinary ()
void ConstructL (const TDesC8 &)
void ExternalizeL ( RWriteStream &, const Versit::TEncodingAndCharset &, TInt , RReadStream &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CParserPropertyValue::Append(TDes16 &,TDesC8 &)
CParserPropertyValue::CParserPropertyValue(const TUid &)
CParserPropertyValue::EncodeL(CBufBase *,const TDesC8 &,const TUid &)const
CParserPropertyValue::FoldAndWriteValueToStreamL(RWriteStream &,const TDesC &,const Versit::TEncodingAndCharset &,TInt &)const
CParserPropertyValue::FoldEncodeAndWriteValueToStreamL(RWriteStream &,const CDesCArray *,const Versit::TEncodingAndCharset &,TInt &)const
CParserPropertyValue::FoldEncodeAndWriteValueToStreamL(RWriteStream &,const TDesC &,const Versit::TEncodingAndCharset &,TInt &)const
CParserPropertyValue::IsAsciiCharacterSetSufficient()
CParserPropertyValue::PlugIn()
CParserPropertyValue::SetPlugIn(MVersitPlugIn *)
CParserPropertyValue::SupportsInterface(const TUid &)const
CParserPropertyValue::Uid()const
Protected Attributes
CBufSeg * iValue

Constructor & Destructor Documentation

CParserPropertyValueBinary(CBufSeg &)

CParserPropertyValueBinary ( CBufSeg & aValue ) [inline]

Constructs a binary property value.

Sets the property value to aValue and the property value UID to KVersitPropertyBinaryUid.

Parameters

CBufSeg & aValue The property value.

CParserPropertyValueBinary()

CParserPropertyValueBinary ( ) [protected, inline]

Constructs a binary property value.

Sets the property value UID to KVersitPropertyBinaryUid.

~CParserPropertyValueBinary()

IMPORT_C ~CParserPropertyValueBinary ( )

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

Member Functions Documentation

ConstructL(const TDesC8 &)

void ConstructL ( const TDesC8 & aValue ) [protected]

Parameters

const TDesC8 & aValue

ExternalizeL(RWriteStream &, const Versit::TEncodingAndCharset &, TInt)

IMPORT_C void ExternalizeL ( RWriteStream & aStream,
const Versit::TEncodingAndCharset & aEncodingCharset,
TInt
) [virtual]

Externalises the binary property value into aStream.

Uses the encoding format specified in aEncodingCharset. (Any character set specified in aEncodingCharset is not used).

Parameters

RWriteStream & aStream Stream into which the value is to be externalised.
const Versit::TEncodingAndCharset & aEncodingCharset Specifies the character set and encoding information. The encoding selected for a binary property value is Versit::EBase64Encoding.
TInt The amount of text that has been output so far on the line (for the property name).

ExternalizeL(RWriteStream &, const Versit::TEncodingAndCharset &, TInt, RReadStream &)

void ExternalizeL ( RWriteStream & aStream,
const Versit::TEncodingAndCharset & aEncodingCharset,
TInt aLengthOutput,
RReadStream & aReadStream
) [protected]

Externalises the binary property value into aStream.

Uses the encoding format specified in aEncodingCharset. (Any character set specified in aEncodingCharset is not used).

Parameters

RWriteStream & aStream Stream into which the value is to be externalised.
const Versit::TEncodingAndCharset & aEncodingCharset Specifies the character set and encoding information. The encoding selected for a binary property value is Versit::EBase64Encoding.
TInt aLengthOutput The amount of text that has been output so far on the line (for the property name).
RReadStream & aReadStream

NewL(const TDesC8 &)

IMPORT_C CParserPropertyValueBinary * NewL ( const TDesC8 & aValue ) [static]

Allocates and constructs a new binary property value with the value specified.

Sets the property value's UID to KVersitPropertyBinaryUid.

Parameters

const TDesC8 & aValue The property value.

NewLC(const TDesC8 &)

IMPORT_C CParserPropertyValueBinary * NewLC ( const TDesC8 & aValue ) [static]

Allocates and constructs a new binary property value with the value specified.

Leaves the object on the cleanup stack.

Sets the property value's UID to KVersitPropertyBinaryUid.

Parameters

const TDesC8 & aValue The property value.

Value()

IMPORT_C const CBufSeg * Value ( ) const

Returns the binary property value.

Member Data Documentation

CBufSeg * iValue

CBufSeg * iValue [protected]