CTextFieldSet Class Reference

class CTextFieldSet : public CBase

The engine that keeps the field table up to date

Inherits from

Public Member Functions
~CTextFieldSet()
IMPORT_C TIntCharCount()
IMPORT_C voidCopyComponentsL(CStreamStore &, CStoreMap &, TInt, TInt)
IMPORT_C TStreamIdCopyToStoreL(CStreamStore &, TInt, TInt)
IMPORT_C voidCopyToStreamL(RWriteStream &, TInt, TInt)
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C TIntFieldCount()
IMPORT_C MTextFieldFactory *FieldFactory()
IMPORT_C TBoolFindFields(TInt)
IMPORT_C TBoolFindFields(TFindFieldInfo &, TInt, TInt)
IMPORT_C TIntInsertFieldL(TInt, CTextField *, TUid)
IMPORT_C voidInternalizeL(RReadStream &)
IMPORT_C CTextField *NewFieldL(TUid)
IMPORT_C TIntNewFieldValueL(HBufC *&, TInt)
IMPORT_C CTextFieldSet *NewL(TInt)
IMPORT_C CTextFieldSet *NewL(const MTextFieldFactory *, const CStreamStore &, TStreamId)
IMPORT_C voidNotifyDeletion(TInt, TInt)
IMPORT_C voidNotifyFieldUpdate(TInt, TInt)
IMPORT_C voidNotifyInsertion(TInt, TInt)
IMPORT_C voidPasteComponentsL(const CStreamStore &, TInt)
IMPORT_C voidPasteFromStoreL(const CStreamStore &, TStreamId, TInt, TInt)
IMPORT_C voidPasteFromStreamL(RReadStream &, TInt, TInt)
IMPORT_C TIntRemoveField(TInt)
IMPORT_C voidReset()
IMPORT_C voidRestoreFieldsL(const CStreamStore &)
IMPORT_C voidRestoreL(const CStreamStore &, TStreamId)
IMPORT_C voidRollbackPaste()
IMPORT_C voidSetFieldFactory(MTextFieldFactory *)
IMPORT_C voidStoreFieldsL(CStreamStore &, CStoreMap &)
IMPORT_C TStreamIdStoreL(CStreamStore &)
IMPORT_C const CTextField *TextField(TInt)
Protected Member Functions
CTextFieldSet()
voidConstructL(TInt)
voidConstructL(const CStreamStore &, TStreamId)
Private Member Functions
voidAddInitialFieldEntryL(CArrayFixSeg< TTextFieldEntry > *, TInt)
voidAppendEntryL(TTextFieldEntry &)
voidAppendEntryL(TTextFieldEntry &, CArrayFixSeg< TTextFieldEntry > *)
voidCopyToArrayL(CArrayFixSeg< TTextFieldEntry > *, TInt, TInt)
voidDeleteFieldEntry(TInt)
voidDeleteFieldEntry(CArrayFixSeg< TTextFieldEntry > *, TInt)
voidDoPasteL(CArrayFixSeg< TTextFieldEntry > *, TInt)
voidDoRestoreFieldsL(CArrayFixSeg< TTextFieldEntry > *, const CStreamStore &, TInt)
voidDoRestoreL(const CStreamStore &, TStreamId)
TInt EntryLen(const TTextFieldEntry &)
TInt EntryLen(TInt)
voidExternalizeL(RWriteStream &, CArrayFixSeg< TTextFieldEntry > *)
TBool InField(const TInt, TInt &, TInt &)
voidInsertEntryL(TInt, TTextFieldEntry &)
voidInsertEntryL(TInt, TTextFieldEntry &, CArrayFixSeg< TTextFieldEntry > *)
voidInternalizeL(CArrayFixSeg< TTextFieldEntry > *, RReadStream &)
voidRecordRollbackInfoL(TInt)
TTextFieldEntrySplitEntry(TInt, TInt, TInt)
voidStoreFieldsL(CStreamStore &, CStoreMap &, CArrayFixSeg< TTextFieldEntry > *)
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()
Private Attributes
__DECLARE_TEST
CArrayFixSeg< TTextFieldEntry > *iFieldArray
MTextFieldFactory *iFieldFactory
TRollbackInfo *iRollbackInfo

