MCLFPostFilter Class Reference
Post filter interface for Content Listing Framework. With this interface client you can add own post filter to exclude items from list model. Example:
// This example filters items by drive letter:
// Items that are in phone memory are included to the list model.
// All other items will be filtered.
void CMyFilter::FilterItemsL( const TArray<MCLFItem*>& aItemList,
RPointerArray<MCLFItem>& aFilteredItemList )
{
TCharF phoneMemory( PathInfo::PhoneMemoryRootPath()[0] );
TInt count( aItemList.Count() );
for( TInt i = 0 ; i < count ; ++i )
{
TPtrC ptr;
MCLFItem* item = aItemList[i];
TInt error( item->GetField( ECLFFieldIdDrive, ptr ) );
if( error == KErrNone )
{
TCharF memory( ptr[0] );
if( memory == phoneMemory )
{
aFilteredItemList.AppendL( item );
}
}
}
}
ContentListingFramework.lib
-
Since
-
S60 3.1
Private Member Functions
|
MCLFPostFilterExt *
|
Extension
()
|
Constructor & Destructor Documentation
~MCLFPostFilter()
~MCLFPostFilter
|
(
|
)
|
[protected, inline, virtual]
|
Member Functions Documentation
Extension()
MCLFPostFilterExt *
|
Extension
|
(
|
)
|
[private, inline, virtual]
|
This member is internal and not intended for use.
FilterItemsL(const TArray< MCLFItem * > &, RPointerArray< MCLFItem > &)
Abstract method to filter source list. This method is called when the filtering process is executed by list model refresh.
-
Since
-
S60 3.1
Parameters
const
TArray
<
MCLFItem
* > & aItemList
|
Source list, contains all items that are in the list model
|
RPointerArray
<
MCLFItem
> & aFilteredItemList
|
Filtered/destination list, contains all items that will be in the list model after filtering.
|
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.