logsui/AppSrc/CLogsRecentListView.cpp
branchRCL_3
changeset 17 2666d9724c76
parent 3 04ab22b956c2
child 18 d4f567ce2e7c
equal deleted inserted replaced
15:34879f5cfc63 17:2666d9724c76
   524         }
   524         }
   525     else
   525     else
   526         {
   526         {
   527         // Just to make sure the inputblocker is not on
   527         // Just to make sure the inputblocker is not on
   528         RemoveInputBlocker();
   528         RemoveInputBlocker();
   529         CurrentModel()->DoActivateL( MLogsModel::EResetAndRefresh );
   529         TRAPD( err, CurrentModel()->DoActivateL( MLogsModel::EResetAndRefresh ));   
       
   530         if( err ) 
       
   531             {
       
   532             iCoeEnv->HandleError( err );
       
   533             }
       
   534         if( err == KErrDiskFull )
       
   535             {
       
   536             RWsSession& wsSession = CCoeEnv::Static()->WsSession();  
       
   537             TApaTask logsui( wsSession );
       
   538             TInt wgId = CCoeEnv::Static()->RootWin().WindowGroupId();
       
   539             logsui.SetWgId( wgId );
       
   540             logsui.KillTask();  
       
   541             return;	
       
   542             }
   530         
   543         
   531         // By default on gaining foreground, just refresh the list. So when active applications list, 
   544         // By default on gaining foreground, just refresh the list. So when active applications list, 
   532         // keylock or some note (like when plugin in the charger) is shown the list doesn't flicker. 
   545         // keylock or some note (like when plugin in the charger) is shown the list doesn't flicker. 
   533         // When view is deactivated this is set to MLogsModel::EResetAndRefresh.
   546         // When view is deactivated this is set to MLogsModel::EResetAndRefresh.
   534         iResetAndRefreshOnGainingForeground = MLogsModel::ERefresh; 
   547         iResetAndRefreshOnGainingForeground = MLogsModel::ERefresh; 
   845                 SetEventListCurrent( KErrNotFound );//just to make sure that UI does not try to read anything from eventarray                
   858                 SetEventListCurrent( KErrNotFound );//just to make sure that UI does not try to read anything from eventarray                
   846                 TRAPD( err, model->DoActivateL( iResetAndRefreshOnGainingForeground ) );  
   859                 TRAPD( err, model->DoActivateL( iResetAndRefreshOnGainingForeground ) );  
   847                 if( err ) 
   860                 if( err ) 
   848                     {
   861                     {
   849                     iCoeEnv->HandleError( err );
   862                     iCoeEnv->HandleError( err );
       
   863                     }
       
   864                 if( err == KErrDiskFull )
       
   865                     {
       
   866                     RWsSession& wsSession = CCoeEnv::Static()->WsSession();  
       
   867                     TApaTask logsui( wsSession );
       
   868                     TInt wgId = CCoeEnv::Static()->RootWin().WindowGroupId();
       
   869                     logsui.SetWgId( wgId );
       
   870                     logsui.KillTask();  
       
   871                     return;
   850                     }
   872                     }
   851                 
   873                 
   852                 // By default on gaining foreground, just refresh the list. So when active applications list, 
   874                 // By default on gaining foreground, just refresh the list. So when active applications list, 
   853                 // keylock or some note (like when plugin in the charger) is shown the list doesn't flicker. 
   875                 // keylock or some note (like when plugin in the charger) is shown the list doesn't flicker. 
   854                 // When view is deactivated this is set to MLogsModel::EResetAndRefresh.
   876                 // When view is deactivated this is set to MLogsModel::EResetAndRefresh.