Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: CNTITEM.H
Link against: cntmodel.lib

Class CContactTemplate

class CContactTemplate : public CContactItem;

Description

A contact item template.

This is a contact item which is used to seed the initial field set for other contact items.

Non-system (i.e. user-defined) templates are implemented by the CContactCardTemplate class. CContactCardTemplate should be used in preference to CContactTemplate.

Derivation

Members

Defined in CContactTemplate:
NewL(), NewL(), NewLC(), NewLC(), Type()

Inherited from CBase:
Delete(), Extension_(), operator new()

Inherited from CContactItem:
AccessCount(), AddFieldL(), CardFields(), DecAccessCount(), ECompressedGuid, EDeleted, EHidden, ESystem, ExternalizeL(), Guid(), Id(), IncAccessCount(), InsertFieldL(), InternalizeL(), IsDeletable(), IsDeleted(), IsHidden(), IsSystem(), LastModified(), RemoveField(), SetDeleted(), SetHidden(), SetLastModified(), SetSystem(), SetTemplateRefId(), SetUidStringL(), TemplateRefId(), UidStringL(), UpdateFieldSet(), anonymous


Construction and destruction


NewL()

static IMPORT_C CContactTemplate *NewL();

Description

Allocates and constructs a new default system template.

Return value

CContactTemplate *

Pointer to the newly created system template.


NewLC()

static IMPORT_C CContactTemplate *NewLC();

Description

Allocates and constructs a new default system template.

Return value

CContactTemplate *

Pointer to the newly created system template. This is left on the cleanup stack.


NewL()

static IMPORT_C CContactTemplate *NewL(const CContactItem *aTemplate);

Description

Allocates and constructs a new system template seeded from another one.

Parameters

const CContactItem *aTemplate

The contact template to copy.

Return value

CContactTemplate *

Pointer to the newly created system template.


NewLC()

static IMPORT_C CContactTemplate *NewLC(const CContactItem *aTemplate);

Description

Allocates and constructs a new system template seeded from another one.

Parameters

const CContactItem *aTemplate

The contact template to copy.

Return value

CContactTemplate *

Pointer to the newly created system template. This is left on the cleanup stack.

[Top]


Member functions


Type()

virtual IMPORT_C TUid Type() const;

Description

Implements CContactItem::Type().

Return value

TUid

KUidContactTemplate.