serviceproviders/sapi_mediamanagement/mediamanagementservice/src/mgpostfilter.cpp
branchRCL_3
changeset 65 0b68a1b0c15e
parent 59 1aa6688bfd6b
child 66 a9c0808a1095
equal deleted inserted replaced
64:1790c2f1027c 65:0b68a1b0c15e
    17 
    17 
    18 
    18 
    19 
    19 
    20 #include <MCLFItem.h>
    20 #include <MCLFItem.h>
    21 #include "mgpostfilter.h"
    21 #include "mgpostfilter.h"
    22 #include <mmfcontrollerpluginresolver.h>
       
    23 
    22 
    24 const TInt32 KLargestSigned32 = 0x7fffffff;
    23 const TInt32 KLargestSigned32 = 0x7fffffff;
    25 const TInt64 KLargestSigned64 = 0x7fffffffffffffff;
    24 const TInt64 KLargestSigned64 = 0x7fffffffffffffff;
    26 
    25 
    27 // -----------------------------------------------------------------------------
    26 // -----------------------------------------------------------------------------
    54 // -----------------------------------------------------------------------------
    53 // -----------------------------------------------------------------------------
    55 void CPostFilter::FilterItemsL( const TArray<MCLFItem*>& aItemList,
    54 void CPostFilter::FilterItemsL( const TArray<MCLFItem*>& aItemList,
    56                                 RPointerArray<MCLFItem>& aFilteredItemList )
    55                                 RPointerArray<MCLFItem>& aFilteredItemList )
    57     {
    56     {
    58 	// It will filter the Items
    57 	// It will filter the Items
    59 	CleanupResetAndDestroyPushL(aFilteredItemList);
       
    60 	MCLFItem* item = NULL;
    58 	MCLFItem* item = NULL;
    61 
    59 
    62     for( TInt i = 0 ; i < aItemList.Count() ; ++i )
    60     for( TInt i = 0 ; i < aItemList.Count() ; ++i )
    63         {
    61         {
    64         item = aItemList[i];
    62         item = aItemList[i];
    67             {
    65             {
    68             // item should be include in result
    66             // item should be include in result
    69             aFilteredItemList.AppendL( item );
    67             aFilteredItemList.AppendL( item );
    70             }
    68             }
    71         }
    69         }
    72         CleanupStack::Pop(&aFilteredItemList);
       
    73 	}
    70 	}
    74 
    71 
    75 // -----------------------------------------------------------------------------
    72 // -----------------------------------------------------------------------------
    76 // CPostFilter::SetFilterMetaData
    73 // CPostFilter::SetFilterMetaData
    77 // method to set the filter metadata
    74 // method to set the filter metadata