mmsharing/mmshui/src/musuireceivecontroller.cpp
branchRCL_3
changeset 21 33a5d2bbf6fc
parent 20 2d2c7d1515f7
equal deleted inserted replaced
20:2d2c7d1515f7 21:33a5d2bbf6fc
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  Application's UI class.
    14 * Description:  Application's UI class.
    15 *  Version     : %version:  be1sipx1#75.1.14 % << Don't touch! Updated by Synergy at check-out.
    15 *  Version     : %version:  be1sipx1#75.1.17 % << Don't touch! Updated by Synergy at check-out.
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 
    20 
   266         {
   266         {
   267        	MUS_LOG1( "mus: [MUSUI ]     ReadIntPropertyL leave code: %d", errorPrivacyStatus )
   267        	MUS_LOG1( "mus: [MUSUI ]     ReadIntPropertyL leave code: %d", errorPrivacyStatus )
   268         HandleError( errorPrivacyStatus );
   268         HandleError( errorPrivacyStatus );
   269         }
   269         }
   270         
   270         
   271     if ( privacyStatus == 1 )
   271     if ( privacyStatus == 1 && !iOperatorSpecificFunctionality )
   272       {
   272       {
   273        MUS_LOG( "mus: [MUSUI ]  Call is from private number" )
   273        MUS_LOG( "mus: [MUSUI ]  Call is from private number" )
   274        iOriginator = KPrivateNumber().AllocL();
   274        iOriginator = KPrivateNumber().AllocL();
   275       }
   275       }
   276     else if( iOperatorSpecificFunctionality )
   276     else if( iOperatorSpecificFunctionality )
   285     // Cancel the 10 seconds timer:
   285     // Cancel the 10 seconds timer:
   286     iTimer->Cancel();
   286     iTimer->Cancel();
   287     
   287     
   288     // Display the query dialog:
   288     // Display the query dialog:
   289     
   289     
   290     if ( privacyStatus == 1 )
   290     if ( privacyStatus == 1 && !iOperatorSpecificFunctionality )
   291         {
   291         {
   292         iReceiveObserver.ShowInvitationQueryL( *iOriginator );
   292         iReceiveObserver.ShowInvitationQueryL( *iOriginator );
   293         }  
   293         }  
   294     else if ( iOperatorSpecificFunctionality && aOriginatorIdentity.Length() != 0 )
   294     else if ( iOperatorSpecificFunctionality && aOriginatorIdentity.Length() != 0 )
   295         {
   295         {
   426 // -----------------------------------------------------------------------------
   426 // -----------------------------------------------------------------------------
   427 //
   427 //
   428 void CMusUiReceiveController::DeleteEngineSession()
   428 void CMusUiReceiveController::DeleteEngineSession()
   429     {
   429     {
   430     MUS_LOG( "mus: [MUSUI ]  -> CMusUiReceiveController::DeleteEngineSession" );
   430     MUS_LOG( "mus: [MUSUI ]  -> CMusUiReceiveController::DeleteEngineSession" );
       
   431     if ( iSession && iSession->IsAudioRoutingLoudSpeaker() )
       
   432 	    {
       
   433 	    iShowDialog = ETrue; 
       
   434 	    }
   431     delete iSession;
   435     delete iSession;
   432     iSession = NULL;
   436     iSession = NULL;
   433     MUS_LOG( "mus: [MUSUI ]  <- CMusUiReceiveController::DeleteEngineSession" );
   437     MUS_LOG( "mus: [MUSUI ]  <- CMusUiReceiveController::DeleteEngineSession" );
   434     }
   438     }
   435     
   439     
   671     MUS_LOG( "mus: [MUSUI ]  -> CMusUiReceiveController::InvitationAcceptedL" );
   675     MUS_LOG( "mus: [MUSUI ]  -> CMusUiReceiveController::InvitationAcceptedL" );
   672     __ASSERT_ALWAYS( iSession, User::Leave( KErrNotReady ) );
   676     __ASSERT_ALWAYS( iSession, User::Leave( KErrNotReady ) );
   673     
   677     
   674     // Enable loud speaker already before answering but disable it immediately
   678     // Enable loud speaker already before answering but disable it immediately
   675     // if accepting fails for some reason
   679     // if accepting fails for some reason
   676     if ( iSession->AudioRoutingCanBeChanged() && !iSession->AudioOutputIsBT() )
   680     if ( iSession->AudioRoutingCanBeChanged() && !iSession->IsAudioRoutingHeadset() )
   677         {
   681         {
   678         iSession->EnableLoudspeakerL( ELoudspeakerEnabled, ETrue );
   682         iSession->EnableLoudspeakerL( ELoudspeakerEnabled, ETrue );
   679         }
   683         }
   680             
   684             
   681     TRAPD( err, iSession->AcceptInvitationL( ETrue ) );
   685     TRAPD( err, iSession->AcceptInvitationL( ETrue ) );