vtuis/lcvtindicatorplugin/src/lcvtindicatorplugin.cpp
changeset 36 f5f903566743
parent 33 f504698d93b6
--- a/vtuis/lcvtindicatorplugin/src/lcvtindicatorplugin.cpp	Wed Aug 18 09:50:25 2010 +0300
+++ b/vtuis/lcvtindicatorplugin/src/lcvtindicatorplugin.cpp	Thu Sep 02 20:28:30 2010 +0300
@@ -18,8 +18,7 @@
 #include <QtPlugin>
 #include <QVariant>
 #include <QDebug>
-#include <eikenv.h>
-#include <apgtask.h>
+#include <QProcess>
 
 #include "lcvtindicatorplugin.h"
 
@@ -37,7 +36,7 @@
     mError(0)
 {
     qDebug() << "LcVtIndicatorPlugin::LcVtIndicatorPlugin()";
-    mIndicatorTypes << IndicatorType;
+    mIndicatorTypes << IndicatorType;    
 }
 
 // -----------------------------------------------------------------------------
@@ -45,7 +44,7 @@
 // -----------------------------------------------------------------------------
 //
 LcVtIndicatorPlugin::~LcVtIndicatorPlugin()
-{
+{    
 }
 
 // -----------------------------------------------------------------------------
@@ -160,15 +159,8 @@
 //
 bool LcVtIndicatorPlugin::bringVtToForeground()
 {
-    bool ret = false;
-    RWsSession& wsSession = CEikonEnv::Static()->WsSession();
-    TApaTaskList taskList( wsSession );
-    const TUid KUidVtApp = { 0x101F8681 }; 
-    TApaTask task = taskList.FindApp(KUidVtApp);
-    if (task.Exists()) {
-        qDebug() << "-> SwitchBackToVTCall";
-        task.BringToForeground();
-        ret = true;
-    }
-    return ret;
+    qDebug() << "LcVtIndicatorPlugin::bringVtToForeground()";
+    const QString AppName = "videotelui.exe";
+    return QProcess::startDetached(AppName);
 }
+