CPbk2SortOrderManagerImpl Class Reference

class CPbk2SortOrderManagerImpl : public CBase

Phonebook 2 sort order manager implementation for contact view.

Inherits from

  • CPbk2SortOrderManagerImpl
Public Member Functions
~CPbk2SortOrderManagerImpl()
voidAddObserverL(MPbk2SortOrderObserver &)
const TDesC &CurrentSeparator()
const TDesC &DefaultSeparator()
CPbk2SortOrderManager::TPbk2NameDisplayOrder NameDisplayOrder()
CPbk2SortOrderManagerImpl *NewL(const MVPbkFieldTypeList &, RFs *)
voidRemoveObserver(MPbk2SortOrderObserver &)
voidSetContactViewL(MVPbkContactViewBase &)
voidSetNameDisplayOrderL(CPbk2SortOrderManager::TPbk2NameDisplayOrder, const TDesC &)
const MVPbkFieldTypeList &SortOrder()
Private Member Functions
CPbk2SortOrderManagerImpl(const MVPbkFieldTypeList &)
voidCenRepSeparatorChangeError(TInt)
voidCenRepSeparatorChangedL()
voidCenRepSortOrderChangeError(TInt)
voidCenRepSortOrderChangedL()
voidConstructL(RFs *)
voidContactAddedToView(MVPbkContactViewBase &, TInt, const MVPbkContactLink &)
voidContactRemovedFromView(MVPbkContactViewBase &, TInt, const MVPbkContactLink &)
voidContactViewError(MVPbkContactViewBase &, TInt, TBool)
voidContactViewReady(MVPbkContactViewBase &)
voidContactViewUnavailable(MVPbkContactViewBase &)
CPbk2SortOrderManager::TPbk2NameDisplayOrder ConvertNameDisplayOrder(TPbk2NameOrderInCenRep)
TPbk2NameOrderInCenRep ConvertNameDisplayOrder(CPbk2SortOrderManager::TPbk2NameDisplayOrder)
CVPbkSortOrder *CreateSortOrderL(CPbk2SortOrderManager::TPbk2NameDisplayOrder, RResourceFile *)
CVPbkSortOrder *CreateSortOrderLC(CPbk2SortOrderManager::TPbk2NameDisplayOrder, RResourceFile *)
TPbk2NameOrderInCenRep DefaultNameDisplayOrderConfigurationL(RResourceFile &)
HBufC *DefaultSeparatorConfigurationL(RResourceFile &)
TInt FindObserver(MPbk2SortOrderObserver &)
TBool IsDefaultSeparatorConfiguredL(RResourceFile &)
voidNotifyPsEngineAboutSortOrderChangeL()
TPbk2NameOrderInCenRep PersistentNameDisplayOrder()
HBufC *PersistentSeparatorL()
voidSendEventToObservers(Pbk2SortOrderObserverEvent)
TInt SetPersistentNameDisplayOrder(TPbk2NameOrderInCenRep)
TInt SetPersistentSeparator(const TDesC &)
TBool SetSeparatorL(const TDesC &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
MVPbkContactViewBase *iContactView
TPbk2NameOrderInCenRep iDefaultNameOrder
HBufC *iDefaultSeparator
TBool iFeatureManagerInitilized
const MVPbkFieldTypeList &iMasterFieldTypeList
RPointerArray< MPbk2SortOrderObserver >iObservers
HBufC *iSeparator
CSeparatorMonitor *iSeparatorMonitor
CVPbkSortOrder *iSortOrder
CSortOrderMonitor *iSortOrderMonitor
CRepository *iSortOrderSettings

Constructor & Destructor Documentation

CPbk2SortOrderManagerImpl(const MVPbkFieldTypeList &)

CPbk2SortOrderManagerImpl(const MVPbkFieldTypeList &aMasterFieldTypeList)[private]

Parameters

const MVPbkFieldTypeList & aMasterFieldTypeList

~CPbk2SortOrderManagerImpl()

~CPbk2SortOrderManagerImpl()

Destructor.

Member Functions Documentation

AddObserverL(MPbk2SortOrderObserver &)

voidAddObserverL(MPbk2SortOrderObserver &aObserver)

Adds an observer.

Parameters

MPbk2SortOrderObserver & aObserverThe observer to add.

CenRepSeparatorChangeError(TInt)

voidCenRepSeparatorChangeError(TIntaError)[private]

Parameters

TInt aError

CenRepSeparatorChangedL()

voidCenRepSeparatorChangedL()[private]

CenRepSortOrderChangeError(TInt)

voidCenRepSortOrderChangeError(TIntaError)[private]

Parameters

TInt aError

CenRepSortOrderChangedL()

voidCenRepSortOrderChangedL()[private]

ConstructL(RFs *)

voidConstructL(RFs *aFs)[private, inline]

Parameters

RFs * aFs

ContactAddedToView(MVPbkContactViewBase &, TInt, const MVPbkContactLink &)

voidContactAddedToView(MVPbkContactViewBase &aView,
TIntaIndex,
const MVPbkContactLink &aContactLink
)[private]

Parameters

MVPbkContactViewBase & aView
TInt aIndex
const MVPbkContactLink & aContactLink

ContactRemovedFromView(MVPbkContactViewBase &, TInt, const MVPbkContactLink &)

voidContactRemovedFromView(MVPbkContactViewBase &aView,
TIntaIndex,
const MVPbkContactLink &aContactLink
)[private]

Parameters

MVPbkContactViewBase & aView
TInt aIndex
const MVPbkContactLink & aContactLink

ContactViewError(MVPbkContactViewBase &, TInt, TBool)

voidContactViewError(MVPbkContactViewBase &aView,
TIntaError,
TBoolaErrorNotified
)[private]

Parameters

MVPbkContactViewBase & aView
TInt aError
TBool aErrorNotified

ContactViewReady(MVPbkContactViewBase &)

voidContactViewReady(MVPbkContactViewBase &aView)[private]

Parameters

MVPbkContactViewBase & aView

ContactViewUnavailable(MVPbkContactViewBase &)

voidContactViewUnavailable(MVPbkContactViewBase &aView)[private]

Parameters

MVPbkContactViewBase & aView

ConvertNameDisplayOrder(TPbk2NameOrderInCenRep)

CPbk2SortOrderManager::TPbk2NameDisplayOrder ConvertNameDisplayOrder(TPbk2NameOrderInCenRepaCenRepOrder)const [private]

Parameters

TPbk2NameOrderInCenRep aCenRepOrder

ConvertNameDisplayOrder(CPbk2SortOrderManager::TPbk2NameDisplayOrder)

TPbk2NameOrderInCenRep ConvertNameDisplayOrder(CPbk2SortOrderManager::TPbk2NameDisplayOrderaDisplayOrderOrder)const [private]

Parameters

CPbk2SortOrderManager::TPbk2NameDisplayOrder aDisplayOrderOrder

CreateSortOrderL(CPbk2SortOrderManager::TPbk2NameDisplayOrder, RResourceFile *)

CVPbkSortOrder *CreateSortOrderL(CPbk2SortOrderManager::TPbk2NameDisplayOrderaNameDisplayOrder,
RResourceFile *aResFile
)[private]

Parameters

CPbk2SortOrderManager::TPbk2NameDisplayOrder aNameDisplayOrder
RResourceFile * aResFile

CreateSortOrderLC(CPbk2SortOrderManager::TPbk2NameDisplayOrder, RResourceFile *)

CVPbkSortOrder *CreateSortOrderLC(CPbk2SortOrderManager::TPbk2NameDisplayOrderaNameDisplayOrder,
RResourceFile *aResFile
)[private]

Parameters

CPbk2SortOrderManager::TPbk2NameDisplayOrder aNameDisplayOrder
RResourceFile * aResFile

CurrentSeparator()

const TDesC &CurrentSeparator()const

Returns the current separator. This the separator that can be changed run time and saved to Central Repository.

DefaultNameDisplayOrderConfigurationL(RResourceFile &)

TPbk2NameOrderInCenRep DefaultNameDisplayOrderConfigurationL(RResourceFile &aResFile)const [private]

Parameters

RResourceFile & aResFile

DefaultSeparator()

const TDesC &DefaultSeparator()const

Returns the language specific default separator. This can not be changed run time.

DefaultSeparatorConfigurationL(RResourceFile &)

HBufC *DefaultSeparatorConfigurationL(RResourceFile &aResFile)const [private]

Parameters

RResourceFile & aResFile

FindObserver(MPbk2SortOrderObserver &)

TInt FindObserver(MPbk2SortOrderObserver &aObserver)[private]

Parameters

MPbk2SortOrderObserver & aObserver

IsDefaultSeparatorConfiguredL(RResourceFile &)

TBool IsDefaultSeparatorConfiguredL(RResourceFile &aResFile)[private]

Parameters

RResourceFile & aResFile

NameDisplayOrder()

CPbk2SortOrderManager::TPbk2NameDisplayOrder NameDisplayOrder()const

Returns the current name display order.

NewL(const MVPbkFieldTypeList &, RFs *)

CPbk2SortOrderManagerImpl *NewL(const MVPbkFieldTypeList &aMasterFieldTypeList,
RFs *aFs = NULL
)[static]

Creates a new instance of this class.

Parameters

const MVPbkFieldTypeList & aMasterFieldTypeListField type list.
RFs * aFs = NULLA file system session reference for resource file handling. If NULL then an own session is created.

NotifyPsEngineAboutSortOrderChangeL()

voidNotifyPsEngineAboutSortOrderChangeL()const [private]

PersistentNameDisplayOrder()

TPbk2NameOrderInCenRep PersistentNameDisplayOrder()const [private]

PersistentSeparatorL()

HBufC *PersistentSeparatorL()const [private]

RemoveObserver(MPbk2SortOrderObserver &)

voidRemoveObserver(MPbk2SortOrderObserver &aObserver)

Removes an observer.

Parameters

MPbk2SortOrderObserver & aObserverThe observer to remove.

SendEventToObservers(Pbk2SortOrderObserverEvent)

voidSendEventToObservers(Pbk2SortOrderObserverEventaEvent)[private]

Parameters

Pbk2SortOrderObserverEvent aEvent

SetContactViewL(MVPbkContactViewBase &)

voidSetContactViewL(MVPbkContactViewBase &aContactView)

Sets the contact view that this manager manages.

Parameters

MVPbkContactViewBase & aContactViewThe contact view to manage.

SetNameDisplayOrderL(CPbk2SortOrderManager::TPbk2NameDisplayOrder, const TDesC &)

voidSetNameDisplayOrderL(CPbk2SortOrderManager::TPbk2NameDisplayOrderaNameDisplayOrder,
const TDesC &aSeparator =  KNullDesC
)

Sets the name displaying order for the managed contact view.

Parameters

CPbk2SortOrderManager::TPbk2NameDisplayOrder aNameDisplayOrderNew name display order for the managed contact view.
const TDesC & aSeparator =  KNullDesC Custom separator to be used between lastname and firstname if it exists. If KNullDesC is given, space is used as separator.

SetPersistentNameDisplayOrder(TPbk2NameOrderInCenRep)

TInt SetPersistentNameDisplayOrder(TPbk2NameOrderInCenRepaNameDisplayOrder)[private]

Parameters

TPbk2NameOrderInCenRep aNameDisplayOrder

SetPersistentSeparator(const TDesC &)

TInt SetPersistentSeparator(const TDesC &aSeparator)const [private]

Parameters

const TDesC & aSeparator

SetSeparatorL(const TDesC &)

TBool SetSeparatorL(const TDesC &aSeparator)[private]

Parameters

const TDesC & aSeparator

SortOrder()

const MVPbkFieldTypeList &SortOrder()const

Returns the current sort order.

Member Data Documentation

MVPbkContactViewBase * iContactView

MVPbkContactViewBase *iContactView[private]

TPbk2NameOrderInCenRep iDefaultNameOrder

TPbk2NameOrderInCenRep iDefaultNameOrder[private]

Own: The default language specific name order that doesn't change.

HBufC * iDefaultSeparator

HBufC *iDefaultSeparator[private]

TBool iFeatureManagerInitilized

TBool iFeatureManagerInitilized[private]

const MVPbkFieldTypeList & iMasterFieldTypeList

const MVPbkFieldTypeList &iMasterFieldTypeList[private]

RPointerArray< MPbk2SortOrderObserver > iObservers

RPointerArray< MPbk2SortOrderObserver >iObservers[private]

HBufC * iSeparator

HBufC *iSeparator[private]

Own: Custom separator for lastname and firstname saved in central repository

CSeparatorMonitor * iSeparatorMonitor

CSeparatorMonitor *iSeparatorMonitor[private]

CVPbkSortOrder * iSortOrder

CVPbkSortOrder *iSortOrder[private]

CSortOrderMonitor * iSortOrderMonitor

CSortOrderMonitor *iSortOrderMonitor[private]

CRepository * iSortOrderSettings

CRepository *iSortOrderSettings[private]