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.
Public Member Functions | |
---|---|
~CContentType() | |
IMPORT_C void | AddFieldTypeL(TFieldType) |
IMPORT_C TBool | ContainsFieldType(TFieldType) |
void | ExternalizeL(RWriteStream &) |
IMPORT_C TFieldType | FieldType(TInt) |
IMPORT_C TInt | FieldTypeCount() |
void | InternalizeAdditionalUidsL(TInt, RReadStream &) |
void | InternalizeL(RReadStream &) |
IMPORT_C TBool | IsEqual(const CContentType &) |
IMPORT_C TBool | IsEqualForSyncUpdate(const CContentType &) |
IMPORT_C TUid | Mapping() |
IMPORT_C CContentType * | NewL() |
IMPORT_C CContentType * | NewL(TFieldType, TUid) |
IMPORT_C CContentType * | NewL(const CContentType &) |
CContentType * | NewLC(RReadStream &) |
IMPORT_C void | RemoveFieldType(TFieldType) |
void | Reset() |
IMPORT_C void | SetMapping(TUid) |
IMPORT_C TBool | SupportsMultipleLines() |
IMPORT_C TBool | operator==(const CContentType &) |
Private Member Functions | |
---|---|
CContentType() | |
CContentType(TUid) | |
void | CloneL(const CContentType &) |
void | ConstructL() |
Private Attributes | |
---|---|
CArrayFix< TUid > * | iFieldTypes |
TUid | iMapping |
IMPORT_C void | AddFieldTypeL | ( | TFieldType | aFieldType | ) |
TFieldType aFieldType |
void | CloneL | ( | const CContentType & | aContentType | ) | [private] |
const CContentType & aContentType |
IMPORT_C TBool | ContainsFieldType | ( | TFieldType | aFieldType | ) | const |
TFieldType aFieldType |
void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
RWriteStream & aStream |
void | InternalizeAdditionalUidsL | ( | TInt | aCount, |
RReadStream & | aStream | |||
) |
TInt aCount | |
RReadStream & aStream |
IMPORT_C TBool | IsEqual | ( | const CContentType & | aType | ) | const |
const CContentType & aType |
IMPORT_C TBool | IsEqualForSyncUpdate | ( | const CContentType & | aType | ) | const |
const CContentType & aType |
IMPORT_C CContentType * | NewL | ( | TFieldType | aFieldType, |
TUid | aMapping = KNullUid | |||
) | [static] |
TFieldType aFieldType | |
TUid aMapping = KNullUid |
IMPORT_C CContentType * | NewL | ( | const CContentType & | aContentType | ) | [static] |
const CContentType & aContentType |
CContentType * | NewLC | ( | RReadStream & | aStream | ) | [static] |
RReadStream & aStream |
IMPORT_C void | RemoveFieldType | ( | TFieldType | aFieldType | ) |
TFieldType aFieldType |
IMPORT_C TBool | operator== | ( | const CContentType & | aType | ) | const |
const CContentType & aType |