srsf/vcommandmanager/src/vcmanagervoiceheadsetlauncher.cpp
branchRCL_3
changeset 11 6347473a7bb2
parent 0 bf1d17376201
equal deleted inserted replaced
9:fc313e1df071 11:6347473a7bb2
    78     {
    78     {
    79     RUBY_DEBUG0( "CVCommandManagerVoiceHeadSetLauncher::~CVCommandManagerVoiceHeadSetLauncher - START" );
    79     RUBY_DEBUG0( "CVCommandManagerVoiceHeadSetLauncher::~CVCommandManagerVoiceHeadSetLauncher - START" );
    80     
    80     
    81     // iCallHandlingTarget will be destroyed when iSelector is destroyed.  
    81     // iCallHandlingTarget will be destroyed when iSelector is destroyed.  
    82     delete iSelector;
    82     delete iSelector;
       
    83     iProperty.Close();
    83     
    84     
    84     RUBY_DEBUG0( "CVCommandManagerVoiceHeadSetLauncher::~CVCommandManagerVoiceHeadSetLauncher - EXIT" );
    85     RUBY_DEBUG0( "CVCommandManagerVoiceHeadSetLauncher::~CVCommandManagerVoiceHeadSetLauncher - EXIT" );
    85     }
    86     }
    86 
    87 
    87 
    88 
   235             }
   236             }
   236         else
   237         else
   237             {
   238             {
   238             RApaLsSession apaLsSession;
   239             RApaLsSession apaLsSession;
   239             User::LeaveIfError( apaLsSession.Connect() );
   240             User::LeaveIfError( apaLsSession.Connect() );
       
   241             CleanupClosePushL(apaLsSession);
   240             
   242             
   241             TApaAppInfo appInfo;
   243             TApaAppInfo appInfo;
   242             User::LeaveIfError( apaLsSession.GetAppInfo( appInfo, KVoiceUiUID ) );
   244             User::LeaveIfError( apaLsSession.GetAppInfo( appInfo, KVoiceUiUID ) );
   243             
   245             
   244             TFileName appName = appInfo.iFullName;
   246             TFileName appName = appInfo.iFullName;
   254                 }
   256                 }
   255             
   257             
   256             User::LeaveIfError ( apaLsSession.StartApp( *apaCommandLine ) );
   258             User::LeaveIfError ( apaLsSession.StartApp( *apaCommandLine ) );
   257             CleanupStack::PopAndDestroy( apaCommandLine );
   259             CleanupStack::PopAndDestroy( apaCommandLine );
   258 
   260 
   259             apaLsSession.Close();
   261             CleanupStack::PopAndDestroy(&apaLsSession);
   260             }    
   262             }    
   261         }
   263         }
   262     }
   264     }
   263     
   265     
   264 // ---------------------------------------------------------
   266 // ---------------------------------------------------------