|
||
class CContactCardTemplate : public CContactItem;
A contact card template.
This is a contact item containing a set of fields on which new contact items can be based. Templates have a label which is
a string which identifies the template to a user. For instance, 'work template' could indicate a template used to create contact
cards in the style of a work colleague. Contact card templates have a type of KUidContactCardTemplate, as returned by Type()
.
Objects of this class cannot be constructed directly because its constructors are protected. Instead, use either CContactDatabase::CreateContactCardTemplateL()
or CreateContactCardTemplateLC(). These functions create a contact card template, add it to the database, and return a pointer
to it.
The function CContactDatabase::GetCardTemplateIdListL()
gets a list of the IDs of all contact card templates in the database.
CBase
- Base class for all classes to be instantiated on the heap
CContactItem
- The abstract base class for contact cards, templates and groups
CContactCardTemplate
- A contact card template
Defined in CContactCardTemplate
:
GetTemplateLabelL()
Gets the label for a contact card templateHasItemLabelField()
Tests whether a Template label field is presentNewL()
Allocates and constructs a new Contact Card TemplateNewL()
Allocates and constructs a new Contact Card TemplateNewLC()
Allocates and constructs a new Contact Card TemplateNewLC()
Allocates and constructs a new Contact Card TemplateReservedFunction1()
Intended usage: Reserved to preserve future BCReservedFunction2()
Intended usage: Reserved to preserve future BCSetTemplateLabelL()
Changes the label for a contact card templateType()
Gets the contact item's typeInherited 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 attributeExternalizeL()
Externalises a CContactItem object to a write streamGuid()
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 setInternalizeL()
Internalises a CContactItem object from a read streamIsDeletable()
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 flagsprotected: static IMPORT_C CContactCardTemplate *NewL();
Allocates and constructs a new Contact Card Template .
|
protected: static IMPORT_C CContactCardTemplate *NewLC();
Allocates and constructs a new Contact Card Template .
|
protected: static IMPORT_C CContactCardTemplate *NewL(const CContactItem *aTemplate);
Allocates and constructs a new Contact Card Template .
|
|
protected: static IMPORT_C CContactCardTemplate *NewLC(const CContactItem *aTemplate);
Allocates and constructs a new Contact Card Template .
|
|
IMPORT_C void SetTemplateLabelL(const TDesC &aLabel);
Changes the label for a contact card template. The label is initialised when the template is created. The template label is stored in a text field in the template. This field has a unique content type mapping of KUidContactFieldTemplateLabel. By default, this field is the first field in the field set; it must not be moved from this position.
|
|
IMPORT_C TPtrC GetTemplateLabelL();
Gets the label for a contact card template.
|
|
protected: IMPORT_C TBool HasItemLabelField();
Tests whether a Template label field is present.
|
protected: IMPORT_C void ReservedFunction1();
Intended usage: Reserved to preserve future BC
protected: IMPORT_C void ReservedFunction2();
Intended usage: Reserved to preserve future BC
protected: virtual IMPORT_C TUid Type() const;
Gets the contact item's type.
|