mmsharing/mmshui/src/musuiappui.cpp
branchRCL_3
changeset 11 ff8a573c0e2e
parent 0 f0cf47e981f9
child 16 71306c87785a
equal deleted inserted replaced
10:04980be5c5fe 11:ff8a573c0e2e
    84     // The application icon:
    84     // The application icon:
    85     iStatusPaneHandler->SetStatusPaneIconsL(
    85     iStatusPaneHandler->SetStatusPaneIconsL(
    86                             EMbmMusuiQgn_menu_mus_app_cxt,
    86                             EMbmMusuiQgn_menu_mus_app_cxt,
    87                             EMbmMusuiQgn_menu_mus_app_cxt_mask );
    87                             EMbmMusuiQgn_menu_mus_app_cxt_mask );
    88 
    88 
       
    89     iStatusPaneHandler->GetVolumePopup()->SetObserver(this);
       
    90     
    89     AknsUtils::InitSkinSupportL();
    91     AknsUtils::InitSkinSupportL();
    90     AknsUtils::SetAvkonSkinEnabledL( ETrue );
    92     AknsUtils::SetAvkonSkinEnabledL( ETrue );
    91 
    93 
    92     // Check use case and set default view
    94     // Check use case and set default view
    93     switch ( MusUiStartController::ReadUseCaseL() )
    95     switch ( MusUiStartController::ReadUseCaseL() )
   167     if( !iView )
   169     if( !iView )
   168         {
   170         {
   169         MUS_LOG( "mus: [MUSUI ]  <- CMusUiAppUi::HandleWsEventL, view is NULL" );
   171         MUS_LOG( "mus: [MUSUI ]  <- CMusUiAppUi::HandleWsEventL, view is NULL" );
   170         return;
   172         return;
   171         }
   173         }
   172     
   174 
   173     if ( type == EEventPointer &&
       
   174          iStatusPaneHandler->GetVolumePopup()->IsVisible() )
       
   175         {
       
   176         MUS_LOG( "mus: [MUSUI ]  EMusuiCmdViewVolumeChanged" );
       
   177         CMusUiGeneralView* activatedView = 
       
   178                                    static_cast<CMusUiGeneralView*>( iView );
       
   179         activatedView->HandleCommandL( EMusuiCmdViewVolumeChanged );
       
   180         }
       
   181    
       
   182     if( type == EEventKeyUp )
   175     if( type == EEventKeyUp )
   183         {
   176         {
   184         static_cast<CMusUiGeneralView*>
   177         static_cast<CMusUiGeneralView*>
   185                 ( iView )->HandleKeyUpEvent( iLastKeyCode );
   178                 ( iView )->HandleKeyUpEvent( iLastKeyCode );
   186         }
   179         }
   742     eikEnv.RootWin().EnableFocusChangeEvents();
   735     eikEnv.RootWin().EnableFocusChangeEvents();
   743     
   736     
   744     MUS_LOG( "mus: [MUSUI ]  <- CMusUiAppUi::FindWindowGroupIdentifiersL" );
   737     MUS_LOG( "mus: [MUSUI ]  <- CMusUiAppUi::FindWindowGroupIdentifiersL" );
   745     }
   738     }
   746 
   739 
       
   740 
       
   741 // -----------------------------------------------------------------------------
       
   742 // 
       
   743 // -----------------------------------------------------------------------------
       
   744 //
       
   745 void CMusUiAppUi::HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType)
       
   746     {
       
   747     CAknVolumePopup* popup = iStatusPaneHandler->GetVolumePopup();
       
   748     if ( popup && popup->IsVisible() && (popup == aControl) && 
       
   749          (aEventType == MCoeControlObserver::EEventStateChanged) )
       
   750         {
       
   751         MUS_LOG1( "mus: [MUSUI ]  CMusUiAppUi::HandleControlEventL(): volume[%d]",
       
   752                 popup->Value() );
       
   753         CMusUiGeneralView* activatedView = 
       
   754                                static_cast<CMusUiGeneralView*>( iView );
       
   755         activatedView->HandleCommandL( EMusuiCmdViewVolumeChanged );
       
   756         }
       
   757 
       
   758     }
   747 // end of file
   759 // end of file