serviceproviders/sapi_location/tsrc/dev/tlocationprovidertest/src/tgetlocstraytest.cpp
equal
deleted
inserted
replaced
112 } |
112 } |
113 |
113 |
114 |
114 |
115 TInt StrayTestGetLocL() |
115 TInt StrayTestGetLocL() |
116 { |
116 { |
117 |
117 __UHEAP_MARK ; |
118 CActiveScheduler *Scheduler = new CActiveScheduler ; |
118 CActiveScheduler *Scheduler = new CActiveScheduler ; |
119 |
119 |
120 CActiveScheduler :: Install(Scheduler) ; |
120 CActiveScheduler :: Install(Scheduler) ; |
121 |
121 |
122 |
122 |
180 CmdBuf = KCmdGetLocation ; |
180 CmdBuf = KCmdGetLocation ; |
181 locinterface->ExecuteCmdL(CmdBuf , *InputList , *OutParmList ,KLiwOptASyncronous , &GetLoc); |
181 locinterface->ExecuteCmdL(CmdBuf , *InputList , *OutParmList ,KLiwOptASyncronous , &GetLoc); |
182 |
182 |
183 CActiveScheduler :: Start() ; |
183 CActiveScheduler :: Start() ; |
184 |
184 |
185 |
185 a.ResetAndDestroy() ; |
186 locinterface->Close() ; |
186 locinterface->Close() ; |
187 delete ServiceHandler ; |
187 delete ServiceHandler ; |
188 delete InputList ; |
188 delete InputList ; |
189 delete OutParmList ; |
189 delete OutParmList ; |
190 delete Scheduler ; |
190 delete Scheduler ; |
|
191 __UHEAP_MARKEND ; |
191 return 0 ; // Controll never reaches here |
192 return 0 ; // Controll never reaches here |
192 } |
193 } |
193 |
194 |
194 |
195 |
195 TInt StrayTestGetLoc(TAny */*Arg*/) |
196 TInt StrayTestGetLoc(TAny */*Arg*/) |