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 // ----------------------------------------------------------------------------- |
221 // CSatMultiModeApi::DialNoFdnCheck |
232 // CSatMultiModeApi::DialNoFdnCheck |
222 // (other items were commented in a header). |
233 // (other items were commented in a header). |
223 // ----------------------------------------------------------------------------- |
234 // ----------------------------------------------------------------------------- |
224 // |
235 // |
225 void CSatMultiModeApi::DialNoFdnCheck( TRequestStatus& aStatus, |
236 void CSatMultiModeApi::DialNoFdnCheck( TRequestStatus& aStatus, |
226 const TDesC8& aCallParams, const TDesC& aTelNumber) |
237 const TDesC8& aCallParams, const TDesC& aTelNumber) |
227 { |
238 { |
228 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::DialNoFdnCheck calling" ) |
239 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::DialNoFdnCheck calling" ) |
|
240 TInt err = LoadMobileCall(); |
|
241 LOG2( SIMPLE, "SATENGINE: CSatMultiModeApi::DialNoFdnCheck err %d", err ) |
|
242 |
229 iCall.DialNoFdnCheck( aStatus, aCallParams, aTelNumber ); |
243 iCall.DialNoFdnCheck( aStatus, aCallParams, aTelNumber ); |
230 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::DialNoFdnCheck exiting" ) |
244 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::DialNoFdnCheck exiting" ) |
231 } |
245 } |
232 |
246 |
233 // ----------------------------------------------------------------------------- |
247 // ----------------------------------------------------------------------------- |
292 // ----------------------------------------------------------------------------- |
306 // ----------------------------------------------------------------------------- |
293 // CSatMultiModeApi::IsCallIncoming |
307 // CSatMultiModeApi::IsCallIncoming |
294 // (other items were commented in a header). |
308 // (other items were commented in a header). |
295 // ----------------------------------------------------------------------------- |
309 // ----------------------------------------------------------------------------- |
296 // |
310 // |
297 TBool CSatMultiModeApi::IsCallIncoming( ) |
311 TBool CSatMultiModeApi::IsCallIncoming() |
298 { |
312 { |
299 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::IsCallIncoming entering" ) |
313 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::IsCallIncoming entering" ) |
300 TInt lines( 0 ); |
314 TInt lines( 0 ); |
301 TBool callIncoming( EFalse ); |
315 TBool callIncoming( EFalse ); |
302 |
316 |
339 |
353 |
340 LOG2( SIMPLE, "SATENGINE: CSatMultiModeApi::IsCallIncoming exiting %d", |
354 LOG2( SIMPLE, "SATENGINE: CSatMultiModeApi::IsCallIncoming exiting %d", |
341 callIncoming ) |
355 callIncoming ) |
342 return callIncoming; |
356 return callIncoming; |
343 } |
357 } |
344 // ----------------------------------------------------------------------------- |
358 |
345 // CSatMultiModeApi::SetActiveAndWait |
359 // ----------------------------------------------------------------------------- |
|
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 |
346 // ----------------------------------------------------------------------------- |
427 // ----------------------------------------------------------------------------- |
347 // |
428 // |
348 void CSatMultiModeApi::ConstructL() |
429 void CSatMultiModeApi::ConstructL() |
349 { |
430 { |
350 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::ConstructL calling" ) |
431 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::ConstructL calling" ) |
533 |
613 |
534 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::LoadPhoneModuleL exiting" ) |
614 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::LoadPhoneModuleL exiting" ) |
535 } |
615 } |
536 |
616 |
537 // ----------------------------------------------------------------------------- |
617 // ----------------------------------------------------------------------------- |
538 // CSatMultiModeApi::LoadMobileCallL |
618 // CSatMultiModeApi::LoadMobileCall |
539 // (other items were commented in a header). |
619 // (other items were commented in a header). |
540 // ----------------------------------------------------------------------------- |
620 // ----------------------------------------------------------------------------- |
541 // |
621 // |
542 void CSatMultiModeApi::LoadMobileCallL() |
622 TInt CSatMultiModeApi::LoadMobileCall() |
543 { |
623 { |
544 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::LoadMobileCallL calling" ) |
624 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::LoadMobileCallL calling" ) |
545 |
625 |
|
626 if ( iCallOpened ) |
|
627 { |
|
628 iCall.Close(); |
|
629 } |
|
630 |
|
631 if ( iLineOpened ) |
|
632 { |
|
633 iLine.Close(); |
|
634 } |
|
635 |
546 TInt numberOfTries( 1 ); // Indicates loop tryouts |
636 TInt numberOfTries( 1 ); // Indicates loop tryouts |
547 TBool loopSuccess( EFalse ); // Loop stopper, if this is ETrue |
637 TBool loopSuccess( EFalse ); // Loop stopper, if this is ETrue |
548 TInt error = KErrNone; // Error that is Leave'd |
638 TInt error = KErrNone; // Error that is Leave'd |
549 |
639 |
550 while ( !loopSuccess && numberOfTries <= KLoopMaxTryouts ) |
640 while ( !loopSuccess && numberOfTries <= KLoopMaxTryouts ) |
565 LOG2( NORMAL, "SATENGINE: CSatMultiModeApi::LoadMobileCallL \ |
655 LOG2( NORMAL, "SATENGINE: CSatMultiModeApi::LoadMobileCallL \ |
566 iLine numberOfTries: %i", numberOfTries ) |
656 iLine numberOfTries: %i", numberOfTries ) |
567 |
657 |
568 LOG2( NORMAL, "SATENGINE: CSatMultiModeApi::LoadMobileCallL \ |
658 LOG2( NORMAL, "SATENGINE: CSatMultiModeApi::LoadMobileCallL \ |
569 iLine error: %i", error ) |
659 iLine error: %i", error ) |
570 User::LeaveIfError( error ); |
|
571 |
660 |
572 numberOfTries = 1; |
661 numberOfTries = 1; |
573 loopSuccess = EFalse; |
662 loopSuccess = EFalse; |
574 error = KErrNone; |
663 |
575 |
664 while ( iLineOpened &&!loopSuccess && numberOfTries <= KLoopMaxTryouts ) |
576 while ( !loopSuccess && numberOfTries <= KLoopMaxTryouts ) |
|
577 { |
665 { |
578 error = iCall.OpenNewCall( iLine ); |
666 error = iCall.OpenNewCall( iLine ); |
579 if ( KErrNone == error ) |
667 if ( KErrNone == error ) |
580 { |
668 { |
581 loopSuccess = ETrue; |
669 loopSuccess = ETrue; |
592 iCall numberOfTries: %i", numberOfTries ) |
680 iCall numberOfTries: %i", numberOfTries ) |
593 |
681 |
594 LOG2( NORMAL, "SATENGINE: CSatMultiModeApi::LoadMobileCallL \ |
682 LOG2( NORMAL, "SATENGINE: CSatMultiModeApi::LoadMobileCallL \ |
595 iCall error: %i", error ) |
683 iCall error: %i", error ) |
596 |
684 |
597 User::LeaveIfError( error ); |
685 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::LoadMobileCallL exiting" ) |
598 |
686 return error; |
599 LOG( SIMPLE, "SATENGINE: CSatMultiModeApi::LoadMobileCallL exiting" ) |
|
600 } |
687 } |
601 |
688 |
602 // ----------------------------------------------------------------------------- |
689 // ----------------------------------------------------------------------------- |
603 // CSatMultiModeApi::LoadMobileCallL |
690 // CSatMultiModeApi::LoadMobileCallL |
604 // (other items were commented in a header). |
691 // (other items were commented in a header). |