class CContactItem : public CBase |
The abstract base class for contact cards, templates and groups. All contact items are identified by a contact ID, (TContactItemId), have a last modified date/time and own one or more fields (the field set). Contact items also have an access count and attributes (e.g. hidden). Note that fields in a contact item also have attributes. Attribute values specified in the contact item override those in the contained fields. The access count is a record of the number of objects referencing a contact item. A contact item cannot be fully deleted until its access count is zero.
Private Member Functions | |
---|---|
CContactItem() | |
void | ConstructL() |
void | ConstructL(const CContactItem *) |
TBool | GuidIsCompressed() |
void | MakeUidStringL(TInt64) |
TInt | NumberOfFieldsToStore() |
IMPORT_C void | SetHasCompressedGuid(TBool) |
Public Member Enumerations | |
---|---|
enum | anonymous { ESystem = 0x01, EHidden = 0x02, ECompressedGuid = 0x04, EDeleted = 0x08 } |
Private Attributes | |
---|---|
TUint32 | iAccessCount |
TUint32 | iAttributes |
TTime | iCreationDate |
CContactItemFieldSet * | iFieldSet |
HBufC * | iGuid |
TContactItemId | iId |
TTime | iLastModified |
TContactItemId | iTemplateRefId |
TInt | AccessCount | ( | ) | const [inline] |
Gets the contact item's access count.
The item's access count.
IMPORT_C void | AddFieldL | ( | CContactItemField & | aField | ) |
CContactItemField & aField |
void | ConstructL | ( | const CContactItem * | aTemplate | ) | [private] |
const CContactItem * aTemplate |
void | ExternalizeL | ( | RWriteStream & | aStream | ) | const [virtual] |
RWriteStream & aStream |
TPtrC | Guid | ( | ) | [inline] |
Accessor function for Contact Guid. This is used to cache contact items that are added during a sync. Guid
IMPORT_C void | InsertFieldL | ( | CContactItemField & | aField, |
TInt | aFieldPos | |||
) |
CContactItemField & aField | |
TInt aFieldPos |
void | InternalizeL | ( | RReadStream & | aStream | ) | [virtual] |
RReadStream & aStream |
TBool | IsDeletable | ( | ) | [inline] |
Tests whether the contact item is deletable.
This is true if the item's access count is zero.
ETrue if deletable, EFalse if not deletable.
void | MakeUidStringL | ( | TInt64 | aMachineUniqueId | ) | [private] |
TInt64 aMachineUniqueId |
CContactItem * | NewLC | ( | RReadStream & | aStream | ) | [static] |
RReadStream & aStream |
TStreamId | PopulateStoreL | ( | CStreamStore & | aStore, |
CArrayFix< TFieldHeader > & | aFieldHeaderArray | |||
) | const |
CStreamStore & aStore | |
CArrayFix< TFieldHeader > & aFieldHeaderArray |
IMPORT_C void | RestoreTemplateFieldsL | ( | const CContactItemFieldSet & | aSystemTemplateFields, |
const CContactItemFieldSet & | aTemplateFields, | |||
const CContactItemViewDef & | aViewDef | |||
) |
const CContactItemFieldSet & aSystemTemplateFields | |
const CContactItemFieldSet & aTemplateFields | |
const CContactItemViewDef & aViewDef |
IMPORT_C void | SetAccessCount | ( | TUint32 | aAccessCount | ) |
TUint32 aAccessCount |
IMPORT_C void | SetCreationDate | ( | const TTime & | aTime | ) |
const TTime & aTime |
IMPORT_C void | SetHasCompressedGuid | ( | TBool | aCompressed | ) | [private] |
TBool aCompressed |
IMPORT_C void | SetLastModified | ( | const TTime & | aLastModified | ) |
const TTime & aLastModified |
IMPORT_C void | SetTemplateRefId | ( | TContactItemId | aUid | ) |
TContactItemId aUid |
IMPORT_C TPtrC | UidStringL | ( | TInt64 | aMachineUniqueId | ) | const |
TInt64 aMachineUniqueId |
IMPORT_C void | UpdateFieldSet | ( | CContactItemFieldSet * | aNewFieldSet | ) |
CContactItemFieldSet * aNewFieldSet |
Contact item's attribute flags
These flags can be used to set the various attributes of a contact item.
ESystem = 0x01 |
To set the contact item's system attribute. |
EHidden = 0x02 |
To set the contact item's hidden attribute. |
ECompressedGuid = 0x04 |
To set the contact item's hidden attribute. |
EDeleted = 0x08 |
To set the contact item's Is deleted attribute. |