MCLFCustomSorter Class Reference
Custom sorter interface for Content Listing Framework. With this interface, client can create a customized sorter for sorting items in list model. For example, items in the List Model can be sorted by Item IDs or it can be randomized. Example:
// Example sorter that sorts items by Item IDs
void CMySorter::SortItemsL( RPointerArray<MCLFItem>& aItemArray )
{
TLinearOrder<MCLFItem> sorter( CMySorter::Compare );
aItemArray.Sort( sorter );
}
TInt CMySorter::Compare( const MCLFItem& aFirst, const MCLFItem& aSecond )
{
return aFirst.ItemId() - aSecond.ItemId();
}
Custom sorter is activated and removed by calling method
MCLFItemListModel::SetCustomSorter
ContentListingFramework.lib
-
Since
-
S60 3.1
Private Member Functions
|
MCLFCustomSorterExt *
|
Extension
()
|
Constructor & Destructor Documentation
~MCLFCustomSorter()
~MCLFCustomSorter
|
(
|
)
|
[protected, inline, virtual]
|
Member Functions Documentation
Extension()
MCLFCustomSorterExt *
|
Extension
|
(
|
)
|
[private, inline, virtual]
|
This member is internal and not intended for use.
SortItemsL(RPointerArray< MCLFItem > &)
Abstract method for sorting Content Listing Framework items in a list model. This method is called when the sorting process is executed by calling refresh to the List Model.
-
Since
-
S60 3.1
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.