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

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

Parameters

TResourceReader & aReader
const MVPbkFieldTypeList & aMasterFieldTypeList

ConstructL(const MVPbkFieldTypeList &)

voidConstructL(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(TIntaIndex)const

Parameters

TInt aIndex

FieldTypeCount()

TInt FieldTypeCount()const

Find(TInt)

const MVPbkFieldType *Find(TIntaFieldTypeResId)const

Parameters

TInt aFieldTypeResId

FindMatch(const TVPbkFieldVersitProperty &, TInt)

const MVPbkFieldType *FindMatch(const TVPbkFieldVersitProperty &aMatchProperty,
TIntaMatchPriority
)const

Parameters

const TVPbkFieldVersitProperty & aMatchProperty
TInt aMatchPriority

FindMatch(TVPbkNonVersitFieldType)

const MVPbkFieldType *FindMatch(TVPbkNonVersitFieldTypeaNonVersitType)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 & aReaderResource reader pointing to a VPBK_FIELD_TYPE_MAPPING_LIST resource.
const MVPbkFieldTypeList & aMasterFieldTypeListMaster 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 & aSortOrderThe sort order to duplicate.

Set(const MVPbkFieldTypeList &)

IMPORT_C voidSet(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 & aSortOrderPriority ordered list of field types used as the sort order. SetReserveL called with a proper sort order length.

SetReserveL(TInt)

IMPORT_C voidSetReserveL(TIntaSortOrderLength)

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 aSortOrderLengthNumber 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]