equal
deleted
inserted
replaced
20 #include "mpmserversession.h" |
20 #include "mpmserversession.h" |
21 #include "mpmcommsdataccess.h" |
21 #include "mpmcommsdataccess.h" |
22 #include "mpmconnmonevents.h" |
22 #include "mpmconnmonevents.h" |
23 #include "mpmconfirmdlgstarting.h" |
23 #include "mpmconfirmdlgstarting.h" |
24 #include "extendedconnpref.h" |
24 #include "extendedconnpref.h" |
25 |
25 // ONLY for SUT Emualtor test purpose, a flag is defined in the header file |
|
26 #include "mpmsuttest.h" |
|
27 // end of define |
26 // --------------------------------------------------------------------------- |
28 // --------------------------------------------------------------------------- |
27 // CMPMIapSelection::CMPMIapSelection |
29 // CMPMIapSelection::CMPMIapSelection |
28 // --------------------------------------------------------------------------- |
30 // --------------------------------------------------------------------------- |
29 // |
31 // |
30 CMPMIapSelection::CMPMIapSelection( CMPMCommsDatAccess* aCommsDatAccess, |
32 CMPMIapSelection::CMPMIapSelection( CMPMCommsDatAccess* aCommsDatAccess, |
573 // CMPMIapSelection::CheckGprsServicesAllowedL |
575 // CMPMIapSelection::CheckGprsServicesAllowedL |
574 // ----------------------------------------------------------------------------- |
576 // ----------------------------------------------------------------------------- |
575 // |
577 // |
576 TBool CMPMIapSelection::CheckGprsServicesAllowedL( TBool aIapLanOrWlan ) |
578 TBool CMPMIapSelection::CheckGprsServicesAllowedL( TBool aIapLanOrWlan ) |
577 { |
579 { |
|
580 #ifdef _MPM_SUT_TEST_EMULATOR |
|
581 MPMLOGSTRING( "CMPMIapSelection::CheckGprsServicesAllowedL, SUT test ONLY" ) |
|
582 TBool retVal = iSession->MyServer().IsVoiceCallActiveL(); |
|
583 TBool retVal2 = iSession->MyServer().IsModeGSM(); |
|
584 if ( !iSession->MyServer().IsDTMSupported() ) |
|
585 { |
|
586 if( retVal == EFalse || retVal2 == EFalse ) |
|
587 { |
|
588 return ETrue; |
|
589 } |
|
590 if ( !aIapLanOrWlan ) |
|
591 { |
|
592 MPMLOGSTRING( "CMPMIapSelection::CheckGprsServicesAllowedL not allowed" ) |
|
593 return EFalse; |
|
594 } |
|
595 } |
|
596 return ETrue; |
|
597 #endif |
578 if ( iSession->MyServer().IsVoiceCallActiveL() ) |
598 if ( iSession->MyServer().IsVoiceCallActiveL() ) |
579 { |
599 { |
580 // Check whether we are in GSM or 3G mode. |
600 // Check whether we are in GSM or 3G mode. |
581 // Connection request during voice call is always allowed |
601 // Connection request during voice call is always allowed |
582 // in 3G. In GSM it's allowed in case phone supports dual |
602 // in 3G. In GSM it's allowed in case phone supports dual |