diff -r 607cc97c6047 -r fc383c0181e8 vtuis/lcvtindicatorplugin/src/lcvtindicatorplugin.cpp --- a/vtuis/lcvtindicatorplugin/src/lcvtindicatorplugin.cpp Fri Jul 23 12:39:42 2010 +0300 +++ b/vtuis/lcvtindicatorplugin/src/lcvtindicatorplugin.cpp Mon Aug 23 15:49:33 2010 +0300 @@ -18,8 +18,7 @@ #include #include #include -#include -#include +#include #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); } +