Constructor & Destructor Documentation

CTextFieldSet()

CTextFieldSet()[protected]

~CTextFieldSet()

IMPORT_C~CTextFieldSet()

Member Functions Documentation

AddInitialFieldEntryL(CArrayFixSeg< TTextFieldEntry > *, TInt)

voidAddInitialFieldEntryL(CArrayFixSeg< TTextFieldEntry > *aArray,
TIntaDocumentLength
)[private]

Parameters

CArrayFixSeg< TTextFieldEntry > * aArray
TInt aDocumentLength

AppendEntryL(TTextFieldEntry &)

voidAppendEntryL(TTextFieldEntry &aEntry)[private]

Parameters

TTextFieldEntry & aEntry

AppendEntryL(TTextFieldEntry &, CArrayFixSeg< TTextFieldEntry > *)

voidAppendEntryL(TTextFieldEntry &aEntry,
CArrayFixSeg< TTextFieldEntry > *aArray
)[private]

Parameters

TTextFieldEntry & aEntry
CArrayFixSeg< TTextFieldEntry > * aArray

CharCount()

IMPORT_C TIntCharCount()const

ConstructL(TInt)

voidConstructL(TIntaDocumentLength)[protected]

Parameters

TInt aDocumentLength

ConstructL(const CStreamStore &, TStreamId)

voidConstructL(const CStreamStore &aFieldStore,
TStreamIdaStreamId
)[protected]

Parameters

const CStreamStore & aFieldStore
TStreamId aStreamId

CopyComponentsL(CStreamStore &, CStoreMap &, TInt, TInt)

IMPORT_C voidCopyComponentsL(CStreamStore &aStore,
CStoreMap &aMap,
TIntaPos,
TIntaLength
)const

Parameters

CStreamStore & aStore
CStoreMap & aMap
TInt aPos
TInt aLength

CopyToArrayL(CArrayFixSeg< TTextFieldEntry > *, TInt, TInt)

voidCopyToArrayL(CArrayFixSeg< TTextFieldEntry > *aArray,
TIntaPos,
TIntaLength
)const [private]

Parameters

CArrayFixSeg< TTextFieldEntry > * aArray
TInt aPos
TInt aLength

CopyToStoreL(CStreamStore &, TInt, TInt)

IMPORT_C TStreamIdCopyToStoreL(CStreamStore &aStore,
TIntaPos,
TIntaLength
)const

Parameters

CStreamStore & aStore
TInt aPos
TInt aLength

CopyToStreamL(RWriteStream &, TInt, TInt)

IMPORT_C voidCopyToStreamL(RWriteStream &aStream,
TIntaPos,
TIntaLength
)const

Parameters

RWriteStream & aStream
TInt aPos
TInt aLength

DeleteFieldEntry(TInt)

voidDeleteFieldEntry(TIntanIndex)[private]

Parameters

TInt anIndex

DeleteFieldEntry(CArrayFixSeg< TTextFieldEntry > *, TInt)

voidDeleteFieldEntry(CArrayFixSeg< TTextFieldEntry > *aArray,
TIntanIndex
)[private]

Parameters

CArrayFixSeg< TTextFieldEntry > * aArray
TInt anIndex

DoPasteL(CArrayFixSeg< TTextFieldEntry > *, TInt)

voidDoPasteL(CArrayFixSeg< TTextFieldEntry > *aSourceArray,
TIntaPos
)[private]

Parameters

CArrayFixSeg< TTextFieldEntry > * aSourceArray
TInt aPos

DoRestoreFieldsL(CArrayFixSeg< TTextFieldEntry > *, const CStreamStore &, TInt)

voidDoRestoreFieldsL(CArrayFixSeg< TTextFieldEntry > *aArray,
const CStreamStore &aFieldStore,
TIntaStartIndex = 0
)[private]

Parameters

