Location:
cntitem.h
Link against: cntmodel.lib
CContactOwnCard
Supported from 6.0
Own card. An own card is a contact card which contains information
about the device's owner. This can be sent to another compatible electronic
device as a vCard. The contact database recognises a single own
card — referred to as the current own card; its ID is returned by
CContactDatabase::OwnCardId()
. Like a contact card, an own card
can be a member of one or more contact card groups. The own card type is
identified by a UID of KUidContactOwnCard
, as returned by
Type()
.
Own cards can be constructed using either
CContactDatabase::CreateOwnCardLC()
or
CreateOwnCardL()
. These functions create an own card, based on the
system template, add it to the database, set it as the database's current own
card and return a pointer to it. To change the database's current own card, use
CContactDatabase::SetOwnCardL()
.
|
Defined in CContactOwnCard
:
GroupsJoinedLC()
, NewL()
, NewLC()
, Type()
, ~CContactOwnCard()
Inherited from CBase
:
operator new()
Inherited from CContactItem
:
AccessCount()
,
AddFieldL()
,
CardFields()
,
DecAccessCount()
,
Id()
,
IncAccessCount()
,
InsertFieldL()
,
IsDeletable()
,
IsDeleted()
,
IsHidden()
,
IsSystem()
,
LastModified()
,
RemoveField()
,
SetDeleteFlag()
,
SetDeleted()
,
SetHidden()
,
SetLastModified()
,
SetSystem()
,
SetTemplateRefId()
,
SetUidStringL()
,
TemplateRefId()
,
UidStringL()
,
UpdateFieldSet()
Inherited from CContactItemPlusGroup
:
GroupsJoined()
static CContactOwnCard* NewL();
static CContactOwnCard* NewL(const CContactItem *aTemplate);
Allocates and constructs a new own card —
overloaded function. Its field set may be seeded from a template. The second
overload takes a copy of aTemplate
— it does not
take ownership of it.
Note
Own cards should normally be constructed using the factory
functions provided in class CContactDatabase
, for example
CreateOwnCardL()
.
|
|
static CContactOwnCard* NewLC();
static CContactOwnCard* NewLC(const CContactItem *aTemplate);
Allocates and constructs a new own card —
overloaded function. Its field set may be seeded from a template. The pointer
to the object is left on the cleanup stack. The second overload takes a copy of
aTemplate
— it does not take ownership of it.
Note
Own cards should normally be constructed using the factory
functions provided in class CContactDatabase
, for example
CreateOwnCardLC()
.
|
|
~CContactOwnCard();
The destructor frees all resources owned by the own card, prior to its destruction.
TUid Type() const;
Implements the pure virtual function inherited from the base
class CContactItem
. Returns
KUidContactOwnCard
.
|
CContactIdArray* GroupsJoinedLC() const;
Returns a pointer to a list of contact item IDs which identify the groups to which the current own card belongs.
|