mmsharing/mmshui/src/musuireceivecontroller.cpp
branchRCL_3
changeset 21 33a5d2bbf6fc
parent 20 2d2c7d1515f7
--- a/mmsharing/mmshui/src/musuireceivecontroller.cpp	Thu Jul 15 18:35:08 2010 +0300
+++ b/mmsharing/mmshui/src/musuireceivecontroller.cpp	Thu Aug 19 09:51:39 2010 +0300
@@ -12,7 +12,7 @@
 * Contributors:
 *
 * Description:  Application's UI class.
-*  Version     : %version:  be1sipx1#75.1.14 % << Don't touch! Updated by Synergy at check-out.
+*  Version     : %version:  be1sipx1#75.1.17 % << Don't touch! Updated by Synergy at check-out.
 *
 */
 
@@ -268,7 +268,7 @@
         HandleError( errorPrivacyStatus );
         }
         
-    if ( privacyStatus == 1 )
+    if ( privacyStatus == 1 && !iOperatorSpecificFunctionality )
       {
        MUS_LOG( "mus: [MUSUI ]  Call is from private number" )
        iOriginator = KPrivateNumber().AllocL();
@@ -287,7 +287,7 @@
     
     // Display the query dialog:
     
-    if ( privacyStatus == 1 )
+    if ( privacyStatus == 1 && !iOperatorSpecificFunctionality )
         {
         iReceiveObserver.ShowInvitationQueryL( *iOriginator );
         }  
@@ -428,6 +428,10 @@
 void CMusUiReceiveController::DeleteEngineSession()
     {
     MUS_LOG( "mus: [MUSUI ]  -> CMusUiReceiveController::DeleteEngineSession" );
+    if ( iSession && iSession->IsAudioRoutingLoudSpeaker() )
+	    {
+	    iShowDialog = ETrue; 
+	    }
     delete iSession;
     iSession = NULL;
     MUS_LOG( "mus: [MUSUI ]  <- CMusUiReceiveController::DeleteEngineSession" );
@@ -673,7 +677,7 @@
     
     // Enable loud speaker already before answering but disable it immediately
     // if accepting fails for some reason
-    if ( iSession->AudioRoutingCanBeChanged() && !iSession->AudioOutputIsBT() )
+    if ( iSession->AudioRoutingCanBeChanged() && !iSession->IsAudioRoutingHeadset() )
         {
         iSession->EnableLoudspeakerL( ELoudspeakerEnabled, ETrue );
         }