EPOC   SDK Home Glossary Indexes Previous Next Up

CContactTemplate class


Contents


CContactTemplate class — Contact item template

Section Contents


Overview

Compatibility

Applications that use this class will not work correctly on a version of EPOC earlier than ER5.

Derivation

CBase

Abstract: CBase behaviour.

CContactItem

Abstract: Contact item.

Defined in

cntitem.h

Link against

cntmodel.lib

Description

A template is a contact item which can be used to seed the initial field set for other contact items.

Only the single system template is fully supported. The function CContactDatabase::TemplateId() returns the ID of the system template only, so other templates stored in the database can only be retrieved if you already know their TContactItemId.


Allocation and construction


NewL() — Allocate and construct

static CContactTemplate* NewL();

static CContactTemplate* NewLC();

Description

Use these functions to allocate and construct a new contact template.

If the new contact template is successfully constructed, NewLC() leaves it on the cleanup stack.

Return value

CContactTemplate*

Pointer to the newly created contact template.


NewL() — Allocate and construct from a template

static CContactTemplate* NewL(const CContactItem *aTemplate);

static CContactTemplate* NewLC(const CContactItem *aTemplate);

Description

Creates a new CContactTemplate seeded from another template.

If the new contact template is successfully constructed, NewLC() leaves it on the cleanup stack.

Arguments

const CContactItem *aTemplate

The contact template to use as the seed.

Return value

CContactTemplate*

Pointer to the newly created contact template.


Type() — Get type

TUid Type() const;

Description

Implements the pure virtual function inherited from the base class CContactItem. Returns KUidContactTemplate.

Return value

TUid

KUidContactTemplate.

EPOC       SDK Home Glossary Indexes Previous Next Up