Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <CNTITEM.H>
Link against: cntmodel.lib

Class CContactCard

class CContactCard : public CContactItemPlusGroup;

Description

A contact card.

Implements the Type() function declared in class CContactItem. Contact cards may optionally be constructed from a template.

Derivation

Members

Defined in CContactCard:

Inherited from CBase:

Inherited from CContactItem:

Inherited from CContactItemPlusGroup:


Construction and destruction


~CContactCard()

IMPORT_C ~CContactCard();

Description

Frees all resources owned by the contact card, prior to its destruction.


NewL()

static IMPORT_C CContactCard *NewL();

Description

Allocates and constructs a new contact card.

Return value

CContactCard *

Pointer to the newly created contact card.


NewLC()

static IMPORT_C CContactCard *NewLC();

Description

Allocates and constructs a new contact card.

Return value

CContactCard *

Pointer to the newly created contact card. This is left on the cleanup stack.


NewL()

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

Description

Allocates and constructs a new contact card whose field set is seeded from a template.

Parameters

const CContactItem *aTemplate

Pointer to the template whose field set and field data are copied into the new contact card.

Return value

CContactCard *

Pointer to the newly created contact card.


NewLC()

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

Description

Allocates and constructs a new contact card whose field set is seeded from a template.

Parameters

const CContactItem *aTemplate

Pointer to the template whose field set and field data are copied into the new contact card.

Return value

CContactCard *

Pointer to the newly created contact card. This is left on the cleanup stack.

[Top]


Member functions


Type()

virtual IMPORT_C TUid Type() const;

Description

Implements CContactItem::Type().

Return value

TUid

KUidContactCard.


GroupsJoinedLC()

IMPORT_C CContactIdArray *GroupsJoinedLC() const;

Description

Returns a pointer to a list of contact item IDs which identify the groups to which this contact card belongs.

Return value

CContactIdArray *

A pointer to a copy of the array of groups IDs to which this contact card belongs. This array is empty if the card is not a member of any groups. The caller takes ownership of this object, so is responsible for its deletion.