302 HBufC* client = NULL; |
302 HBufC* client = NULL; |
303 TInt clientError = ClientL(client); |
303 TInt clientError = ClientL(client); |
304 if(!clientError) |
304 if(!clientError) |
305 { |
305 { |
306 // Set name of Client |
306 // Set name of Client |
307 iTrace->Trace(_L("clientError = 0"), KTraceFileName, __LINE__); |
|
308 if(client) |
307 if(client) |
309 { |
308 { |
310 iTrace->Trace(_L("calling suplReqInfo->SetLCSClientL"), KTraceFileName, __LINE__); |
309 iTrace->Trace(_L("calling suplReqInfo->SetLCSClientL"), KTraceFileName, __LINE__); |
311 suplReqInfo->SetLCSClientL(*client,iIdType); |
310 suplReqInfo->SetLCSClientL(*client,iIdType); |
312 } |
311 } |
313 |
312 |
314 delete client; |
313 delete client; |
315 } |
314 } |
316 iTrace->Trace(_L("Line 315 successfully called"), KTraceFileName, __LINE__); |
315 |
317 if(!reqError || !clientError) |
316 if(!reqError || !clientError) |
318 { |
317 { |
319 // Verify the request information using Network Privacy |
318 // Verify the request information using Network Privacy |
320 // asynchronous call with callback function HandleVerifyComplete. |
319 // asynchronous call with callback function HandleVerifyComplete. |
321 // Argument CPosNetworkPrivacy::EDecisionRejected is to show to the user |
320 // Argument CPosNetworkPrivacy::EDecisionRejected is to show to the user |
322 // what decision the GSM Network will make if the user won't answer before |
321 // what decision the GSM Network will make if the user won't answer before |
323 // a timeout comes in from GSM Network. In this case verification will |
322 // a timeout comes in from GSM Network. In this case verification will |
324 // be rejected. |
323 // be rejected. |
325 iTrace->Trace(_L("Calling iNetworkPrivacy->VerifyLocationRequestL"), KTraceFileName, __LINE__); |
324 iTrace->Trace(_L("Calling iNetworkPrivacy->VerifyLocationRequestL"), KTraceFileName, __LINE__); |
326 TInt err = KErrNone; |
|
327 |
325 |
328 TRAP(err, iNetworkPrivacy->VerifyLocationRequestL(*suplReqInfo, |
326 |
329 iGSMRequestId, *this, aTimeOutStrategy);) |
327 TRAP_IGNORE(iNetworkPrivacy->VerifyLocationRequestL(*suplReqInfo, |
|
328 iGSMRequestId, *this, aTimeOutStrategy);) |
330 |
329 |
331 TBuf<64> msg; |
330 TBuf<64> msg; |
332 msg.AppendNum(err); |
|
333 iTrace->Trace(_L("Trap value: "), KTraceFileName, __LINE__); |
|
334 iTrace->Trace(msg, KTraceFileName, __LINE__); |
|
335 iTrace->Trace(_L("iNetworkPrivacy->VerifyLocationRequestL called "), KTraceFileName, __LINE__); |
|
336 |
|
337 |
|
338 msg.Copy(_L("1.0 Privacy Fw Generated Verification Request id:")); |
331 msg.Copy(_L("1.0 Privacy Fw Generated Verification Request id:")); |
339 msg.AppendNum(iGSMRequestId); |
332 msg.AppendNum(iGSMRequestId); |
340 iTrace->Trace(msg, KTraceFileName, __LINE__); |
333 iTrace->Trace(msg, KTraceFileName, __LINE__); |
341 |
334 |
342 StartTimer(); |
335 StartTimer(); |