mpengine/src/mpmpxcollectionframeworkwrapper_p.cpp
changeset 51 560ce2306a17
parent 47 4cc1412daed0
child 55 f3930dda3342
--- a/mpengine/src/mpmpxcollectionframeworkwrapper_p.cpp	Fri Aug 06 16:51:36 2010 -0500
+++ b/mpengine/src/mpmpxcollectionframeworkwrapper_p.cpp	Tue Aug 24 03:36:14 2010 -0500
@@ -59,9 +59,8 @@
 #include "mpsettingsmanager.h"
 #include "mpsongdata.h"
 
-const TInt KIncrementalDelayNone = 0;
-const TInt KIncrementalDelayHalfSecond = 500000;
-const TInt KIncrementalFetchBlockSize = 400;
+const TInt KIncrementalDelay = 0;
+const TInt KIncrementalFetchBlockSize = 1000;
 
 const TInt KMPXChunkSize = 100;  // number of songs added in each chunk, IncAddL
 _LIT( KPlaylistPath, "C:\\Data\\Playlists\\" ); // Todo
@@ -452,13 +451,15 @@
             iFirstIncrementalOpen = EFalse;
             if( iShuffleAll ) {
                 iShuffleAll = EFalse;
-                TX_ENTRY_ARGS( "Path is ready" );
+                TX_LOG_ARGS( "Path is ready" );
                 DoPlayAllSongsPlaylistL();
-                
             }
             iCollectionData->setMpxMedia( aEntries, iReopen );
             iReopen = EFalse;
         }
+        else {
+            iCollectionData->incrementalOpenUpdate();
+        }
     }
     else {
         TX_LOG_ARGS( "Error: " << aError << "; should never get here." );
@@ -749,10 +750,9 @@
     RArray<TMPXAttribute> attrs;
     CleanupClosePushL( attrs );
     TArray<TMPXAttribute> ary = attrs.Array();
-    iIncrementalOpenUtil->SetDelay( KIncrementalDelayNone );
+    iIncrementalOpenUtil->SetDelay( KIncrementalDelay );
     iIncrementalOpenUtil->StartL( ary, KIncrementalFetchBlockSize,
-                                  KErrNotFound, CMPXCollectionOpenUtility::EFetchDown );
-    iIncrementalOpenUtil->SetDelay( KIncrementalDelayHalfSecond );
+            0, CMPXCollectionOpenUtility::EFetchDown );
     CleanupStack::PopAndDestroy( &attrs );
     TX_EXIT
 }