CContentType Class Reference

class CContentType : public CBase

The content type for a contact item field.

The content type identifies the field's type and the vCard property which the field maps to. It is owned by the field. Field types are defined as UIDs in cntdef.h.

The vCard mapping is optional. It should be specified if the field type alone is not enough to identify the mapping. The possible values for the vCard mapping are defined as UIDs in cntdef.h.

Each field is uniquely identified by the combination of UIDs contained in the content type.

Inherits from

Constructor & Destructor Documentation

CContentType()

CContentType()[private]

CContentType(TUid)

CContentType(TUidaMapping)[private]

Parameters

TUid aMapping

~CContentType()

IMPORT_C~CContentType()

Member Functions Documentation

AddFieldTypeL(TFieldType)

IMPORT_C voidAddFieldTypeL(TFieldTypeaFieldType)

Parameters

TFieldType aFieldType

CloneL(const CContentType &)

voidCloneL(const CContentType &aContentType)[private]

Parameters

const CContentType & aContentType

ConstructL()

voidConstructL()[private]

ContainsFieldType(TFieldType)

IMPORT_C TBoolContainsFieldType(TFieldTypeaFieldType)const

Parameters

TFieldType aFieldType

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

FieldType(TInt)

IMPORT_C TFieldTypeFieldType(TIntaIndex)const

Parameters

TInt aIndex

FieldTypeCount()

IMPORT_C TIntFieldTypeCount()const

InternalizeAdditionalUidsL(TInt, RReadStream &)

voidInternalizeAdditionalUidsL(TIntaCount,
RReadStream &aStream
)

Parameters

TInt aCount
RReadStream & aStream

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

IsEqual(const CContentType &)

IMPORT_C TBoolIsEqual(const CContentType &aType)const

Parameters

const CContentType & aType

IsEqualForSyncUpdate(const CContentType &)

IMPORT_C TBoolIsEqualForSyncUpdate(const CContentType &aType)const

Parameters

const CContentType & aType

Mapping()

IMPORT_C TUidMapping()const

NewL()

IMPORT_C CContentType *NewL()[static]

NewL(TFieldType, TUid)

IMPORT_C CContentType *NewL(TFieldTypeaFieldType,
TUidaMapping = KNullUid
)[static]

Parameters

TFieldType aFieldType
TUid aMapping = KNullUid

NewL(const CContentType &)

IMPORT_C CContentType *NewL(const CContentType &aContentType)[static]

Parameters

const CContentType & aContentType

NewLC(RReadStream &)

CContentType *NewLC(RReadStream &aStream)[static]

Parameters

RReadStream & aStream

RemoveFieldType(TFieldType)

IMPORT_C voidRemoveFieldType(TFieldTypeaFieldType)

Parameters

TFieldType aFieldType

Reset()

voidReset()

SetMapping(TUid)

IMPORT_C voidSetMapping(TUidaMapping)

Parameters

TUid aMapping

SupportsMultipleLines()

IMPORT_C TBoolSupportsMultipleLines()const

operator==(const CContentType &)

IMPORT_C TBooloperator==(const CContentType &aType)const

Parameters

const CContentType & aType

Member Data Documentation

CArrayFix< TUid > * iFieldTypes

CArrayFix< TUid > *iFieldTypes[private]

TUid iMapping

TUid iMapping[private]