CPbkFieldsInfo Class Reference
#include
<app/CPbkFieldsInfo.h>
class CPbkFieldsInfo : public CBase |
Detailed Description
Phonebook field types collection class. The collection contains CPbkFieldInfo objects that contain Phonebook specific field type information. Each field Phonebook recognizes is associated with field info object. The field info objects are references to elements in this array.
Constructor & Destructor Documentation
Member Function Documentation
AddFieldTypesFromResourceL ( TResourceReader &, TResourceReader &, RArray< const CPbkFieldInfo * > * )
Adds fields from resource readers. Doesn't read or link group information.
Parameter | Description | aPbkResReader | Initialized resource buffer to PHONEBOOK_FIELD_ARRAY |
aCntModelResReader | Initialized resource buffer to ARRAY or FIELDs |
aAddedFieldTypes | If not null the field types that were added are appended to this array. The field types are in the order they were defined in resources. |
Count ( )
IMPORT_C TInt | Count | ( | ) | const |
Returns the count of field infos.
Returns: The count of field information elements in this container.
CreateContactItemFieldDefLC ( const CPbkFieldIdArray * )
Creates contact item field definition from an array of Phonebook field ids.
Parameter | Description | aFieldTypes | Phonebook field types to add into the returned array. If NULL an array matching all fields is returned. |
Returns: A field def array matching <it>at least fields</it> in aFieldTypes. Please note that the returned field definition may also match other fields than those specified.
CreateContactItemViewDefLC ( const CPbkFieldIdArray & )
Creates a contact item view definition from an array of Phonebook field ids.
Parameter | Description | aFieldTypes | Array of Phonebook field types. |
Returns: A new contact item view definition.
Find ( TPbkFieldId )
Search field info by Phonebook field id.
Parameter | Description | aFieldId | Phonebook field id to search from the array |
Returns: The <it>first</it> (there may be several that match) field info object in the field UI presentation order matching aFieldId. Returns NULL if no match is found.
Find ( TPbkFieldId, TPbkFieldLocation )
Search field info by Phonebook field id and location
Parameter | Description | aFieldId | Phonebook field id to search from the array |
aLocation | Field location (home/work/none) to search from the array |
Returns: The field info object (there should be only one) matching aFieldId and aLocation. NULL if no match found.
Find ( const CContactItemField & )
Search a field info matching contact model field.
Parameter | Description | aContactItemField | Contact item field whose match is searched from all field info objects. |
Returns: The field info object matching aContactItemField. NULL if no match is found.
GroupAt ( TInt )
Returns the field info group at aIndex.
Returns: The field info group at aIndex.
GroupCount ( )
IMPORT_C TInt | GroupCount | ( | ) | const |
Returns the count of field info groups.
Returns: The count of field info groups.
Match ( const CContactItemField &, const TPbkMatchPriorityLevel & )
Match ( const MPbkVcardProperty &, const TPbkMatchPriorityLevel & )
NewL ( RResourceFile &, RResourceFile & )
Creates and returns an instance of this class intialised from resources.
Parameter | Description | aPbkResFile | Phonebook's resource file. |
aCntModelResFile | Contact Model's resource file. |
operator[] ( TInt )
Returns the aIndex:th field info. Field info objects are sorted by the field presentation ordering.
Parameter | Description | aIndex | The indexed element in this array. |
Returns: The element in the indexed position in the array.