mtpfws/mtpfw/src/cmtpdataprovidercontroller.cpp
branchRCL_3
changeset 18 453dfc402455
parent 15 f85613f12947
equal deleted inserted replaced
17:dbd1c5e08735 18:453dfc402455
   482             {
   482             {
   483             __FLOG(_L8("File DP first level enum complete"));
   483             __FLOG(_L8("File DP first level enum complete"));
   484             Cancel();
   484             Cancel();
   485 
   485 
   486             //clean the root level snapshot
   486             //clean the root level snapshot
   487             iSingletons.ObjectMgr().ObjectStore().CleanDBSnapshotL(ETrue);
   487             TRAP_IGNORE(iSingletons.ObjectMgr().ObjectStore().CleanDBSnapshotL(ETrue));
   488 
   488 
   489             //Schedule again to scan subdir
   489             //Schedule again to scan subdir
   490             iEnumerationState   = EEnumeratingSubDirFiles;
   490             iEnumerationState   = EEnumeratingSubDirFiles;
   491 
   491 
   492             }
   492             }
   498     
   498     
   499             if ((iEnumeratingDps.Count() == 0) && iDpIdArrayIndex >= iDataProviderIds.Count())
   499             if ((iEnumeratingDps.Count() == 0) && iDpIdArrayIndex >= iDataProviderIds.Count())
   500                 {
   500                 {
   501                 Cancel();
   501                 Cancel();
   502                 iEnumerationState   = EEnumeratingCleanDBSnapshot;
   502                 iEnumerationState   = EEnumeratingCleanDBSnapshot;
   503                 iSingletons.ObjectMgr().ObjectStore().CleanDBSnapshotL(EFalse);
   503                 TRAP_IGNORE(iSingletons.ObjectMgr().ObjectStore().CleanDBSnapshotL(EFalse));
   504             
       
   505 
       
   506                 }
   504                 }
   507             else
   505             else
   508                 {
   506                 {
   509                 if ((iEnumeratingDps.Count() == 0) && (iEnumerationPhase != DataProviderL(iDataProviderIds[iDpIdArrayIndex]).DataProviderConfig().UintValue(MMTPDataProviderConfig::EEnumerationPhase)))
   507                 if ((iEnumeratingDps.Count() == 0) && (iEnumerationPhase != DataProviderL(iDataProviderIds[iDpIdArrayIndex]).DataProviderConfig().UintValue(MMTPDataProviderConfig::EEnumerationPhase)))
   510                     {
   508                     {