widgets/widgetapp/src/WidgetUiAppUi.cpp
branchRCL_3
changeset 41 4bd5176e1bc8
parent 38 4917f9bf7995
child 46 30342f40acbf
equal deleted inserted replaced
40:8bfb9186a8b8 41:4bd5176e1bc8
   398     TApaTaskList taskList( CEikonEnv::Static()->WsSession() );
   398     TApaTaskList taskList( CEikonEnv::Static()->WsSession() );
   399     TUid wapUid( TUid::Uid( KWidgetAppUid ) );
   399     TUid wapUid( TUid::Uid( KWidgetAppUid ) );
   400     TApaTask task = taskList.FindApp( wapUid );
   400     TApaTask task = taskList.FindApp( wapUid );
   401     task.SendToBackground();
   401     task.SendToBackground();
   402     }
   402     }
   403     
   403    
       
   404    
       
   405 // -----------------------------------------------------------------------------
       
   406 // CWidgetUiAppUi::SendAppToForeground
       
   407 // force the application to the foreground
       
   408 //
       
   409 // -----------------------------------------------------------------------------
       
   410 //
       
   411 void CWidgetUiAppUi::SendAppToForeground()
       
   412     {
       
   413     TApaTaskList taskList( CEikonEnv::Static()->WsSession() );
       
   414     TUid wapUid( TUid::Uid( KWidgetAppUid ) );
       
   415     TApaTask task = taskList.FindApp( wapUid );
       
   416     task.BringToForeground();
       
   417     }
       
   418         
   404 // -----------------------------------------------------------------------------
   419 // -----------------------------------------------------------------------------
   405 // CWidgetUiAppUi::SetRotationSupport()
   420 // CWidgetUiAppUi::SetRotationSupport()
   406 // check to see if screen oriantation can be changed
   421 // check to see if screen oriantation can be changed
   407 // this code must match Widget::Widget in WidgetEngine
   422 // this code must match Widget::Widget in WidgetEngine
   408 //
   423 //