--- a/mpengine/src/mpmpxcollectionframeworkwrapper_p.cpp Wed Aug 18 09:46:20 2010 +0300
+++ b/mpengine/src/mpmpxcollectionframeworkwrapper_p.cpp Thu Sep 02 20:24:03 2010 +0300
@@ -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
}