CArrayFixSeg< TTextFieldEntry > * aArray
const CStreamStore & aFieldStore
TInt aStartIndex = 0

DoRestoreL(const CStreamStore &, TStreamId)

voidDoRestoreL(const CStreamStore &aFieldStore,
TStreamIdaStreamId
)[private]

Parameters

const CStreamStore & aFieldStore
TStreamId aStreamId

EntryLen(const TTextFieldEntry &)

TInt EntryLen(const TTextFieldEntry &aEntry)const [private]

Parameters

const TTextFieldEntry & aEntry

EntryLen(TInt)

TInt EntryLen(TIntaIndex)const [private]

Parameters

TInt aIndex

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

ExternalizeL(RWriteStream &, CArrayFixSeg< TTextFieldEntry > *)

voidExternalizeL(RWriteStream &aStream,
CArrayFixSeg< TTextFieldEntry > *aArray
)const [private]

Parameters

RWriteStream & aStream
CArrayFixSeg< TTextFieldEntry > * aArray

FieldCount()

IMPORT_C TIntFieldCount()const

FieldFactory()

IMPORT_C MTextFieldFactory *FieldFactory()const

FindFields(TInt)

IMPORT_C TBoolFindFields(TIntaPos)const

Parameters

TInt aPos

FindFields(TFindFieldInfo &, TInt, TInt)

IMPORT_C TBoolFindFields(TFindFieldInfo &aInfo,
TIntaPos,
TIntaRange = 0
)const

Parameters

TFindFieldInfo & aInfo
TInt aPos
TInt aRange = 0

InField(const TInt, TInt &, TInt &)

TBool InField(const TIntaPos,
TInt &anIndex,
TInt &anOffset
)const [private]

Parameters

const TInt aPos
TInt & anIndex
TInt & anOffset

InsertEntryL(TInt, TTextFieldEntry &)

voidInsertEntryL(TIntaIndex,
TTextFieldEntry &aEntry
)[private]

Parameters

TInt aIndex
TTextFieldEntry & aEntry

InsertEntryL(TInt, TTextFieldEntry &, CArrayFixSeg< TTextFieldEntry > *)

voidInsertEntryL(TIntaIndex,
TTextFieldEntry &aEntry,
CArrayFixSeg< TTextFieldEntry > *aArray
)[private]

Parameters

TInt aIndex
TTextFieldEntry & aEntry
CArrayFixSeg< TTextFieldEntry > * aArray

InsertFieldL(TInt, CTextField *, TUid)

IMPORT_C TIntInsertFieldL(TIntaPos,
CTextField *aField,
TUidaFieldType
)

Parameters

TInt aPos
CTextField * aField
TUid aFieldType

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

InternalizeL(CArrayFixSeg< TTextFieldEntry > *, RReadStream &)

voidInternalizeL(CArrayFixSeg< TTextFieldEntry > *aArray,
RReadStream &aStream
)[private]

Parameters

CArrayFixSeg< TTextFieldEntry > * aArray
RReadStream & aStream

NewFieldL(TUid)

IMPORT_C CTextField *NewFieldL(TUidaFieldType)

Parameters

TUid aFieldType

NewFieldValueL(HBufC *&, TInt)

IMPORT_C TIntNewFieldValueL(HBufC *&aBuf,
TIntaPos
)

Parameters

HBufC *& aBuf
TInt aPos

NewL(TInt)

IMPORT_C CTextFieldSet *NewL(TIntaDocumentLength = 0)[static]

Parameters

TInt aDocumentLength = 0

NewL(const MTextFieldFactory *, const CStreamStore &, TStreamId)

IMPORT_C CTextFieldSet *NewL(const MTextFieldFactory *aFactory,
const CStreamStore &aStore,
TStreamIdaStreamId
)[static]

Parameters

const MTextFieldFactory * aFactory
const CStreamStore & aStore
TStreamId aStreamId

NotifyDeletion(TInt, TInt)

IMPORT_C voidNotifyDeletion(TIntaPos,
TIntaNumberRemoved
)

Parameters

TInt aPos
TInt aNumberRemoved

