216 iPhone.SendDTMFTones( aReqStatus, aTones ); |
216 iPhone.SendDTMFTones( aReqStatus, aTones ); |
217 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::SendDTMFTones exiting" ) |
217 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::SendDTMFTones exiting" ) |
218 } |
218 } |
219 |
219 |
220 // ----------------------------------------------------------------------------- |
220 // ----------------------------------------------------------------------------- |
221 // CSatMultiModeApi::ContinueDTMFStringSending |
|
222 // (other items were commented in a header). |
|
223 // ----------------------------------------------------------------------------- |
|
224 // |
|
225 TInt CSatMultiModeApi::ContinueDTMFStringSending( TBool aContinue ) |
|
226 { |
|
227 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::ContinueDTMFStringSending" ) |
|
228 return iPhone.ContinueDTMFStringSending( aContinue ); |
|
229 } |
|
230 |
|
231 // ----------------------------------------------------------------------------- |
|
232 // CSatMultiModeApi::DialNoFdnCheck |
221 // CSatMultiModeApi::DialNoFdnCheck |
233 // (other items were commented in a header). |
222 // (other items were commented in a header). |
234 // ----------------------------------------------------------------------------- |
223 // ----------------------------------------------------------------------------- |
235 // |
224 // |
236 void CSatMultiModeApi::DialNoFdnCheck( TRequestStatus& aStatus, |
225 void CSatMultiModeApi::DialNoFdnCheck( TRequestStatus& aStatus, |
237 const TDesC8& aCallParams, const TDesC& aTelNumber) |
226 const TDesC8& aCallParams, const TDesC& aTelNumber) |
238 { |
227 { |
239 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::DialNoFdnCheck calling" ) |
228 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::DialNoFdnCheck calling" ) |
240 TInt err = LoadMobileCall(); |
|
241 LOG2( SIMPLE, "SATENGINE: CSatMultiModeApi::DialNoFdnCheck err %d", err ) |
|
242 |
|
243 iCall.DialNoFdnCheck( aStatus, aCallParams, aTelNumber ); |
229 iCall.DialNoFdnCheck( aStatus, aCallParams, aTelNumber ); |
244 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::DialNoFdnCheck exiting" ) |
230 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::DialNoFdnCheck exiting" ) |
245 } |
231 } |
246 |
232 |
247 // ----------------------------------------------------------------------------- |
233 // ----------------------------------------------------------------------------- |
306 // ----------------------------------------------------------------------------- |
292 // ----------------------------------------------------------------------------- |
307 // CSatMultiModeApi::IsCallIncoming |
293 // CSatMultiModeApi::IsCallIncoming |
308 // (other items were commented in a header). |
294 // (other items were commented in a header). |
309 // ----------------------------------------------------------------------------- |
295 // ----------------------------------------------------------------------------- |
310 // |
296 // |
311 TBool CSatMultiModeApi::IsCallIncoming() |
297 TBool CSatMultiModeApi::IsCallIncoming( ) |
312 { |
298 { |
313 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::IsCallIncoming entering" ) |
299 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::IsCallIncoming entering" ) |
314 TInt lines( 0 ); |
300 TInt lines( 0 ); |
315 TBool callIncoming( EFalse ); |
301 TBool callIncoming( EFalse ); |
316 |
302 |
353 |
339 |
354 LOG2( SIMPLE, "SATENGINE: CSatMultiModeApi::IsCallIncoming exiting %d", |
340 LOG2( SIMPLE, "SATENGINE: CSatMultiModeApi::IsCallIncoming exiting %d", |
355 callIncoming ) |
341 callIncoming ) |
356 return callIncoming; |
342 return callIncoming; |
357 } |
343 } |
358 |
344 // ----------------------------------------------------------------------------- |
359 // ----------------------------------------------------------------------------- |
345 // CSatMultiModeApi::SetActiveAndWait |
360 // CSatMultiModeApi::NotifyMobileCallStatusChange |
|
361 // ----------------------------------------------------------------------------- |
|
362 // |
|
363 void CSatMultiModeApi::NotifyMobileCallStatusChange ( |
|
364 TRequestStatus& aReqStatus, RMobileCall::TMobileCallStatus& aStatus ) |
|
365 { |
|
366 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::NotifyMobileCallStatusChange \ |
|
367 calling" ) |
|
368 iCall.NotifyMobileCallStatusChange( aReqStatus, aStatus ); |
|
369 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::NotifyMobileCallStatusChange \ |
|
370 exiting" ) |
|
371 } |
|
372 |
|
373 // ----------------------------------------------------------------------------- |
|
374 // CSatMultiModeApi::NotifyCallStatusChangeCancel |
|
375 // (other items were commented in a header). |
|
376 // ----------------------------------------------------------------------------- |
|
377 // |
|
378 void CSatMultiModeApi::NotifyCallStatusChangeCancel() |
|
379 { |
|
380 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::DialCancel calling" ) |
|
381 iCall.NotifyStatusChangeCancel(); |
|
382 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::DialCancel exiting" ) |
|
383 } |
|
384 |
|
385 // ----------------------------------------------------------------------------- |
|
386 // CSatMultiModeApi::NotifyMobileCallStatusChange |
|
387 // ----------------------------------------------------------------------------- |
|
388 // |
|
389 void CSatMultiModeApi::TerminateActiveCalls(TRequestStatus& aReqStatus) |
|
390 { |
|
391 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::TerminateAllCalls calling" ) |
|
392 |
|
393 iPhone.TerminateActiveCalls( aReqStatus ); |
|
394 |
|
395 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::TerminateAllCalls exiting" ) |
|
396 } |
|
397 |
|
398 // ----------------------------------------------------------------------------- |
|
399 // CSatMultiModeApi::GetMobileCallInfo |
|
400 // ----------------------------------------------------------------------------- |
|
401 // |
|
402 TInt CSatMultiModeApi::GetMobileCallInfo(TDes8& aCallInfo) |
|
403 { |
|
404 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::GetMobileCallInfo calling" ) |
|
405 TInt ret = iCall.GetMobileCallInfo( aCallInfo ); |
|
406 LOG2( SIMPLE, "SATENGINE: CSatMultiModeApi::GetMobileCallInfo exiting %d", |
|
407 ret ) |
|
408 return ret; |
|
409 } |
|
410 |
|
411 // ----------------------------------------------------------------------------- |
|
412 // CSatMultiModeApi::GetMobileCallInfo |
|
413 // ----------------------------------------------------------------------------- |
|
414 // |
|
415 void CSatMultiModeApi::DialEmergencyCall(TRequestStatus& aReqStatus, |
|
416 const TDesC& aNumber) |
|
417 { |
|
418 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::DialEmergencyCall calling" ) |
|
419 TInt err = LoadMobileCall(); |
|
420 LOG2( SIMPLE, "SATENGINE: CSatMultiModeApi::DialEmergencyCall err %d", err ) |
|
421 iCall.DialEmergencyCall( aReqStatus, aNumber ); |
|
422 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::DialEmergencyCall exiting" ) |
|
423 } |
|
424 |
|
425 // ----------------------------------------------------------------------------- |
|
426 // CSatMultiModeApi::ConstructL |
|
427 // ----------------------------------------------------------------------------- |
346 // ----------------------------------------------------------------------------- |
428 // |
347 // |
429 void CSatMultiModeApi::ConstructL() |
348 void CSatMultiModeApi::ConstructL() |
430 { |
349 { |
431 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::ConstructL calling" ) |
350 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::ConstructL calling" ) |
613 |
533 |
614 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::LoadPhoneModuleL exiting" ) |
534 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::LoadPhoneModuleL exiting" ) |
615 } |
535 } |
616 |
536 |
617 // ----------------------------------------------------------------------------- |
537 // ----------------------------------------------------------------------------- |
618 // CSatMultiModeApi::LoadMobileCall |
538 // CSatMultiModeApi::LoadMobileCallL |
619 // (other items were commented in a header). |
539 // (other items were commented in a header). |
620 // ----------------------------------------------------------------------------- |
540 // ----------------------------------------------------------------------------- |
621 // |
541 // |
622 TInt CSatMultiModeApi::LoadMobileCall() |
542 void CSatMultiModeApi::LoadMobileCallL() |
623 { |
543 { |
624 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::LoadMobileCallL calling" ) |
544 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::LoadMobileCallL calling" ) |
625 |
545 |
626 if ( iCallOpened ) |
|
627 { |
|
628 iCall.Close(); |
|
629 } |
|
630 |
|
631 if ( iLineOpened ) |
|
632 { |
|
633 iLine.Close(); |
|
634 } |
|
635 |
|
636 TInt numberOfTries( 1 ); // Indicates loop tryouts |
546 TInt numberOfTries( 1 ); // Indicates loop tryouts |
637 TBool loopSuccess( EFalse ); // Loop stopper, if this is ETrue |
547 TBool loopSuccess( EFalse ); // Loop stopper, if this is ETrue |
638 TInt error = KErrNone; // Error that is Leave'd |
548 TInt error = KErrNone; // Error that is Leave'd |
639 |
549 |
640 while ( !loopSuccess && numberOfTries <= KLoopMaxTryouts ) |
550 while ( !loopSuccess && numberOfTries <= KLoopMaxTryouts ) |
655 LOG2( NORMAL, "SATENGINE: CSatMultiModeApi::LoadMobileCallL \ |
565 LOG2( NORMAL, "SATENGINE: CSatMultiModeApi::LoadMobileCallL \ |
656 iLine numberOfTries: %i", numberOfTries ) |
566 iLine numberOfTries: %i", numberOfTries ) |
657 |
567 |
658 LOG2( NORMAL, "SATENGINE: CSatMultiModeApi::LoadMobileCallL \ |
568 LOG2( NORMAL, "SATENGINE: CSatMultiModeApi::LoadMobileCallL \ |
659 iLine error: %i", error ) |
569 iLine error: %i", error ) |
|
570 User::LeaveIfError( error ); |
660 |
571 |
661 numberOfTries = 1; |
572 numberOfTries = 1; |
662 loopSuccess = EFalse; |
573 loopSuccess = EFalse; |
663 |
574 error = KErrNone; |
664 while ( iLineOpened &&!loopSuccess && numberOfTries <= KLoopMaxTryouts ) |
575 |
|
576 while ( !loopSuccess && numberOfTries <= KLoopMaxTryouts ) |
665 { |
577 { |
666 error = iCall.OpenNewCall( iLine ); |
578 error = iCall.OpenNewCall( iLine ); |
667 if ( KErrNone == error ) |
579 if ( KErrNone == error ) |
668 { |
580 { |
669 loopSuccess = ETrue; |
581 loopSuccess = ETrue; |
680 iCall numberOfTries: %i", numberOfTries ) |
592 iCall numberOfTries: %i", numberOfTries ) |
681 |
593 |
682 LOG2( NORMAL, "SATENGINE: CSatMultiModeApi::LoadMobileCallL \ |
594 LOG2( NORMAL, "SATENGINE: CSatMultiModeApi::LoadMobileCallL \ |
683 iCall error: %i", error ) |
595 iCall error: %i", error ) |
684 |
596 |
685 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::LoadMobileCallL exiting" ) |
597 User::LeaveIfError( error ); |
686 return error; |
598 |
|
599 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::LoadMobileCallL exiting" ) |
687 } |
600 } |
688 |
601 |
689 // ----------------------------------------------------------------------------- |
602 // ----------------------------------------------------------------------------- |
690 // CSatMultiModeApi::LoadMobileCallL |
603 // CSatMultiModeApi::LoadMobileCallL |
691 // (other items were commented in a header). |
604 // (other items were commented in a header). |