|
||
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 CContactGroup, CContactCard and CContactOwnCard
CContactOwnCard
- Own card
Defined in CContactOwnCard
:
GroupsJoinedLC()
Returns a pointer to a list of contact item IDs which identify the groups to which the current own card belongsNewL()
Allocates and constructs a new own cardNewL()
Allocates and constructs a new own card whose field set is seeded from a templateNewLC()
Allocates and constructs a new own cardNewLC()
Allocates and constructs a new own card whose field set is seeded from a templateType()
Implements CContactItem::Type()~CContactOwnCard()
Frees all resources owned by the own card, prior to its destructionInherited from CBase
:
Delete()
Deletes the specified objectExtension_()
Extension functionoperator new()
Initialises the object to binary zeroesInherited from CContactItem
:
AccessCount()
Gets the contact item's access countAddFieldL()
Appends a field to the contact item's field setCardFields()
Gets a reference to the contact item's field setDecAccessCount()
Decrements the contact item's access countECompressedGuid
To set the contact item's hidden attributeEDeleted
To set the contact item's Is deleted attributeEHidden
To set the contact item's hidden attributeESystem
To set the contact item's system attributeGuid()
Accessor function for Contact GuidId()
Gets the contact item's IDIncAccessCount()
Increments the contact item's access countInsertFieldL()
Inserts a field into the contact item's field setIsDeletable()
Tests whether the contact item is deletableIsDeleted()
Gets the value of the Is deleted attribute as set by SetDeleted()IsHidden()
Gets the value of the contact item's hidden attributeIsSystem()
Gets the value of the contact item's system attributeLastModified()
Gets the contact item's last modified date/timeRemoveField()
Removes a field from the contact item's field setSetDeleted()
Sets the value of the contact item's Is deleted attributeSetHidden()
Sets the contact item's hidden attributeSetLastModified()
Sets the last modified date/time value stored in the local copy of the contact itemSetSystem()
Sets the contact item's system attributeSetTemplateRefId()
Sets the ID of the template on which this contact item is basedSetUidStringL()
Sets the item's UID stringTemplateRefId()
Gets the ID of the template which was used to create this contact itemUidStringL()
Returns a descriptor which contains the item's UID stringUpdateFieldSet()
Replaces the contact item's field setanonymous
Contact item's attribute flagsInherited from CContactItemPlusGroup
:
ExternalizeL()
Externalises a CContactItemPlusGroup object to a write streamGroupsJoined()
Returns a pointer to a list of contact item IDs which identify the groups to which the derived class object belongsInternalizeL()
Internalises a CContactItemPlusGroup object from a read streamIMPORT_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.
|