NotifyFieldUpdate(TInt, TInt)

IMPORT_C voidNotifyFieldUpdate(TIntaPos,
TIntaNewFieldValueLength
)

Parameters

TInt aPos
TInt aNewFieldValueLength

NotifyInsertion(TInt, TInt)

IMPORT_C voidNotifyInsertion(TIntaPos,
TIntaNumberAdded
)

Parameters

TInt aPos
TInt aNumberAdded

PasteComponentsL(const CStreamStore &, TInt)

IMPORT_C voidPasteComponentsL(const CStreamStore &aFieldStore,
TIntaPos
)

Parameters

const CStreamStore & aFieldStore
TInt aPos

PasteFromStoreL(const CStreamStore &, TStreamId, TInt, TInt)

IMPORT_C voidPasteFromStoreL(const CStreamStore &aFieldStore,
TStreamIdaStreamId,
TIntaPos,
TIntaMaxLen = ENoPasteLimit
)

Parameters

const CStreamStore & aFieldStore
TStreamId aStreamId
TInt aPos
TInt aMaxLen = ENoPasteLimit

PasteFromStreamL(RReadStream &, TInt, TInt)

IMPORT_C voidPasteFromStreamL(RReadStream &aStream,
TIntaPos,
TIntaMaxLen = ENoPasteLimit
)

Parameters

RReadStream & aStream
TInt aPos
TInt aMaxLen = ENoPasteLimit

RecordRollbackInfoL(TInt)

voidRecordRollbackInfoL(TIntaPastePos)[private]

Parameters

TInt aPastePos

RemoveField(TInt)

IMPORT_C TIntRemoveField(TIntaPos)

Parameters

TInt aPos

Reset()

IMPORT_C voidReset()

RestoreFieldsL(const CStreamStore &)

IMPORT_C voidRestoreFieldsL(const CStreamStore &aFieldStore)

Parameters

const CStreamStore & aFieldStore

RestoreL(const CStreamStore &, TStreamId)

IMPORT_C voidRestoreL(const CStreamStore &aFieldStore,
TStreamIdaStreamId
)

Parameters

const CStreamStore & aFieldStore
TStreamId aStreamId

RollbackPaste()

IMPORT_C voidRollbackPaste()

SetFieldFactory(MTextFieldFactory *)

IMPORT_C voidSetFieldFactory(MTextFieldFactory *aFactory)

Parameters

MTextFieldFactory * aFactory

SplitEntry(TInt, TInt, TInt)

TTextFieldEntrySplitEntry(TIntaIndex,
TIntaOffset,
TIntaRange
)const [private]

Parameters

TInt aIndex
TInt aOffset
TInt aRange

StoreFieldsL(CStreamStore &, CStoreMap &)

IMPORT_C voidStoreFieldsL(CStreamStore &aStore,
CStoreMap &aMap
)const

Parameters

CStreamStore & aStore
CStoreMap & aMap

StoreFieldsL(CStreamStore &, CStoreMap &, CArrayFixSeg< TTextFieldEntry > *)

voidStoreFieldsL(CStreamStore &aStore,
CStoreMap &aMap,
CArrayFixSeg< TTextFieldEntry > *aArray
)const [private]

Parameters

CStreamStore & aStore
CStoreMap & aMap
CArrayFixSeg< TTextFieldEntry > * aArray

StoreL(CStreamStore &)

IMPORT_C TStreamIdStoreL(CStreamStore &aStore)const

Parameters

CStreamStore & aStore

TextField(TInt)

IMPORT_C const CTextField *TextField(TIntaPos)const

Parameters

TInt aPos

Member Data Documentation

__DECLARE_TEST

__DECLARE_TEST[private]

CArrayFixSeg< TTextFieldEntry > * iFieldArray

CArrayFixSeg< TTextFieldEntry > *iFieldArray[private]

MTextFieldFactory * iFieldFactory

MTextFieldFactory *iFieldFactory[private]

TRollbackInfo * iRollbackInfo

TRollbackInfo *iRollbackInfo[private]