MCLFPostFilter Class Reference

API published in: S60 3rd Ed FP 1

Link against: contentlistingframework.lib

Capability Information

Required Capabilities

None


#include <mclfpostfilter.h>

Detailed Description

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 );
                  }
              }
          }
      }

Public Member Functions

virtual void  FilterItemsL (const TArray< MCLFItem * > &aItemList, RPointerArray< MCLFItem > &aFilteredItemList)=0
  Abstract method to filter source list.

Protected Member Functions

virtual  ~MCLFPostFilter ()
  Destructor.

Constructor & Destructor Documentation

virtual MCLFPostFilter::~MCLFPostFilter  )  [inline, protected, virtual]
 

Destructor.


Member Function Documentation

virtual void MCLFPostFilter::FilterItemsL const TArray< MCLFItem * > &  aItemList,
RPointerArray< MCLFItem > &  aFilteredItemList
[pure virtual]
 

Abstract method to filter source list.

This method is called when the filtering process is executed by list model refresh.

Parameters:
aItemList  Source list, contains all items that are in the list model
aFilteredItemList  Filtered/destination list, contains all items that will be in the list model after filtering.

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top