Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: cntfldst.h
Link against: cntmodel.lib

Class CContactFieldStorage

CContactFieldStorage

Support

Supported from 5.0

Description

Abstract base class for the different types of contact field data storage. CContactTextField, CContactStoreField, CContactAgentField, CContactDateField and CContactNumberField are all derived from this class.

A pointer to the base class can be obtained by calling CContactItemField::Storage(). Pointers to the derived classes can be retrieved by calling CContactItemField::TextStorage(), CContactItemField::StoreStorage() etc.

Derivation

CBaseBase class for all classes to be instantiated on the heap
CContactFieldStorageAbstract base class for the different types of contact field data storage

Defined in CContactFieldStorage:
ExternalizeL(), InternalizeL(), IsFull(), RestoreL(), StoreL()

Inherited from CBase:
operator new()


Stream persistence


InternalizeL()

virtual void InternalizeL(RReadStream& aStream)=0;

Description

Internalises the field data.

Parameters

RReadStream& aStream

Stream from which the the contents of the field should be internalised.


ExternalizeL()

virtual void ExternalizeL(RWriteStream& aStream) const=0;

Description

Externalises the field data.

Parameters

RWriteStream& aStream

Write stream to which the contents of the field should be externalised.


StoreL()

virtual TStreamId StoreL(CStreamStore& aStore) const=0;

Description

Stores the field data.

Parameters

CStreamStore& aStore

Reference to the stream store to which the field data is written.

Return value

TStreamId

The ID of the stream store.


RestoreL()

virtual void RestoreL(CStreamStore& aStore,RReadStream& aStream)=0;

Description

Restores the field data.

Parameters

CStreamStore& aStore

Reference to the store from which the object is to be restored.

RReadStream& aStream

Reference to the stream which should be passed to InternalizeL().


IsFull()

virtual TBool IsFull() const=0;

Description

Tests whether the field storage contains data.

Return value

TBool

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