Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: 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:
GroupsJoinedLC(), NewL(), NewL(), NewLC(), NewLC(), Type(), ~CContactCard()

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

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

Inherited from CContactItemPlusGroup:
ExternalizeL(), GroupsJoined(), InternalizeL()


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.