Pbk2ContactNameFormatterFactory Class Reference

#include <app/Pbk2ContactNameFormatterFactory.h>

Link against: Pbk2Presentation.lib

class Pbk2ContactNameFormatterFactory

Detailed Description

Phonebook 2 contact name formatter factory. Pbk2ContactNameFormatterFactory is responsible for creating name formatter objects.

See also: MPbk2ContactNameFormatter

Member Function Documentation

CreateL ( const MVPbkFieldTypeList &, const CPbk2SortOrderManager &, RFs * )

IMPORT_C MPbk2ContactNameFormatter *CreateL(const MVPbkFieldTypeList &aMasterFieldTypeList,
const CPbk2SortOrderManager &aSortOrderManager,
RFs *aFs = NULL
)[static]

Creates and returns an MPbk2ContactNameFormatter instance. Uses Phonebook default unnamed text.

ParameterDescription
aMasterFieldTypeListMaster field type list of Virtual Phonebook. Should be the FieldTypes() from CVPbkContactManager.
aSortOrderManagerSort order manager for fetching current sort order.
aFsA file system session reference for resource file handling. If NULL then an own session is created.

Returns: A new MPbk2ContactNameFormatter instance.

CreateL ( const TDesC &, const MVPbkFieldTypeList &, const CPbk2SortOrderManager &, RFs * )

IMPORT_C MPbk2ContactNameFormatter *CreateL(const TDesC &aUnnamedText,
const MVPbkFieldTypeList &aMasterFieldTypeList,
const CPbk2SortOrderManager &aSortOrderManager,
RFs *aFs = NULL
)[static]

Creates and returns an MPbk2ContactNameFormatter instance.

ParameterDescription
aUnnamedTextText to use for unnamed contacts.
aMasterFieldTypeListMaster field type list of Virtual Phonebook. Should be the FieldTypes() from CVPbkContactManager.
aSortOrderManagerSort order manager for fetching current sort order.
aFsA file system session reference for resource file handling. If NULL then an own session is created.

Returns: A new MPbk2ContactNameFormatter instance.

CreateL ( const MVPbkFieldTypeList &, const CPbk2SortOrderManager &, TResourceReader &, const TDesC *, RFs * )

IMPORT_C MPbk2ContactNameFormatter *CreateL(const MVPbkFieldTypeList &aMasterFieldTypeList,
const CPbk2SortOrderManager &aSortOrderManager,
TResourceReader &aTitleFieldSelectorReader,
const TDesC *aUnnamedText,
RFs *aFs = NULL
)[static]

Creates and returns an MPbk2ContactNameFormatter instance.

ParameterDescription
aMasterFieldTypeListMaster field type list of Virtual Phonebook. Should be the FieldTypes() from CVPbkContactManager.
aSortOrderManagerSort order manager for fetching current sort order.
aTitleFieldSelectorReaderVPBK_FIELD_TYPE_SELECTOR from VPbkFieldType.rh Defines field types that can be used for name formatting
aUnnamedTextText to use for unnamed contacts. If NULL then default text is used
aFsA file system session reference for resource file handling. If NULL then an own session is created.

Returns: A new MPbk2ContactNameFormatter instance.