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 & aCntSvr Client Contacts Model session object handle.

~CCntTemplateCache()

~CCntTemplateCache ( )

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)

void DeleteEntry ( TInt aIndex ) [private]

Delete an entry from the template cache.

Parameters

TInt aIndex Index of entry in template cache to be deleted.

MergeWithTemplateL(CContactItem &, const CContactItemViewDef *)

void MergeWithTemplateL ( 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 & aContact Contact Item to be merged with template.
const CContactItemViewDef * aViewDef = NULL View definition to use.

NewL(RCntModel &)

CCntTemplateCache * NewL ( RCntModel & aCntSvr ) [static]

CCntTemplateCache object factory.

Parameters

RCntModel & aCntSvr

RemoveTemplate(TContactItemId)

void RemoveTemplate ( TContactItemId aId )

Remove a template from the template cache.

Parameters

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

ResetSystemTemplate()

void ResetSystemTemplate ( ) [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 ( TContactItemId aId ) [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]