serviceproviders/sapi_mediamanagement/tsrc/testing/performance/s60_perf/src/mgpostfilter.cpp
equal
deleted
inserted
replaced
18 |
18 |
19 |
19 |
20 |
20 |
21 #include <mclfitem.h> |
21 #include <mclfitem.h> |
22 #include "mgpostfilter.h" |
22 #include "mgpostfilter.h" |
23 |
23 #include <mmfcontrollerpluginresolver.h> |
24 const TInt32 KLargestSigned32 = 0x7fffffff; |
24 const TInt32 KLargestSigned32 = 0x7fffffff; |
25 const TInt64 KLargestSigned64 = 0x7fffffffffffffff; |
25 const TInt64 KLargestSigned64 = 0x7fffffffffffffff; |
26 |
26 |
27 // ----------------------------------------------------------------------------- |
27 // ----------------------------------------------------------------------------- |
28 // CPostFilter::NewL |
28 // CPostFilter::NewL |
53 // the filtering process is executed by list model refresh method. |
53 // the filtering process is executed by list model refresh method. |
54 // ----------------------------------------------------------------------------- |
54 // ----------------------------------------------------------------------------- |
55 void CPostFilter::FilterItemsL( const TArray<MCLFItem*>& aItemList, |
55 void CPostFilter::FilterItemsL( const TArray<MCLFItem*>& aItemList, |
56 RPointerArray<MCLFItem>& aFilteredItemList ) |
56 RPointerArray<MCLFItem>& aFilteredItemList ) |
57 { |
57 { |
|
58 CleanupResetAndDestroyPushL(aFilteredItemList); |
58 // It will filter the Items |
59 // It will filter the Items |
59 MCLFItem* item = NULL; |
60 MCLFItem* item = NULL; |
60 |
61 |
61 for( TInt i = 0 ; i < aItemList.Count() ; ++i ) |
62 for( TInt i = 0 ; i < aItemList.Count() ; ++i ) |
62 { |
63 { |
66 { |
67 { |
67 // item should be include in result |
68 // item should be include in result |
68 aFilteredItemList.AppendL( item ); |
69 aFilteredItemList.AppendL( item ); |
69 } |
70 } |
70 } |
71 } |
|
72 CleanupStack::Pop(&aFilteredItemList); |
71 } |
73 } |
72 |
74 |
73 // ----------------------------------------------------------------------------- |
75 // ----------------------------------------------------------------------------- |
74 // CPostFilter::SetFilterMetaData |
76 // CPostFilter::SetFilterMetaData |
75 // method to set the filter metadata |
77 // method to set the filter metadata |