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.
Public Member Functions | |
---|---|
IMPORT_C TPtrC | GetTemplateLabelL() |
IMPORT_C void | SetTemplateLabelL(const TDesC &) |
Protected Member Functions | |
---|---|
IMPORT_C TBool | HasItemLabelField() |
IMPORT_C CContactCardTemplate * | NewL() |
IMPORT_C CContactCardTemplate * | NewL(const CContactItem *) |
IMPORT_C CContactCardTemplate * | NewLC() |
IMPORT_C CContactCardTemplate * | NewLC(const CContactItem *) |
IMPORT_C void | ReservedFunction1() |
IMPORT_C void | ReservedFunction2() |
IMPORT_C TUid | Type() |
Private Member Functions | |
---|---|
CContactCardTemplate() |
Inherited Enumerations | |
---|---|
CContactItem:@338 |
IMPORT_C CContactCardTemplate * | NewL | ( | const CContactItem * | aTemplate | ) | [protected, static] |
const CContactItem * aTemplate |
IMPORT_C CContactCardTemplate * | NewLC | ( | const CContactItem * | aTemplate | ) | [protected, static] |
const CContactItem * aTemplate |
IMPORT_C void | ReservedFunction1 | ( | ) | [protected] |
Intended usage: Reserved to preserve future BC
IMPORT_C void | ReservedFunction2 | ( | ) | [protected] |
Intended usage: Reserved to preserve future BC
IMPORT_C void | SetTemplateLabelL | ( | const TDesC & | aLabel | ) |
const TDesC & aLabel |
IMPORT_C TUid | Type | ( | ) | const [protected, virtual] |
Gets the contact item's type.
The contact item's type.