CCdlNames Class Reference

class CCdlNames : public CArrayPtrFlat< HBufC >

A collection of names stored as HBufC*. This collection contains one instance of each name. CdlEngine::CompareNames() is used to check whether two names are the same. This collection type is used as a string pool for the CCdlRefs class, where there are many TCdlRefs that share the same name. This class is used instead of CDesCArray because the descriptors returned by CDesCArray are not referenceable. The HBufCs in the array are owned by this class.

Public Member Functions
CCdlNames()
~CCdlNames()
IMPORT_C HBufC *AddL(const TDesC &)
IMPORT_C HBufC8 *ExportL()
IMPORT_C HBufC8 *ExportLC()
IMPORT_C TIntFindIndex(const TDesC &)
IMPORT_C voidImportL(const TDesC8 &)
IMPORT_C CCdlNames *NewLC()
Private Member Functions
voidCleanupImport(TAny *)
voidDoCleanupImport()
Inherited Functions
CArrayFix< HBufC * >::AppendL(const HBufC *&)
CArrayFix< HBufC * >::AppendL(const HBufC *&,TInt)
CArrayFix< HBufC * >::AppendL(const HBufC **,TInt)
CArrayFix< HBufC * >::Array()const
CArrayFix< HBufC * >::At(TInt)
CArrayFix< HBufC * >::At(TInt)const
CArrayFix< HBufC * >::Back(TInt)
CArrayFix< HBufC * >::Back(TInt)const
CArrayFix< HBufC * >::CArrayFix(TBufRep,TInt)
CArrayFix< HBufC * >::End(TInt)
CArrayFix< HBufC * >::End(TInt)const
CArrayFix< HBufC * >::ExpandL(TInt)
CArrayFix< HBufC * >::ExtendL()
CArrayFix< HBufC * >::Find(const HBufC *&,TKeyArrayFix &,TInt &)const
CArrayFix< HBufC * >::FindIsq(const HBufC *&,TKeyArrayFix &,TInt &)const
CArrayFix< HBufC * >::InsertIsqAllowDuplicatesL(const HBufC *&,TKeyArrayFix &)
CArrayFix< HBufC * >::InsertIsqL(const HBufC *&,TKeyArrayFix &)
CArrayFix< HBufC * >::InsertL(TInt,const HBufC *&)
CArrayFix< HBufC * >::InsertL(TInt,const HBufC *&,TInt)
CArrayFix< HBufC * >::InsertL(TInt,const HBufC **,TInt)
CArrayFix< HBufC * >::ResizeL(TInt)
CArrayFix< HBufC * >::ResizeL(TInt,const HBufC *&)
CArrayFix< HBufC * >::operator[](TInt)
CArrayFix< HBufC * >::operator[](TInt)const
CArrayFixBase::AtR(const CBase *,TInt)
CArrayFixBase::CArrayFixBase(TBufRep,TInt,TInt)
CArrayFixBase::Compress()
CArrayFixBase::Count()const
CArrayFixBase::CountR(const CBase *)
CArrayFixBase::Delete(TInt)
CArrayFixBase::Delete(TInt,TInt)
CArrayFixBase::Find(const TAny *,TKeyArrayFix &,TInt &)const
CArrayFixBase::FindIsq(const TAny *,TKeyArrayFix &,TInt &)const
CArrayFixBase::InsertIsqAllowDuplicatesL(const TAny *,TKeyArrayFix &)
CArrayFixBase::InsertIsqL(const TAny *,TKeyArrayFix &)
CArrayFixBase::InsertL(TInt,const TAny *)
CArrayFixBase::InsertL(TInt,const TAny *,TInt)
CArrayFixBase::InsertRepL(TInt,const TAny *,TInt)
CArrayFixBase::Length()const
CArrayFixBase::Reset()
CArrayFixBase::ResizeL(TInt,const TAny *)
CArrayFixBase::SetKey(TKeyArrayFix &)const
CArrayFixBase::SetReserveFlatL(TInt)
CArrayFixBase::Sort(TKeyArrayFix &)
CArrayFixBase::~CArrayFixBase()
CArrayPtr< HBufC >::CArrayPtr(TBufRep,TInt)
CArrayPtr< HBufC >::ResetAndDestroy()
CArrayPtrFlat< HBufC >::CArrayPtrFlat(TInt)
CArrayPtrFlat< HBufC >::SetReserveL(TInt)
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()

Constructor & Destructor Documentation

CCdlNames()

IMPORT_CCCdlNames()

C++ default constructor.

~CCdlNames()

IMPORT_C~CCdlNames()

Destructor.

Member Functions Documentation

AddL(const TDesC &)

IMPORT_C HBufC *AddL(const TDesC &aName)

Adds a name to the collection. If the name is already present in the collection is not added again. In any case, the names HBufC* in the collection is returned.

Parameters

const TDesC & aNamethe name to add to the collection.

CleanupImport(TAny *)

voidCleanupImport(TAny *aThis)[private, static]

Parameters

TAny * aThis

DoCleanupImport()

voidDoCleanupImport()[private]

ExportL()

IMPORT_C HBufC8 *ExportL()const

Creates a descriptor containing the exported collection of names

ExportLC()

IMPORT_C HBufC8 *ExportLC()const

Creates a descriptor containing the exported collection of names

FindIndex(const TDesC &)

IMPORT_C TIntFindIndex(const TDesC &aName)const

Finds the array index of a name in this collection.

Parameters

const TDesC & aNamethe name to look for.

ImportL(const TDesC8 &)

IMPORT_C voidImportL(const TDesC8 &aDes)

Populates the collection from a descriptor containing an exported collection of names.

Parameters

const TDesC8 & aDesa descriptor containing a collection of names, which has been exported by ExportL or ExportLC.

NewLC()

IMPORT_C CCdlNames *NewLC()[static]

Two-phased constructor.