widgets/widgetapp/src/WidgetUiAppUi.cpp
branchRCL_3
changeset 41 4bd5176e1bc8
parent 38 4917f9bf7995
child 46 30342f40acbf
--- a/widgets/widgetapp/src/WidgetUiAppUi.cpp	Tue May 11 17:13:44 2010 +0300
+++ b/widgets/widgetapp/src/WidgetUiAppUi.cpp	Tue May 25 13:52:38 2010 +0300
@@ -400,7 +400,22 @@
     TApaTask task = taskList.FindApp( wapUid );
     task.SendToBackground();
     }
-    
+   
+   
+// -----------------------------------------------------------------------------
+// CWidgetUiAppUi::SendAppToForeground
+// force the application to the foreground
+//
+// -----------------------------------------------------------------------------
+//
+void CWidgetUiAppUi::SendAppToForeground()
+    {
+    TApaTaskList taskList( CEikonEnv::Static()->WsSession() );
+    TUid wapUid( TUid::Uid( KWidgetAppUid ) );
+    TApaTask task = taskList.FindApp( wapUid );
+    task.BringToForeground();
+    }
+        
 // -----------------------------------------------------------------------------
 // CWidgetUiAppUi::SetRotationSupport()
 // check to see if screen oriantation can be changed