equal
deleted
inserted
replaced
174 } |
174 } |
175 else |
175 else |
176 { |
176 { |
177 RApaLsSession apaLsSession; |
177 RApaLsSession apaLsSession; |
178 User::LeaveIfError( apaLsSession.Connect() ); |
178 User::LeaveIfError( apaLsSession.Connect() ); |
|
179 CleanupClosePushL(apaLsSession); |
179 |
180 |
180 TApaAppInfo appInfo; |
181 TApaAppInfo appInfo; |
181 User::LeaveIfError( apaLsSession.GetAppInfo( appInfo, KVoiceUiUID ) ); |
182 User::LeaveIfError( apaLsSession.GetAppInfo( appInfo, KVoiceUiUID ) ); |
182 |
183 |
183 TFileName appName = appInfo.iFullName; |
184 TFileName appName = appInfo.iFullName; |
186 apaCommandLine->SetExecutableNameL( appName ); |
187 apaCommandLine->SetExecutableNameL( appName ); |
187 apaCommandLine->SetCommandL( EApaCommandRunWithoutViews ); |
188 apaCommandLine->SetCommandL( EApaCommandRunWithoutViews ); |
188 User::LeaveIfError ( apaLsSession.StartApp( *apaCommandLine ) ); |
189 User::LeaveIfError ( apaLsSession.StartApp( *apaCommandLine ) ); |
189 CleanupStack::PopAndDestroy( apaCommandLine ); |
190 CleanupStack::PopAndDestroy( apaCommandLine ); |
190 |
191 |
191 apaLsSession.Close(); |
192 CleanupStack::PopAndDestroy(&apaLsSession); |
192 } |
193 } |
193 } |
194 } |
194 |
195 |
195 // End of File |
196 // End of File |