#include <app/cntviewsortplugin.h>
class CViewContactSortPlugin : public CBase, public CBase, public CBase, public CBase |
Public Member Enumerations | |
---|---|
enum | TSortStartTypes { ESortNull, ESortStartFull, ESortStartInsertOne, ESortStartInsertMultiple } |
Public Member Functions | |
---|---|
virtual | ~CViewContactSortPlugin() |
CViewContactSortPlugin * | NewL(TSortPluginParams *) |
pure virtual void | SetSortOrderL(const RContactViewSortOrder &) |
pure virtual TInt | SortCompareViewContactsL(const CViewContact &, const CViewContact &) |
pure virtual void | SortCompleted() |
pure virtual TInt | SortStart(TSortStartTypes, TInt) |
pure virtual TBool | ViewContactIsSortable(const CViewContact &) |
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.
Identifies the type of sort operation to SortStart().
Enumerator | Value | Description |
---|---|---|
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). |
~CViewContactSortPlugin | ( | ) | [inline, virtual] |
CViewContactSortPlugin * | NewL | ( | TSortPluginParams * | aParams | ) | [static] |
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.
Parameters | |
---|---|
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.
Parameters | |
---|---|
aLhs | The first item to compare. |
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.
Parameters | |
---|---|
aSortStartType | Indicates the type of sort operation required. |
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.
Parameters | |
---|---|
aViewContact | The view contact to test. |