mpx/collectionframework/collectionutility/src/mpxcollectionplaylist.cpp
branchRCL_3
changeset 24 6c1dfe4da5dd
parent 20 4aca42fa4eb1
child 25 63223d4fd956
--- a/mpx/collectionframework/collectionutility/src/mpxcollectionplaylist.cpp	Thu Aug 19 10:24:28 2010 +0300
+++ b/mpx/collectionframework/collectionutility/src/mpxcollectionplaylist.cpp	Tue Aug 31 15:41:40 2010 +0300
@@ -37,9 +37,9 @@
 #include "mpxcollectionplaylist.h"
 
 // CONSTANTS
-const TInt KIncrementalFetchSize = 400;
-
-const TInt KIncrementalDelay = 250000;
+const TInt KIncrementalFetchSize = 1000;
+const TInt KIncrementalDelayNone = 0;
+const TInt KIncrementalDelay = 100000;  // 100 ms
 
 // -----------------------------------------------------------------------------
 // Two-phased constructor.
@@ -1412,13 +1412,11 @@
     RArray<TMPXAttribute> attrs;
     CleanupClosePushL( attrs );
     TArray<TMPXAttribute> ary = attrs.Array();
-    
-    // Start the utility, 2 second delays so we don't flood the collection
-    // Have some delay as playlists are often destroyed! 
-    //
-    iIncOpenUtil->SetDelay( KIncrementalDelay ); 
-    iIncOpenUtil->StartL( *copy, ary, KIncrementalFetchSize, iPath->Index() , 
-                          CMPXCollectionOpenUtility::EFetchNormal );
+
+    iIncOpenUtil->SetDelay( KIncrementalDelayNone );
+    iIncOpenUtil->StartL( *copy, ary, KIncrementalFetchSize, iPath->Index() ,
+                          CMPXCollectionOpenUtility::EFetchDown );
+    iIncOpenUtil->SetDelay( KIncrementalDelay );
     CleanupStack::PopAndDestroy( &attrs );
     CleanupStack::PopAndDestroy( copy );
     }