Location:
CNTITEM.H
Link against: cntmodel.lib
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()
, HasItemLabelField()
, NewL()
, NewL()
, NewLC()
, NewLC()
, ReservedFunction1()
, ReservedFunction2()
, SetTemplateLabelL()
, Type()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Inherited from CContactItem
:
AccessCount()
,
AddFieldL()
,
CardFields()
,
DecAccessCount()
,
ECompressedGuid
,
EDeleted
,
EHidden
,
ESystem
,
ExternalizeL()
,
Guid()
,
Id()
,
IncAccessCount()
,
InsertFieldL()
,
InternalizeL()
,
IsDeletable()
,
IsDeleted()
,
IsHidden()
,
IsSystem()
,
LastModified()
,
RemoveField()
,
SetDeleted()
,
SetHidden()
,
SetLastModified()
,
SetSystem()
,
SetTemplateRefId()
,
SetUidStringL()
,
TemplateRefId()
,
UidStringL()
,
UpdateFieldSet()
,
anonymous
protected: 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.
|