CContactStoreField Class Reference

#include <app/cntfldst.h>

class CContactStoreField : public CContactFieldStorage, public CContactFieldStorage

Detailed Description

Provides access to the binary field data stored in an 8-bit descriptor.

An object of this class can be retrieved using CContactItemField::StoreStorage().

Constructor & Destructor Documentation

~CContactStoreField ( )

~CContactStoreField()

Member Function Documentation

ExternalizeL ( RWriteStream & )

voidExternalizeL(RWriteStream &aStream)const [virtual]

Externalises the field data.

Parameters
aStreamWrite stream to which the contents of the field should be externalised.

InternalizeL ( RReadStream & )

voidInternalizeL(RReadStream &aStream)[virtual]

Internalises the field data.

Parameters
aStreamStream from which the the contents of the field should be internalised.

IsFull ( )

TBool IsFull()const [virtual]

Tests whether the field storage contains data.

Return Value
True if the field storage contains data, false if not.

RestoreL ( CStreamStore &, RReadStream & )

voidRestoreL(CStreamStore &aStore,
RReadStream &aStream
)[virtual]

Restores the field data.

Parameters
aStoreReference to the store from which the object is to be restored.
aStreamReference to the stream which should be passed to InternalizeL().

SetThingL ( const TDesC8 & )

IMPORT_C voidSetThingL(const TDesC8 &aDes)

Sets the field data from an 8-bit descriptor.

Parameters
aDes8-bit descriptor containing the binary data to copy into the field.

SetThingL ( const HBufC8 & )

IMPORT_C voidSetThingL(const HBufC8 &aDes)

Sets the field data from an 8-bit heap descriptor.

Parameters
aDes8-bit heap descriptor containing the binary data to copy into the field.

SetThingL ( const CBufBase * )

IMPORT_C voidSetThingL(const CBufBase *aBuf)

Sets the field data from a buffer.

Parameters
aBufBuffer containing the binary data to copy into the field.

StoreL ( CStreamStore & )

TStreamId StoreL(CStreamStore &aStore)const [virtual]

Stores the field data.

Parameters
aStoreReference to the stream store to which the field data is written.
Return Value
The ID of the stream store.

Thing ( )

IMPORT_C HBufC8 *Thing()const

Gets a pointer to the binary data stored in the field.

Return Value
Pointer to the binary data stored in the field.