diff -r 04980be5c5fe -r ff8a573c0e2e mmsharing/mmshui/src/musuiappui.cpp --- a/mmsharing/mmshui/src/musuiappui.cpp Fri Mar 12 15:42:21 2010 +0200 +++ b/mmsharing/mmshui/src/musuiappui.cpp Mon Mar 15 12:40:08 2010 +0200 @@ -86,6 +86,8 @@ EMbmMusuiQgn_menu_mus_app_cxt, EMbmMusuiQgn_menu_mus_app_cxt_mask ); + iStatusPaneHandler->GetVolumePopup()->SetObserver(this); + AknsUtils::InitSkinSupportL(); AknsUtils::SetAvkonSkinEnabledL( ETrue ); @@ -169,16 +171,7 @@ MUS_LOG( "mus: [MUSUI ] <- CMusUiAppUi::HandleWsEventL, view is NULL" ); return; } - - if ( type == EEventPointer && - iStatusPaneHandler->GetVolumePopup()->IsVisible() ) - { - MUS_LOG( "mus: [MUSUI ] EMusuiCmdViewVolumeChanged" ); - CMusUiGeneralView* activatedView = - static_cast( iView ); - activatedView->HandleCommandL( EMusuiCmdViewVolumeChanged ); - } - + if( type == EEventKeyUp ) { static_cast @@ -744,4 +737,23 @@ MUS_LOG( "mus: [MUSUI ] <- CMusUiAppUi::FindWindowGroupIdentifiersL" ); } + +// ----------------------------------------------------------------------------- +// +// ----------------------------------------------------------------------------- +// +void CMusUiAppUi::HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType) + { + CAknVolumePopup* popup = iStatusPaneHandler->GetVolumePopup(); + if ( popup && popup->IsVisible() && (popup == aControl) && + (aEventType == MCoeControlObserver::EEventStateChanged) ) + { + MUS_LOG1( "mus: [MUSUI ] CMusUiAppUi::HandleControlEventL(): volume[%d]", + popup->Value() ); + CMusUiGeneralView* activatedView = + static_cast( iView ); + activatedView->HandleCommandL( EMusuiCmdViewVolumeChanged ); + } + + } // end of file