equal
deleted
inserted
replaced
171 MMusUiEventObserver& aEventObserver, |
171 MMusUiEventObserver& aEventObserver, |
172 MMusUiSharingObserver& aSharingObserver ) |
172 MMusUiSharingObserver& aSharingObserver ) |
173 : iEventObserver( aEventObserver ), |
173 : iEventObserver( aEventObserver ), |
174 iSharingObserver( aSharingObserver ), |
174 iSharingObserver( aSharingObserver ), |
175 iForeground( ETrue ), |
175 iForeground( ETrue ), |
176 iActiveCall( ETrue ) |
176 iShowDialog( EFalse ), |
|
177 iActiveCall( ETrue ) |
|
178 |
177 { |
179 { |
178 } |
180 } |
179 |
181 |
180 |
182 |
181 // ----------------------------------------------------------------------------- |
183 // ----------------------------------------------------------------------------- |
543 // ----------------------------------------------------------------------------- |
545 // ----------------------------------------------------------------------------- |
544 // |
546 // |
545 void CMusUiEventController::HandleExitL( TBool aTerminateCall ) |
547 void CMusUiEventController::HandleExitL( TBool aTerminateCall ) |
546 { |
548 { |
547 MUS_LOG( "mus: [MUSUI ] -> CMusUiEventController::HandleExitL" ); |
549 MUS_LOG( "mus: [MUSUI ] -> CMusUiEventController::HandleExitL" ); |
548 |
|
549 if ( iShutdownState == EMusUiShutdownNotDefined ) |
550 if ( iShutdownState == EMusUiShutdownNotDefined ) |
550 { |
551 { |
551 iShutdownState = EMusUiShutdownStarted; |
552 iShutdownState = EMusUiShutdownStarted; |
552 |
553 |
553 if ( iStatusPropertyWatch ) |
554 if ( iStatusPropertyWatch ) |
573 iEventObserver.SetToolbarVisibility( EFalse ); |
574 iEventObserver.SetToolbarVisibility( EFalse ); |
574 |
575 |
575 // This must be done before showing the end note, because showing of |
576 // This must be done before showing the end note, because showing of |
576 // note may cause the session to continue for extra few seconds. |
577 // note may cause the session to continue for extra few seconds. |
577 DeleteEngineSession(); |
578 DeleteEngineSession(); |
578 |
579 if ( iShowDialog ) |
|
580 { |
|
581 MusUiDialogUtil::ShowGlobalInformationDialogL( |
|
582 R_MUS_NOTE_HF_DEACTIVATED ); |
|
583 } |
579 // Sharing Ended note |
584 // Sharing Ended note |
580 MusUiDialogUtil::ShowGlobalInformationDialogL( |
585 MusUiDialogUtil::ShowGlobalInformationDialogL( |
581 R_MUS_LIVE_SHARING_VIEW_NOTE_SHARING_ENDED ); |
586 R_MUS_LIVE_SHARING_VIEW_NOTE_SHARING_ENDED ); |
582 |
587 |
583 if( aTerminateCall ) |
588 if( aTerminateCall ) |
751 } |
756 } |
752 MUS_LOG1( "mus: [MUSUI ] <- CMusUiEventController::IsDisplayEnabledL, %d", ret ); |
757 MUS_LOG1( "mus: [MUSUI ] <- CMusUiEventController::IsDisplayEnabledL, %d", ret ); |
753 return ret; |
758 return ret; |
754 } |
759 } |
755 |
760 |
|
761 // ----------------------------------------------------------------------------- |
|
762 // |
|
763 // ----------------------------------------------------------------------------- |
|
764 // |
|
765 TBool CMusUiEventController::IsAudioRoutingLoudSpeaker() |
|
766 { |
|
767 MUS_LOG( "mus: [MUSUI ] -> CMusUiEventController::IsAudioRoutingLoudSpeaker" ); |
|
768 TBool ret = EFalse; |
|
769 if ( EngineSession() ) |
|
770 { |
|
771 ret = EngineSession()->IsAudioRoutingLoudSpeaker(); |
|
772 } |
|
773 MUS_LOG1( "mus: [MUSUI ] <- CMusUiEventController::IsAudioRoutingLoudSpeaker, %d", ret ); |
|
774 return ret; |
|
775 } |
756 |
776 |
757 // ----------------------------------------------------------------------------- |
777 // ----------------------------------------------------------------------------- |
758 // |
778 // |
759 // ----------------------------------------------------------------------------- |
779 // ----------------------------------------------------------------------------- |
760 // |
780 // |