mpx/collectionframework/collectionutility/src/mpxcollectionplaylist.cpp
branchRCL_3
changeset 56 63223d4fd956
parent 55 6c1dfe4da5dd
equal deleted inserted replaced
55:6c1dfe4da5dd 56:63223d4fd956
    35 
    35 
    36 #include "mpxcollectionplaylistobserver.h"
    36 #include "mpxcollectionplaylistobserver.h"
    37 #include "mpxcollectionplaylist.h"
    37 #include "mpxcollectionplaylist.h"
    38 
    38 
    39 // CONSTANTS
    39 // CONSTANTS
    40 const TInt KIncrementalFetchSize = 1000;
    40 const TInt KIncrementalFetchSize = 400;
    41 const TInt KIncrementalDelayNone = 0;
    41 
    42 const TInt KIncrementalDelay = 100000;  // 100 ms
    42 const TInt KIncrementalDelay = 250000;
    43 
    43 
    44 // -----------------------------------------------------------------------------
    44 // -----------------------------------------------------------------------------
    45 // Two-phased constructor.
    45 // Two-phased constructor.
    46 // -----------------------------------------------------------------------------
    46 // -----------------------------------------------------------------------------
    47 //
    47 //
  1410     CleanupStack::PushL( copy );
  1410     CleanupStack::PushL( copy );
  1411     
  1411     
  1412     RArray<TMPXAttribute> attrs;
  1412     RArray<TMPXAttribute> attrs;
  1413     CleanupClosePushL( attrs );
  1413     CleanupClosePushL( attrs );
  1414     TArray<TMPXAttribute> ary = attrs.Array();
  1414     TArray<TMPXAttribute> ary = attrs.Array();
  1415 
  1415     
  1416     iIncOpenUtil->SetDelay( KIncrementalDelayNone );
  1416     // Start the utility, 2 second delays so we don't flood the collection
  1417     iIncOpenUtil->StartL( *copy, ary, KIncrementalFetchSize, iPath->Index() ,
  1417     // Have some delay as playlists are often destroyed! 
  1418                           CMPXCollectionOpenUtility::EFetchDown );
  1418     //
  1419     iIncOpenUtil->SetDelay( KIncrementalDelay );
  1419     iIncOpenUtil->SetDelay( KIncrementalDelay ); 
       
  1420     iIncOpenUtil->StartL( *copy, ary, KIncrementalFetchSize, iPath->Index() , 
       
  1421                           CMPXCollectionOpenUtility::EFetchNormal );
  1420     CleanupStack::PopAndDestroy( &attrs );
  1422     CleanupStack::PopAndDestroy( &attrs );
  1421     CleanupStack::PopAndDestroy( copy );
  1423     CleanupStack::PopAndDestroy( copy );
  1422     }
  1424     }
  1423 
  1425 
  1424 // -----------------------------------------------------------------------------
  1426 // -----------------------------------------------------------------------------