CPbkViewContactNameFormatter Class Reference

class CPbkViewContactNameFormatter : public CBase

Formats a contact name from a CViewContact object contents.

Inherits from

  • CPbkViewContactNameFormatter

Constructor & Destructor Documentation

CPbkViewContactNameFormatter(MPbkContactNameFormat &)

CPbkViewContactNameFormatter ( MPbkContactNameFormat & aNameFormatter )

C++ constructor. Usage restricted to the DLL that implements this class for binary compability reasons.

Parameters

MPbkContactNameFormat & aNameFormatter contact name formatter instance

~CPbkViewContactNameFormatter()

~CPbkViewContactNameFormatter ( )

Destructor.

Member Functions Documentation

ContactTitleL(const CViewContact &, const RContactViewSortOrder &)

IMPORT_C const TDesC & ContactTitleL ( const CViewContact & aViewContact,
const RContactViewSortOrder & aSortOrder
) const

Returns a contact name from a CViewContact object contents.

Parameters

const CViewContact & aViewContact the CViewContact object to format a name from.
const RContactViewSortOrder & aSortOrder sort order of the CContactViewBase where aViewContact is from. aViewContact.FieldCount()==aSortOrder.Count()

NewL(MPbkContactNameFormat &)

IMPORT_C CPbkViewContactNameFormatter * NewL ( MPbkContactNameFormat & aNameFormatter ) [static]

Creates a new instance of this class.

Parameters

MPbkContactNameFormat & aNameFormatter contact name formatter instance

ReserveBufferL(TInt)

TPtr ReserveBufferL ( TInt aLength ) const [private]

Allocates iNameBuf to be able hold at least aLength characters.

Parameters

TInt aLength

Member Data Documentation

HBufC * iNameBuf

HBufC * iNameBuf [private]

MPbkContactNameFormat & iNameFormatter

MPbkContactNameFormat & iNameFormatter [private]