CVPbkSortOrder Class Reference
#include
<app/CVPbkSortOrder.h>
class CVPbkSortOrder : public CBase |
Detailed Description
Virtual Phonebook sort order. This class can be used to create a sort order, which is needed when creating Virtual Phonebook views. The sort order determines how the view is sorted by setting a field type priority list.
Constructor & Destructor Documentation
Member Function Documentation
ContainsSame ( const MVPbkFieldType & )
FieldTypeCount ( )
TInt
| FieldTypeCount | ( | ) | const |
FindMatch ( const TVPbkFieldVersitProperty &, TInt )
FindMatch ( TVPbkNonVersitFieldType )
MaxMatchPriority ( )
TInt
| MaxMatchPriority | ( | ) | const |
NewL ( TResourceReader &, const MVPbkFieldTypeList & )
Constructs new sort order from a VPBK_FIELD_TYPE_MAPPING_LIST resource.
- Exceptions
-
KErrNotFound |
if a matching field type is not found from aFieldTypeList.
|
Parameter | Description | aReader | Resource reader pointing to a VPBK_FIELD_TYPE_MAPPING_LIST resource. |
aMasterFieldTypeList | Master field type list types from the resource are mapped against. |
NewL ( const MVPbkFieldTypeList & )
Creates a new sort order from an existing one.
Parameter | Description | aSortOrder | The sort order to duplicate. |
Set ( const MVPbkFieldTypeList & )
Sets new fields types for this sort order from the list. This will not leave because SetReserveL has to be called in advance to reserve space for sort order field types.
Parameter | Description | aSortOrder | Priority ordered list of field types used as the sort order. SetReserveL called with a proper sort order length. |
SetReserveL ( TInt )
IMPORT_C void | SetReserveL | ( | TInt | aSortOrderLength | ) | |
Reserves aSortOrderLength items for the sort order length. This quarantees that following Set() call will not leave because of memory allocation failure. If more than aSortOrderLength items are provided in following Set() calls, rest of the field types are ignored.
- Exceptions
-
Panics |
if aSortOrderLength <= 0
|
Parameter | Description | aSortOrderLength | Number of field types to reserve space for. |