MVPbkFieldTypeList Class Reference

#include <app/MVPbkFieldType.h>

class MVPbkFieldTypeList
Public Member Functions
virtual ~MVPbkFieldTypeList()
pure virtual TBool ContainsSame(const MVPbkFieldType &)
pure virtual const MVPbkFieldType &FieldTypeAt(TInt)
pure virtual TInt FieldTypeCount()
virtual TAny *FieldTypeListExtension(TUid)
virtual const MVPbkFieldType *Find(TInt)
pure virtual const MVPbkFieldType *FindMatch(const TVPbkFieldVersitProperty &, TInt)
pure virtual const MVPbkFieldType *FindMatch(TVPbkNonVersitFieldType)
pure virtual TInt MaxMatchPriority()

Detailed Description

An interface for a list of field types.

Constructor & Destructor Documentation

~MVPbkFieldTypeList ( )

~MVPbkFieldTypeList()[inline, virtual]

Destructor.

Member Function Documentation

ContainsSame ( const MVPbkFieldType & )

TBool ContainsSame(const MVPbkFieldType &aFieldType)const [pure virtual]

Returns true if this list contains aFieldType.

ParameterDescription
aFieldTypeThe field type to look for.

Returns: ETrue if the list contains the field type.

FieldTypeAt ( TInt )

const MVPbkFieldType &FieldTypeAt(TIntaIndex)const [pure virtual]

Returns the field type object at aIndex.

The objects are not in any specific order.

aIndex >= 0 && aIndex < FieldTypeCount()

ParameterDescription
aIndexAn index of a field type.

Returns: A reference to Virtual Phonebook field type. The reference is valid for the lifetime of this object.

FieldTypeCount ( )

TInt FieldTypeCount()const [pure virtual]

Returns the number of field type objects in this list.

Returns: A number of field types.

FieldTypeListExtension ( TUid )

TAny *FieldTypeListExtension(TUid)[inline, virtual]

Returns an extension point for this interface or NULL.

Returns: an extension point for this interface or NULL.

Find ( TInt )

const MVPbkFieldType *Find(TInt)const [inline, virtual]

Returns the field type corresponding to field type resource id.

If no match is found returns NULL. The resource id aFieldTypeResId corresponds to the VPBK_FIELD_TYPE types in VPbkEng.rsg.

Returns: The corresponding field type.

FindMatch ( const TVPbkFieldVersitProperty &, TInt )

const MVPbkFieldType *FindMatch(const TVPbkFieldVersitProperty &aMatchProperty,
TIntaMatchPriority
)const [pure virtual]

Returns a matching field type in this list or NULL if no match is found.

ParameterDescription
aMatchPropertyA Versit property to match.
aMatchPriorityA match priority.

Returns: A matching field type.

FindMatch ( TVPbkNonVersitFieldType )

const MVPbkFieldType *FindMatch(TVPbkNonVersitFieldTypeaNonVersitType)const [pure virtual]

Returns a matching field type in this list or NULL if no match is found.

ParameterDescription
aNonVersitTypeA non Versit field type to match.

Returns: A matching field type.

MaxMatchPriority ( )

TInt MaxMatchPriority()const [pure virtual]

Returns the maximum matching priority held by this field type list.

Returns: A maximum match priority.