EPOC   SDK Home Glossary Indexes Previous Next Up

CContactCard class


Contents


CContactCard class — Contact item implementation

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: Contains the details for a single contact.

Defined in

cntitem.h

Link against

cntmodel.lib

Description

A concrete class derived from CContactItem. It implements the pure virtual Type() function. Contact cards may be constructed using a template.


Allocation and construction


NewL() — Allocate and construct

static CContactCard* NewL();

static CContactCard* NewLC();

Description

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

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

Return value

CContactCard*

Pointer to the newly created contact card.


NewL() — Allocate and construct using template

static CContactCard* NewL(const CContactItem *aTemplate);

static CContactCard* NewLC(const CContactItem *aTemplate);

Description

Creates a new CContactCard whose field set is seeded from the specified template.

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

Arguments

const CContactItem *aTemplate

The template to use.

Return value

CContactCard*

Pointer to the newly created contact card.


Type() — Get type

TUid Type() const;

Description

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

Return value

TUid

KUidContactCard.

EPOC       SDK Home Glossary Indexes Previous Next Up