equal
deleted
inserted
replaced
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.5.4 % << Don't touch! Updated by Synergy at check-out. |
15 * Version : %version: da1mmcf#72.1.14.2.4.1.4.1.2.1.9 % << 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 TFileName driveName(fileNameParser.Drive()); |
346 TPtrC 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; |
|
352 count--; |
351 count--; |
353 } |
352 } |
354 else |
353 else |
355 { |
354 { |
356 index++; |
355 index++; |
357 } |
356 } |
358 } |
357 } |
359 iDBManager->CloseDatabase(static_cast<TDriveNumber>(currentDriveNumber)); |
358 iDBManager->CloseDatabase(static_cast<TDriveNumber>(currentDriveNumber)); |
|
359 iFilteredOutOfDisk = ETrue; |
360 } |
360 } |
361 } |
361 } |
362 |
362 |
363 iSynchronizing = CheckDbInSyncL(); |
363 iSynchronizing = CheckDbInSyncL(); |
364 |
364 |