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.

Inherits from

Constructor & Destructor Documentation

CVPbkSortOrder()

CVPbkSortOrder ( ) [private, inline]

~CVPbkSortOrder()

~CVPbkSortOrder ( )

Destructor.

Member Functions Documentation

ConstructL(TResourceReader &, const MVPbkFieldTypeList &)

void ConstructL ( TResourceReader & aReader,
const MVPbkFieldTypeList & aMasterFieldTypeList
) [private, inline]

Parameters

TResourceReader & aReader
const MVPbkFieldTypeList & aMasterFieldTypeList

ConstructL(const MVPbkFieldTypeList &)

void ConstructL ( const MVPbkFieldTypeList & aSortOrder ) [private, inline]

Parameters

const MVPbkFieldTypeList & aSortOrder

ContainsSame(const MVPbkFieldType &)

TBool ContainsSame ( const MVPbkFieldType & aFieldType ) const

Parameters

const MVPbkFieldType & aFieldType

FieldTypeAt(TInt)

const MVPbkFieldType & FieldTypeAt ( TInt aIndex ) const

Parameters

TInt aIndex

FieldTypeCount()

TInt FieldTypeCount ( ) const

Find(TInt)

const MVPbkFieldType * Find ( TInt aFieldTypeResId ) const

Parameters

TInt aFieldTypeResId

FindMatch(const TVPbkFieldVersitProperty &, TInt)

const MVPbkFieldType * FindMatch ( const TVPbkFieldVersitProperty & aMatchProperty,
TInt aMatchPriority
) const

Parameters

const TVPbkFieldVersitProperty & aMatchProperty
TInt aMatchPriority

FindMatch(TVPbkNonVersitFieldType)

const MVPbkFieldType * FindMatch ( TVPbkNonVersitFieldType aNonVersitType ) const

Parameters

TVPbkNonVersitFieldType aNonVersitType

MaxMatchPriority()

TInt MaxMatchPriority ( ) const

NewL(TResourceReader &, const MVPbkFieldTypeList &)

IMPORT_C CVPbkSortOrder * NewL ( TResourceReader & aReader,
const MVPbkFieldTypeList & aMasterFieldTypeList
) [static]

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 &)

IMPORT_C CVPbkSortOrder * NewL ( const MVPbkFieldTypeList & aSortOrder ) [static]

Creates a new sort order from an existing one.

Parameters

const MVPbkFieldTypeList & aSortOrder The sort order to duplicate.

Set(const MVPbkFieldTypeList &)

IMPORT_C void Set ( const MVPbkFieldTypeList & aSortOrder )

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

RPointerArray < MVPbkFieldType > iSortOrder [private]