CVPbkSortOrder Class Reference
class CVPbkSortOrder : public CBase |
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
CVPbkSortOrder()
CVPbkSortOrder | ( | ) | [private, inline] |
Member Functions Documentation
ConstructL(TResourceReader &, const MVPbkFieldTypeList &)
ConstructL(const MVPbkFieldTypeList &)
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.
|
Parameters
TResourceReader & aReader | Resource reader pointing to a VPBK_FIELD_TYPE_MAPPING_LIST resource. |
const MVPbkFieldTypeList & aMasterFieldTypeList | Master field type list types from the resource are mapped against. |
NewL(const MVPbkFieldTypeList &)
Creates a new sort order from an existing one.
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.
Parameters
const MVPbkFieldTypeList & 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
|
Parameters
TInt aSortOrderLength | Number of field types to reserve space for. |
Member Data Documentation
TInt
iMaxMatchPriority
TInt
| iMaxMatchPriority | [private] |
TInt
iMaxSortOrderLength
TInt
| iMaxSortOrderLength | [private] |
RPointerArray< MVPbkFieldType > iSortOrder
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.