1571 // ---------------------------------------------------------------------------- |
1573 // ---------------------------------------------------------------------------- |
1572 // |
1574 // |
1573 void CMPXDbHandler::RefreshEndL() |
1575 void CMPXDbHandler::RefreshEndL() |
1574 { |
1576 { |
1575 MPX_FUNC("CMPXDbHandler::RefreshEndL"); |
1577 MPX_FUNC("CMPXDbHandler::RefreshEndL"); |
1576 iRefresh = EFalse; |
1578 if ( iRefresh ) |
1577 EndTransactionL(KErrNone); |
1579 { |
1578 if (!iOutOfDisk) |
1580 iRefresh = EFalse; |
1579 { |
1581 EndTransactionL(KErrNone); |
1580 // Write last refreshed time as current time |
1582 if (!iOutOfDisk) |
1581 // This also sets corrupt = 0 |
1583 { |
1582 TTime curTime; |
1584 // Write last refreshed time as current time |
1583 curTime.HomeTime(); |
1585 // This also sets corrupt = 0 |
1584 SetLastRefreshedTimeL(curTime); |
1586 TTime curTime; |
1585 } |
1587 curTime.HomeTime(); |
|
1588 SetLastRefreshedTimeL(curTime); |
|
1589 } |
1586 |
1590 |
1587 #ifdef ABSTRACTAUDIOALBUM_INCLUDED |
1591 #ifdef ABSTRACTAUDIOALBUM_INCLUDED |
1588 //for AbstractAlbum garbage collection |
1592 //for AbstractAlbum garbage collection |
1589 //can not leave |
1593 //can not leave |
1590 TRAP_IGNORE( AbstractAlbumCleanUpL() ); |
1594 TRAP_IGNORE( AbstractAlbumCleanUpL() ); |
1591 #endif |
1595 #endif |
1592 |
1596 |
1593 #ifdef __RAMDISK_PERF_ENABLE |
1597 #ifdef __RAMDISK_PERF_ENABLE |
1594 iDbManager->CopyDBsFromRamL(); |
1598 iDbManager->CopyDBsFromRamL(); |
1595 #endif //__RAMDISK_PERF_ENABLE |
1599 #endif //__RAMDISK_PERF_ENABLE |
|
1600 } |
1596 } |
1601 } |
1597 |
1602 |
1598 // ---------------------------------------------------------------------------- |
1603 // ---------------------------------------------------------------------------- |
1599 // Notification of Mtp status change |
1604 // Notification of Mtp status change |
1600 // ---------------------------------------------------------------------------- |
1605 // ---------------------------------------------------------------------------- |