class CContactItemFieldSet : public CBase |
A contact item's field set. The field set owns an array of contact item fields (CContactItemFields). The field set is owned by a contact item, and can be retrieved using CContactItem::CardFields(). Use functions in class CContactItem to add and remove fields to/from the field set.
A field set can contain more than one field of the same type, but this is not advisable as it may cause problems when synchronising the contacts database.
Private Member Functions | |
---|---|
CContactItemFieldSet() | |
void | ConstructL() |
const CContactItemField * | FindById(TInt) |
HBufC * | LoadTextStreamLC(RReadStream &) |
TInt | MatchTemplateField(const CContentType &, TUint, TBool &) |
void | NonZeroFieldText(TFieldType, TDes &) |
void | RestoreAndAddTemplateL(CStreamStore &, TStreamId, CStreamStore *, const CContactItemViewDef &, const CContactItem *, RReadStream &, CContactTables *, RArray< TInt > *) |
void | RestoreL(CStreamStore &, TStreamId, CStreamStore *, const CContactItemViewDef &, const CContactItem *, RReadStream &, CContactTables *, RArray< TInt > *) |
void | SetFieldId(CContactItemField &) |
IMPORT_C TStreamId | StoreL(CStreamStore &, const CContactItem *, RWriteStream &, CStreamStore &, CContactTables *) |
Private Attributes | |
---|---|
CArrayPtr< CContactItemField > * | iFields |
IMPORT_C CContactItemFieldSet & | AddL | ( | CContactItemField & | aField | ) |
CContactItemField & aField |
CArrayFix< TFieldHeader > * | ConstructFieldHeaderArrayLC | ( | RWriteStream & | aTextStream, |
CStreamStore & | aBlobStore | |||
) |
RWriteStream & aTextStream | |
CStreamStore & aBlobStore |
TBool | ContainsFieldTypeMapping | ( | const CContentType & | aBaseFieldContentType, |
const TFieldType & | aContactFieldType | |||
) | const |
const CContentType & aBaseFieldContentType | |
const TFieldType & aContactFieldType |
TInt | Count | ( | ) | const [inline] |
Gets the number of fields in the field set.
The number of fields in the field set.
void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
RWriteStream & aStream |
TInt | FieldText | ( | TFieldType | aFieldType, |
TDes & | aText, | |||
TInt | aStartPosition | |||
) | const |
TFieldType aFieldType | |
TDes & aText | |
TInt aStartPosition |
TInt | FieldTypeCount | ( | const CContactItemFieldSet & | aSystemTemplateFields, |
TInt | aStartIndex, | |||
const CContactItemField & | aField | |||
) | const |
const CContactItemFieldSet & aSystemTemplateFields | |
TInt aStartIndex | |
const CContactItemField & aField |
TInt | Find | ( | TFieldType | aFieldType | ) | const [inline] |
Finds the first field in the field set with the specified field type.
If found, the index of the field within the field set, or KErrNotFound if not found.
TFieldType aFieldType | The field type of interest. |
TInt | Find | ( | TFieldType | aFieldType, |
TUid | aMapping | |||
) | const [inline] |
Finds the first field in the field set containing both the content type mapping and the field type specified.
If found, the index of the field within the field set, or KErrNotFound if not found.
TFieldType aFieldType | The field type of interest. |
TUid aMapping | The content type mapping of interest. |
IMPORT_C TInt | FindNext | ( | TFieldType | aFieldType, |
TInt | aStartPos = KContactFieldSetSearchAll | |||
) | const |
TFieldType aFieldType | |
TInt aStartPos = KContactFieldSetSearchAll |
IMPORT_C TInt | FindNext | ( | TFieldType | aFieldType, |
TUid | aMapping, | |||
TInt | aStartPos = KContactFieldSetSearchAll | |||
) | const |
TFieldType aFieldType | |
TUid aMapping | |
TInt aStartPos = KContactFieldSetSearchAll |
IMPORT_C void | InsertL | ( | TInt | aIndex, |
CContactItemField & | aField | |||
) |
TInt aIndex | |
CContactItemField & aField |
HBufC * | LoadTextStreamLC | ( | RReadStream & | aStream | ) | [private, static] |
RReadStream & aStream |
TInt | MatchTemplateField | ( | const CContentType & | aContentType, |
TUint | aUserFlags, | |||
TBool & | aExactMatch | |||
) | const [private] |
const CContentType & aContentType | |
TUint aUserFlags | |
TBool & aExactMatch |
void | NonZeroFieldText | ( | TFieldType | aFieldType, |
TDes & | aText | |||
) | const [private] |
TFieldType aFieldType | |
TDes & aText |
void | RestoreAndAddTemplateL | ( | CStreamStore & | aStore, |
TStreamId | aId, | |||
CStreamStore * | aBlobStore, | |||
const CContactItemViewDef & | aViewDef, | |||
const CContactItem * | aTemplate, | |||
RReadStream & | aReadStream, | |||
CContactTables * | aContactsTable, | |||
RArray< TInt > * | aEmailIdArray | |||
) | [private] |
CStreamStore & aStore | |
TStreamId aId | |
CStreamStore * aBlobStore | |
const CContactItemViewDef & aViewDef | |
const CContactItem * aTemplate | |
RReadStream & aReadStream | |
CContactTables * aContactsTable | |
RArray< TInt > * aEmailIdArray |
IMPORT_C void | RestoreL | ( | CStreamStore & | aStore, |
TStreamId | anId, | |||
CStreamStore * | aBlobStore, | |||
const CContactItemViewDef & | aViewDef, | |||
RReadStream & | aReadStream | |||
) |
CStreamStore & aStore | |
TStreamId anId | |
CStreamStore * aBlobStore | |
const CContactItemViewDef & aViewDef | |
RReadStream & aReadStream |
IMPORT_C void | RestoreL | ( | CStreamStore & | aStore, |
TStreamId | anId, | |||
CStreamStore * | aBlobStore, | |||
const CContactItemViewDef & | aViewDef, | |||
const CContactItem * | aTemplate, | |||
HBufC * | aTextBuf | |||
) |
CStreamStore & aStore | |
TStreamId anId | |
CStreamStore * aBlobStore | |
const CContactItemViewDef & aViewDef | |
const CContactItem * aTemplate | |
HBufC * aTextBuf |
void | RestoreL | ( | CStreamStore & | aStore, |
TStreamId | anId, | |||
CStreamStore * | aBlobStore, | |||
const CContactItemViewDef & | aViewDef, | |||
const CContactItem * | aTemplate, | |||
RReadStream & | aReadStream, | |||
CContactTables * | aContactsTable, | |||
RArray< TInt > * | aEmailIdArray | |||
) | [private] |
CStreamStore & aStore | |
TStreamId anId | |
CStreamStore * aBlobStore | |
const CContactItemViewDef & aViewDef | |
const CContactItem * aTemplate | |
RReadStream & aReadStream | |
CContactTables * aContactsTable | |
RArray< TInt > * aEmailIdArray |
void | SetFieldId | ( | CContactItemField & | aField | ) | [private] |
CContactItemField & aField |
IMPORT_C TStreamId | StoreL | ( | CStreamStore & | aStore, |
RWriteStream & | aTextStream, | |||
CStreamStore & | aBlobStore | |||
) |
CStreamStore & aStore | |
RWriteStream & aTextStream | |
CStreamStore & aBlobStore |
TStreamId | StoreL | ( | CStreamStore & | aStore, |
RWriteStream & | aTextStream, | |||
CStreamStore & | aBlobStore, | |||
CContactTables * | aTables | |||
) |
CStreamStore & aStore | |
RWriteStream & aTextStream | |
CStreamStore & aBlobStore | |
CContactTables * aTables |
IMPORT_C TStreamId | StoreL | ( | CStreamStore & | aStore, |
const CContactItem * | aTemplate, | |||
RWriteStream & | aStream, | |||
CStreamStore & | aBlobStore, | |||
CContactTables * | aTables | |||
) | [private] |
CStreamStore & aStore | |
const CContactItem * aTemplate | |
RWriteStream & aStream | |
CStreamStore & aBlobStore | |
CContactTables * aTables |
IMPORT_C void | UpdateFieldL | ( | const CContactItemField & | aField, |
TInt | aMatchCount | |||
) |
const CContactItemField & aField | |
TInt aMatchCount |
IMPORT_C void | UpdateFieldSyncL | ( | const CContactItemField & | aField, |
TInt | aMatchCount | |||
) |
const CContactItemField & aField | |
TInt aMatchCount |
const CContactItemField & | operator[] | ( | TInt | aIndex | ) | const [inline] |
Gets the field located at a specified position in the field set.
A const reference to an element in the array.
TInt aIndex | The position of the field in the field set. This is relative to zero. It must be non-negative and less than the number of objects in the array, otherwise the operator raises a panic. |
CContactItemField & | operator[] | ( | TInt | aIndex | ) | [inline] |
Gets the field located at a specified position in the field set.
A non-const reference to an element in the array.
TInt aIndex | The position of the field in the field set. This is relative to zero. It must be non-negative and less than the number of objects in the array, otherwise the operator raises a panic. |