CPbk2SortOrderManagerImpl Class Reference

class CPbk2SortOrderManagerImpl : public CBase

Phonebook 2 sort order manager implementation for contact view.

Inherits from

Public Member Functions
~CPbk2SortOrderManagerImpl ()
void AddObserverL ( MPbk2SortOrderObserver &)
const TDesC & CurrentSeparator ()
const TDesC & DefaultSeparator ()
CPbk2SortOrderManager::TPbk2NameDisplayOrder NameDisplayOrder ()
CPbk2SortOrderManagerImpl * NewL (const MVPbkFieldTypeList &, RFs *)
void RemoveObserver ( MPbk2SortOrderObserver &)
void SetContactViewL ( MVPbkContactViewBase &)
void SetNameDisplayOrderL ( CPbk2SortOrderManager::TPbk2NameDisplayOrder , const TDesC &)
const MVPbkFieldTypeList & SortOrder ()
Private Member Functions
CPbk2SortOrderManagerImpl (const MVPbkFieldTypeList &)
void CenRepSeparatorChangeError ( TInt )
void CenRepSeparatorChangedL ()
void CenRepSortOrderChangeError ( TInt )
void CenRepSortOrderChangedL ()
void ConstructL ( RFs *)
void ContactAddedToView ( MVPbkContactViewBase &, TInt , const MVPbkContactLink &)
void ContactRemovedFromView ( MVPbkContactViewBase &, TInt , const MVPbkContactLink &)
void ContactViewError ( MVPbkContactViewBase &, TInt , TBool )
void ContactViewReady ( MVPbkContactViewBase &)
void ContactViewUnavailable ( 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 &)
void NotifyPsEngineAboutSortOrderChangeL ()
TPbk2NameOrderInCenRep PersistentNameDisplayOrder ()
HBufC * PersistentSeparatorL ()
void SendEventToObservers ( 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 &)

void AddObserverL ( MPbk2SortOrderObserver & aObserver )

Adds an observer.

Parameters

MPbk2SortOrderObserver & aObserver The observer to add.

CenRepSeparatorChangeError(TInt)

void CenRepSeparatorChangeError ( TInt aError ) [private]

Parameters

TInt aError

CenRepSeparatorChangedL()

void CenRepSeparatorChangedL ( ) [private]

CenRepSortOrderChangeError(TInt)

void CenRepSortOrderChangeError ( TInt aError ) [private]

Parameters

TInt aError

CenRepSortOrderChangedL()

void CenRepSortOrderChangedL ( ) [private]

ConstructL(RFs *)

void ConstructL ( RFs * aFs ) [private, inline]

Parameters

RFs * aFs

ContactAddedToView(MVPbkContactViewBase &, TInt, const MVPbkContactLink &)

void ContactAddedToView ( MVPbkContactViewBase & aView,
TInt aIndex,
const MVPbkContactLink & aContactLink
) [private]

Parameters

MVPbkContactViewBase & aView
TInt aIndex
const MVPbkContactLink & aContactLink

ContactRemovedFromView(MVPbkContactViewBase &, TInt, const MVPbkContactLink &)

void ContactRemovedFromView ( MVPbkContactViewBase & aView,
TInt aIndex,
const MVPbkContactLink & aContactLink
) [private]

Parameters

MVPbkContactViewBase & aView
TInt aIndex
const MVPbkContactLink & aContactLink

ContactViewError(MVPbkContactViewBase &, TInt, TBool)

void ContactViewError ( MVPbkContactViewBase & aView,
TInt aError,
TBool aErrorNotified
) [private]

Parameters

MVPbkContactViewBase & aView
TInt aError
TBool aErrorNotified

ContactViewReady(MVPbkContactViewBase &)

void ContactViewReady ( MVPbkContactViewBase & aView ) [private]

Parameters

MVPbkContactViewBase & aView

ContactViewUnavailable(MVPbkContactViewBase &)

void ContactViewUnavailable ( MVPbkContactViewBase & aView ) [private]

Parameters

MVPbkContactViewBase & aView

ConvertNameDisplayOrder(TPbk2NameOrderInCenRep)

CPbk2SortOrderManager::TPbk2NameDisplayOrder ConvertNameDisplayOrder ( TPbk2NameOrderInCenRep aCenRepOrder ) const [private]

Parameters

TPbk2NameOrderInCenRep aCenRepOrder

ConvertNameDisplayOrder(CPbk2SortOrderManager::TPbk2NameDisplayOrder)

TPbk2NameOrderInCenRep ConvertNameDisplayOrder ( CPbk2SortOrderManager::TPbk2NameDisplayOrder aDisplayOrderOrder ) const [private]

CreateSortOrderL(CPbk2SortOrderManager::TPbk2NameDisplayOrder, RResourceFile *)

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

CreateSortOrderLC(CPbk2SortOrderManager::TPbk2NameDisplayOrder, RResourceFile *)

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

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 & aMasterFieldTypeList Field type list.
RFs * aFs = NULL A file system session reference for resource file handling. If NULL then an own session is created.

NotifyPsEngineAboutSortOrderChangeL()

void NotifyPsEngineAboutSortOrderChangeL ( ) const [private]

PersistentNameDisplayOrder()

TPbk2NameOrderInCenRep PersistentNameDisplayOrder ( ) const [private]

PersistentSeparatorL()

HBufC * PersistentSeparatorL ( ) const [private]

RemoveObserver(MPbk2SortOrderObserver &)

void RemoveObserver ( MPbk2SortOrderObserver & aObserver )

Removes an observer.

Parameters

MPbk2SortOrderObserver & aObserver The observer to remove.

SendEventToObservers(Pbk2SortOrderObserverEvent)

void SendEventToObservers ( Pbk2SortOrderObserverEvent aEvent ) [private]

SetContactViewL(MVPbkContactViewBase &)

void SetContactViewL ( MVPbkContactViewBase & aContactView )

Sets the contact view that this manager manages.

Parameters

MVPbkContactViewBase & aContactView The contact view to manage.

SetNameDisplayOrderL(CPbk2SortOrderManager::TPbk2NameDisplayOrder, const TDesC &)

void SetNameDisplayOrderL ( CPbk2SortOrderManager::TPbk2NameDisplayOrder aNameDisplayOrder,
const TDesC & aSeparator =  KNullDesC
)

Sets the name displaying order for the managed contact view.

Parameters

CPbk2SortOrderManager::TPbk2NameDisplayOrder aNameDisplayOrder New 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 ( TPbk2NameOrderInCenRep aNameDisplayOrder ) [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]