|
|
|
|
Location:
CNTITEM.H
Link against: cntmodel.lib
class CContactOwnCard : public CContactItemPlusGroup;
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.
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().
CBase - Base class for all classes to be instantiated on the heap
CContactItem - The abstract base class for contact cards, templates and groups
CContactItemPlusGroup - Abstract base class for
CContactOwnCard - Own card
Defined in CContactOwnCard:
GroupsJoinedLC(), NewL(), NewL(), NewLC(), NewLC(), Type(), ~CContactOwnCard()
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()
IMPORT_C ~CContactOwnCard();
Frees all resources owned by the own card, prior to its destruction.
static IMPORT_C CContactOwnCard *NewL();
Allocates and constructs a new own card.
Note: own cards should normally be constructed using the factory functions provided in class CContactDatabase, for example CreateOwnCardL().
|
static IMPORT_C CContactOwnCard *NewLC();
Allocates and constructs a new own card.
Note: own cards should normally be constructed using the factory functions provided in class CContactDatabase, for example CreateOwnCardL().
|
static IMPORT_C CContactOwnCard *NewL(const CContactItem *aTemplate);
Allocates and constructs a new own card whose field set is seeded from a template.
Note: own cards should normally be constructed using the factory functions provided in class CContactDatabase, for example CreateOwnCardL().
|
|
static IMPORT_C CContactOwnCard *NewLC(const CContactItem *aTemplate);
Allocates and constructs a new own card whose field set is seeded from a template.
Note: own cards should normally be constructed using the factory functions provided in class CContactDatabase, for example CreateOwnCardL().
|
|
virtual IMPORT_C TUid Type() const;
Implements CContactItem::Type().
|
IMPORT_C CContactIdArray *GroupsJoinedLC() const;
Returns a pointer to a list of contact item IDs which identify the groups to which the current own card belongs.
|