class CViewContactSortPlugin : public CBase |
An interface class that enables implementers to configure the way in which contacts are sorted in a contact view.
This is an abstract base class that will be derived from.
Public Member Functions | |
---|---|
~CViewContactSortPlugin() | |
CViewContactSortPlugin * | NewL(TSortPluginParams *) |
void | SetSortOrderL(const RContactViewSortOrder &) |
TInt | SortCompareViewContactsL(const CViewContact &, const CViewContact &) |
void | SortCompleted() |
TInt | SortStart(TSortStartTypes, TInt) |
TBool | ViewContactIsSortable(const CViewContact &) |
Public Member Enumerations | |
---|---|
enum | TSortStartTypes { ESortNull = 0, ESortStartFull, ESortStartInsertOne, ESortStartInsertMultiple } |
Private Attributes | |
---|---|
TUid | iDtor_ID_Key |
CViewContactSortPlugin * | NewL | ( | TSortPluginParams * | aParams | ) | [static, inline] |
Allocates and constructs a sort plug-in instance.
TSortPluginParams * aParams | The sort plug-in's parameters. |
void | SetSortOrderL | ( | const RContactViewSortOrder & | aViewSortOrder | ) | [pure virtual] |
Called by a contact view to pass the sort plug-in the required sort order. Any processing of the order information is done here.
This function is called when the view is created and when a different sort order is requested.
const RContactViewSortOrder & aViewSortOrder | The requested sort order. |
TInt | SortCompareViewContactsL | ( | const CViewContact & | aLhs, |
const CViewContact & | aRhs | |||
) | [pure virtual] |
Called by a contact view to compare two CViewContact items for sorting in the view.
If TDesC::CompareC() is used to implement this function, the return value from TDesC::CompareC() can be used directly.
const CViewContact & aLhs | The first item to compare. |
const CViewContact & aRhs | The second item to compare. |
void | SortCompleted | ( | ) | [pure virtual] |
Called by a contact view to notify the sort plug-in that sorting is complete.
TInt | SortStart | ( | TSortStartTypes | aSortStartType, |
TInt | aCount | |||
) | [pure virtual] |
Called by a contact view to notify the sort plug-in that sorting is about to start.
TSortStartTypes aSortStartType | Indicates the type of sort operation required. |
TInt aCount | The approximate number of contacts to be processed. |
TBool | ViewContactIsSortable | ( | const CViewContact & | aViewContact | ) | [pure virtual] |
Tests whether a CViewContact is sortable.
For instance, a contact may be unsortable if none of the fields used to sort on contain any data.
const CViewContact & aViewContact | The view contact to test. |
Identifies the type of sort operation to SortStart().
ESortNull = 0 |
No sort is in progress. |
ESortStartFull |
A full sort or re-sort. |
ESortStartInsertOne |
A single contact has been inserted or changed. |
ESortStartInsertMultiple |
Multiple contacts have been added. For example, ICC contacts arrived in a mixed view (one that also includes contacts from the phone's memory). |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.