CCntTemplateCache Class Reference

class CCntTemplateCache : public CBase

Class for all template related functionality.

Inherits from

Constructor & Destructor Documentation

CCntTemplateCache(RCntModel &)

CCntTemplateCache(RCntModel &aCntSvr)[private]

CCntTemplateCache first phase constructor.

Parameters

RCntModel & aCntSvrClient Contacts Model session object handle.

~CCntTemplateCache()

~CCntTemplateCache()

CCntTemplateCache destructor.

Member Functions Documentation

DefaultViewDefL()

CContactItemViewDef &DefaultViewDefL()[private]

Get the default view definition for the template cache. If the default view definition does not yet exist then create it (lazy initialisation).

leave
KErrNoMemory Out of memory.

DeleteEntry(TInt)

voidDeleteEntry(TIntaIndex)[private]

Delete an entry from the template cache.

Parameters

TInt aIndexIndex of entry in template cache to be deleted.

MergeWithTemplateL(CContactItem &, const CContactItemViewDef *)

voidMergeWithTemplateL(CContactItem &aContact,
const CContactItemViewDef *aViewDef = NULL
)

Merge the given Contact Item with the template used to create the Contact Item. If no view definition is supplied then use the default view definition.

Parameters

CContactItem & aContactContact Item to be merged with template.
const CContactItemViewDef * aViewDef = NULLView definition to use.

NewL(RCntModel &)

CCntTemplateCache *NewL(RCntModel &aCntSvr)[static]

CCntTemplateCache object factory.

Parameters

RCntModel & aCntSvr

RemoveTemplate(TContactItemId)

voidRemoveTemplate(TContactItemIdaId)

Remove a template from the template cache.

Parameters

TContactItemId aIdID of the template which is to be removed from the template cache.

ResetSystemTemplate()

voidResetSystemTemplate()[private]

Dispose of the system template. The next time the system template is accessed via the SystemTemplateL() method it will be fetched from the Server.

SystemTemplateL()

CContactItem &SystemTemplateL()

Get the system template. If the system template does not yet exist then create it (lazy initialisation).

TemplateId()

TContactItemId TemplateId()const [inline]

TemplateL(TContactItemId)

CContactItem &TemplateL(TContactItemIdaId)[private]

Get a template from the template cache with the given ID.

Parameters

TContactItemId aId

Member Data Documentation

RPointerArray< CContactItem > iCache

RPointerArray< CContactItem >iCache[private]

RCntModel & iCntSvr

RCntModel &iCntSvr[private]

CContactItem * iSystemTemplate

CContactItem *iSystemTemplate[private]

TContactItemId iTemplateId

TContactItemId iTemplateId[private]

CContactItemViewDef * iViewDef

CContactItemViewDef *iViewDef[private]