CPbk2SortOrderManager Class Reference
#include
<app/CPbk2SortOrderManager.h>
Link against: Pbk2Presentation.lib
| class CPbk2SortOrderManager : public CBase |
Detailed Description
Phonebook 2 sort order manager. Responsible for managing the sort order of the contacts in a contact view.
Member Enumeration Documentation
Enum TPbk2NameDisplayOrder
| Enumerator | Value | Description |
|---|
| EPbk2NameDisplayOrderLastNameFirstName | | Last name First name. |
| EPbk2NameDisplayOrderFirstNameLastName | | First name Last name. |
| EPbk2NameDisplayOrderLastNameSeparatorFirstName | | Last name<separator> First Name. |
Constructor & Destructor Documentation
~CPbk2SortOrderManager ( )
Member Function Documentation
AddObserverL ( MPbk2SortOrderObserver & )
| Parameter | Description | | aObserver | The observer to add. |
CurrentSeparator ( )
| IMPORT_C const TDesC & | CurrentSeparator | ( | ) | const |
Returns the current separator. This the separator that can be changed run time and saved to Central Repository.
Returns: A current separator.
DefaultSeparator ( )
| IMPORT_C const TDesC & | DefaultSeparator | ( | ) | |
Returns the language specific default separator. This can not be changed run time.
Returns: the language specific default separator.
NameDisplayOrder ( )
Returns the current name display order.
Returns: Current name display order.
NewL ( const MVPbkFieldTypeList &, RFs * )
Creates a new instance of this class.
| Parameter | Description | | aMasterFieldTypeList | Master field type list. Can be retrieved from Virtual Phonebook contact manager. |
| aFs | A file system session reference for resource file handling. If NULL then an own session is created. |
Returns: A new instance of this class.
RemoveObserver ( MPbk2SortOrderObserver & )
| Parameter | Description | | aObserver | The observer to remove. |
SetContactViewL ( MVPbkContactViewBase & )
Sets the contact view that this manager manages. Takes in use the sort order from the given view.
| Parameter | Description | | aContactView | The contact view to manage. |
SetNameDisplayOrderL ( TPbk2NameDisplayOrder, const TDesC & )
Sets the name displaying order for the managed contact view.
| Parameter | Description | | aNameDisplayOrder | New name display order for the managed contact view. |
| aSeparator | Custom separator to be used between lastname and firstname if it exists. If KNullDesC is given, space is used as separator. |
SortOrder ( )
Returns the current sort order.
Returns: Current sort order.