mmappcomponents/harvester/filehandler/src/mpxharvesterfilehandlerimp.cpp
branchRCL_3
changeset 24 6c1dfe4da5dd
parent 20 4aca42fa4eb1
child 25 63223d4fd956
equal deleted inserted replaced
23:e42293e811d8 24:6c1dfe4da5dd
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  Handles all file related activities
    14 * Description:  Handles all file related activities
    15 *  Version     : %version: da1mmcf#72.1.14.2.4.1.4.1.2.1.9 % << Don't touch! Updated by Synergy at check-out.
    15 *  Version     : %version: da1mmcf#72.1.14.2.4.1.4.1.2.5.4 % << Don't touch! Updated by Synergy at check-out.
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 #include <e32base.h>
    20 #include <e32base.h>
   341             while(index < count)
   341             while(index < count)
   342                 {
   342                 {
   343                 // Remove current drive from the scanned drives list
   343                 // Remove current drive from the scanned drives list
   344                 TParse fileNameParser;
   344                 TParse fileNameParser;
   345                 User::LeaveIfError(fileNameParser.Set(iFilteredDrivesToScan[index],NULL,NULL));
   345                 User::LeaveIfError(fileNameParser.Set(iFilteredDrivesToScan[index],NULL,NULL));
   346                 TPtrC driveName(fileNameParser.Drive());
   346                 TFileName driveName(fileNameParser.Drive());
   347                 TInt driveNumber = TDriveUnit( driveName );
   347                 TInt driveNumber = TDriveUnit( driveName );
   348                 if (currentDriveNumber == driveNumber)
   348                 if (currentDriveNumber == driveNumber)
   349                     {
   349                     {
   350                     iFilteredDrivesToScan.Remove(index);
   350                     iFilteredDrivesToScan.Remove(index);
       
   351                     iFilteredOutOfDisk = ETrue;
   351                     count--;
   352                     count--;
   352                     }
   353                     }
   353                 else
   354                 else
   354                     {
   355                     {
   355                     index++;
   356                     index++;
   356                     }
   357                     }
   357                 }
   358                 }
   358             iDBManager->CloseDatabase(static_cast<TDriveNumber>(currentDriveNumber));
   359             iDBManager->CloseDatabase(static_cast<TDriveNumber>(currentDriveNumber));
   359             iFilteredOutOfDisk = ETrue;
       
   360             }
   360             }
   361         }
   361         }
   362 
   362 
   363     iSynchronizing = CheckDbInSyncL();
   363     iSynchronizing = CheckDbInSyncL();
   364 
   364