Public Member Functions | |
---|---|
void | DoValidateFieldContentL(MVPbkStoreContactField &) |
IMPORT_C TBool | IsFieldTypeIncludedInContactL(const MVPbkFieldTypeList &, const MVPbkBaseContact &, TResourceReader &) |
IMPORT_C TBool | IsFieldTypeIncludedL(const MVPbkFieldTypeList &, const MVPbkBaseContactField &, TResourceReader &) |
IMPORT_C const MVPbkFieldType * | MatchFieldType(const MVPbkFieldTypeList &, const MVPbkBaseContactField &) |
IMPORT_C TBool | VerifySyncronizationFieldL(RFs &, const MVPbkFieldTypeList &, MVPbkStoreContact &) |
Utilities for contact management.
void | DoValidateFieldContentL | ( | MVPbkStoreContactField & | aSyncField | ) |
IMPORT_C TBool | IsFieldTypeIncludedInContactL | ( | const MVPbkFieldTypeList & | aFieldTypeList, |
const MVPbkBaseContact & | aContact, | |||
TResourceReader & | aResourceReader | |||
) |
Checks whether the contact contains a field that matches to given field type selector.
Parameter | Description |
---|---|
aFieldTypeList | A field type list for matching aField. |
aContact | The contact whose fields are cheked. |
aResourceReader | A reader to VPBK_FIELD_TYPE_SELECTOR in VPbkFieldType.rh. |
Returns: ETrue If field type is included.
IMPORT_C TBool | IsFieldTypeIncludedL | ( | const MVPbkFieldTypeList & | aFieldTypeList, |
const MVPbkBaseContactField & | aField, | |||
TResourceReader & | aResourceReader | |||
) |
Checks if aField matches the required field type from aFieldTypeList and the field type of aField matches to field type selector.
Parameter | Description |
---|---|
aFieldTypeList | A field type list for matching aField. |
aField | The field whose type to check. |
aResourceReader | A reader to VPBK_FIELD_TYPE_SELECTOR in VPbkFieldType.rh. |
Returns: ETrue If field type is included.
IMPORT_C const MVPbkFieldType * | MatchFieldType | ( | const MVPbkFieldTypeList & | aFieldTypeList, |
const MVPbkBaseContactField & | aField | |||
) |
Returns the field type if aField matches one of the aFieldTypeList elements otherwise returns NULL.
Parameter | Description |
---|---|
aFieldTypeList | The field type list to use. |
aField | The field whose type to match. |
Returns: The matched field type.
IMPORT_C TBool | VerifySyncronizationFieldL | ( | RFs & | aFs, |
const MVPbkFieldTypeList & | aSupportedFieldTypeList, | |||
MVPbkStoreContact & | aContact | |||
) |
Verifies the existance of the syncronization field.
The data for the fields are defined in VPbkSyncConstants.h. Adds the field with the default value if not present. If the syncronization field is empty assigns a default value. If field contains invalid data default value is assigned.
Parameter | Description |
---|---|
aFs | A handle to an open file handle. |
aSupportedFieldTypeList | Field types supported by the store. See MVPbkContactStoreProperties::SupportedFields. |
aContact | A contact whose syncronization field and content is verified. |