mpserviceplugins/mpxsqlitedbhgplugin/src/mpxdbhandler.cpp
changeset 41 ea59c434026a
parent 29 8192e5b5c935
child 38 b93f525c9244
equal deleted inserted replaced
32:c163ef0b758d 41:ea59c434026a
  1547     if(err == KErrDiskFull)
  1547     if(err == KErrDiskFull)
  1548         {
  1548         {
  1549             iOutOfDisk = ETrue;
  1549             iOutOfDisk = ETrue;
  1550         }
  1550         }
  1551 
  1551 
       
  1552     User::LeaveIfError( err );
       
  1553     	
  1552     if(!iOutOfDisk)
  1554     if(!iOutOfDisk)
  1553     {
  1555     {
  1554         MPX_TRAP(err,CheckDiskSpaceOnDrivesL());
  1556         MPX_TRAP(err,CheckDiskSpaceOnDrivesL());
  1555 
  1557 
  1556         if(err == KErrDiskFull)
  1558         if(err == KErrDiskFull)
  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 // ----------------------------------------------------------------------------