#include <app/TVPbkStoreContactAnalyzer.h>
class TVPbkStoreContactAnalyzer |
VPbk store contact analyzer.
IMPORT_C | TVPbkStoreContactAnalyzer | ( | const CVPbkContactManager & | aContactManager, |
const MVPbkStoreContact * | aContact | |||
) |
Constructor.
Parameter | Description |
---|---|
aContactManager | Virtual Phonebook contact manager. |
aContact | Store contact. |
IMPORT_C TInt | HasFieldL | ( | VPbkFieldTypeSelectorFactory::TVPbkFieldTypeSelector | aFieldTypeSelector, |
TInt | aStartIndex = 0, | |||
const MVPbkStoreContact * | aContact = NULL | |||
) | const |
Analyses if the contact has a field with type specified in aFieldTypeSelector.
Parameter | Description |
---|---|
aFieldTypeSelector | Predefined field type selector. |
aStartIndex | Starts looking up the specified field from this field index. |
aContact | The contact to analyze. If NULL the contact got from the constructor is used. |
Returns: Field index if contact has field specified in aResId, otherwise KErrNotFound.
IMPORT_C TInt | HasFieldL | ( | VPbkFieldTypeSelectorFactory::TVPbkContactActionTypeSelector | aActionTypeSelector, |
TInt | aStartIndex = 0, | |||
const MVPbkStoreContact * | aContact = NULL | |||
) | const |
Analyses if the contact has a action type with type specified in aActionTypeSelector.
Parameter | Description |
---|---|
aActionTypeSelector | Predefined contact action type selector. |
aStartIndex | Starts looking up the specified field from this field index. |
aContact | The contact to analyze. If NULL the contact got from the constructor is used. |
Returns: Field index if contact has field specified in aResId, otherwise KErrNotFound.
IMPORT_C TBool | IsFieldTypeIncludedL | ( | const MVPbkFieldType & | aFieldType, |
VPbkFieldTypeSelectorFactory::TVPbkFieldTypeSelector | aFieldTypeSelector | |||
) | const |
Checks if the aFieldType is same as specified in aFieldTypeSelector. Returns ETrue is same, otherwise EFalse.
Parameter | Description |
---|---|
aFieldType | The field type to check. |
aFieldTypeSelector | Predefined field type selector. |
Returns: ETrue if the field type is included.
IMPORT_C TBool | IsFieldTypeIncludedL | ( | const MVPbkFieldType & | aFieldType, |
VPbkFieldTypeSelectorFactory::TVPbkContactActionTypeSelector | aActionTypeSelector | |||
) | const |
Checks if the aFieldType is same as specified in aActionTypeSelector. Returns ETrue is same, otherwise EFalse.
Parameter | Description |
---|---|
aFieldType | The field type to check. |
aActionTypeSelector | Predefined field type selector. |
Returns: ETrue if the field type is included.
IMPORT_C TBool | IsFieldTypeIncludedL | ( | const MVPbkBaseContactField & | aField, |
VPbkFieldTypeSelectorFactory::TVPbkFieldTypeSelector | aFieldTypeSelector | |||
) | const |
Checks if the aField's field type is same as specified in aFieldTypeSelector. Returns ETrue is same, otherwise EFalse.
Parameter | Description |
---|---|
aField | The field whose type to check. |
aFieldTypeSelector | Selector's resource id. |
Returns: ETrue if the field type is included.
IMPORT_C TBool | IsFieldTypeIncludedL | ( | const MVPbkBaseContactField & | aField, |
VPbkFieldTypeSelectorFactory::TVPbkContactActionTypeSelector | aActionTypeSelector | |||
) | const |
Checks if the aField's field type is same as specified in aActionTypeSelector. Returns ETrue is same, otherwise EFalse.
Parameter | Description |
---|---|
aField | The field whose type to check. |
aActionTypeSelector | Selector's resource id. |
Returns: ETrue if the field type is included.
IMPORT_C TBool | IsFieldTypeSupportedL | ( | VPbkFieldTypeSelectorFactory::TVPbkFieldTypeSelector | aFieldTypeSelector, |
const MVPbkStoreContact * | aContact = NULL | |||
) | const |
Analyses if the contact supports field with type specified in aFieldTypeSelector.
Parameter | Description |
---|---|
aFieldTypeSelector | Predefined field type selector. |
aContact | The contact to analyze. If NULL the contact got from constructor is used. |
Returns: ETrue if the field type is supported by the contact, otherwise EFalse.
IMPORT_C TBool | IsFieldTypeSupportedL | ( | VPbkFieldTypeSelectorFactory::TVPbkContactActionTypeSelector | aActionTypeSelector, |
const MVPbkStoreContact * | aContact = NULL | |||
) | const |
Analyses if the contact supports action types with type specified in aActionTypeSelector.
Parameter | Description |
---|---|
aActionTypeSelector | Predefined contact action type selector. |
aContact | The contact to analyze. If NULL the contact got from constructor is used. |
Returns: ETrue if the action type is supported by the contact, otherwise EFalse.