#include <app/MVPbkBaseContactField.h>
class MVPbkBaseContactField |
Public Member Functions | |
---|---|
virtual | ~MVPbkBaseContactField() |
virtual TAny * | BaseContactFieldExtension(TUid) |
pure virtual const MVPbkFieldType * | BestMatchingFieldType() |
pure virtual const MVPbkContactFieldData & | FieldData() |
pure virtual TBool | IsSame(const MVPbkBaseContactField &) |
pure virtual const MVPbkFieldType * | MatchFieldType(TInt) |
pure virtual MVPbkBaseContact & | ParentContact() |
Virtual Phonebook Base contact field interface. An abstract interface Virtual Phonebook read-only contact fields.
const MVPbkFieldType * | BestMatchingFieldType | ( | ) | const [pure virtual] |
Returns the best matching type of the field or NULL if no mapping exists between the native type and virtual phonebook type. This is the same as looping MatchFieldType from priority 0 and getting the first matched type.
Returns: The field type or NULL !FieldType(list) || list.ContainsSame(*FieldType(list))
const MVPbkContactFieldData & | FieldData | ( | ) | const [pure virtual] |
Returns this field's data storage (read-only). The actual data type can be get using the static Cast functions in actual classes.
See also: MVPbkContactFieldTextData MVPbkContactFieldBinaryData MVPbkContactFieldDateTimeData
Returns: This field's data storage (read-only).
TBool | IsSame | ( | const MVPbkBaseContactField & | aOther | ) | const [pure virtual] |
Returns true if this field is the same as another field in the contact instance. Doesn't work for fields from different contact instances. Always use this method instead of direct pointer comparison.
Parameter | Description |
---|---|
aOther | another field inside the contact |
Returns: ETrue if contact is same
const MVPbkFieldType * | MatchFieldType | ( | TInt | aMatchPriority | ) | const [pure virtual] |
Returns this field's type or NULL if no mapping exists between the native type and virtual phonebook type.
Parameter | Description |
---|---|
aMatchPriority | matching priority to use. |
Returns: The field type or NULL !FieldType(list) || list.ContainsSame(*FieldType(list))
MVPbkBaseContact & | ParentContact | ( | ) | const [pure virtual] |
Returns the parent contact where this field is from.
Returns: The parent contact where this field is from.