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: e003sa33#72.1.14.2.4.1.4.1.2.1.3 % << Don't touch! Updated by Synergy at check-out. |
15 * Version : %version: da1mmcf#72.1.14.2.4.1.4.1.2.1.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> |
436 // 2: Format end and disk insert we reopen db and scan for new files |
436 // 2: Format end and disk insert we reopen db and scan for new files |
437 // 3: USB start we stop scan and close all db |
437 // 3: USB start we stop scan and close all db |
438 // 4: USB end we re-open all db and scan for new files |
438 // 4: USB end we re-open all db and scan for new files |
439 // 5: MTP start we stop monitoring for new files (no dismount) |
439 // 5: MTP start we stop monitoring for new files (no dismount) |
440 // 6: MTP end we re-open all db, files added already, restart monitor |
440 // 6: MTP end we re-open all db, files added already, restart monitor |
|
441 // 7: Disk dismount: stop scanning, close the dismounting DB |
441 // |
442 // |
442 #ifdef RD_MULTIPLE_DRIVE |
443 #ifdef RD_MULTIPLE_DRIVE |
443 // Get all visible drives |
444 // Get all visible drives |
444 TDriveList driveList; |
445 TDriveList driveList; |
445 TInt driveCount(0); |
446 TInt driveCount(0); |
630 // copy dbs from ram drive |
631 // copy dbs from ram drive |
631 iDBManager->CopyDBsFromRamL(); |
632 iDBManager->CopyDBsFromRamL(); |
632 #endif //__RAMDISK_PERF_ENABLE |
633 #endif //__RAMDISK_PERF_ENABLE |
633 break; |
634 break; |
634 } |
635 } |
635 case EPowerKeyEjectEvent: |
636 case EDiskDismountEvent: |
636 { |
637 { |
|
638 MPX_DEBUG2("Disk dismount notification, drive %d", aData); |
637 CancelScan(); |
639 CancelScan(); |
|
640 iDBManager->CloseDatabase( (TDriveNumber) aData ); |
638 break; |
641 break; |
639 } |
642 } |
640 default: |
643 default: |
641 { |
644 { |
642 MPX_DEBUG1("CCMPXHarvesterFileHandlerImp::HandleSystemEventL Unknown system event!"); |
645 MPX_DEBUG1("CCMPXHarvesterFileHandlerImp::HandleSystemEventL Unknown system event!"); |