mpxplugins/viewplugins/views/pdsbplaybackview/src/mpxpdsbplaybackviewimp.cpp
branchRCL_3
changeset 21 a1247965635c
parent 11 13afc0e517bd
equal deleted inserted replaced
18:c54d95799c80 21:a1247965635c
   278                 }
   278                 }
   279             case TMPXPlaybackMessage::EStateChanged:
   279             case TMPXPlaybackMessage::EStateChanged:
   280                 {
   280                 {
   281                 MPX_DEBUG2( "CMPXPdSbPlaybackViewImp::DoHandlePlaybackMessageL - EStateChanged(%d)", type );
   281                 MPX_DEBUG2( "CMPXPdSbPlaybackViewImp::DoHandlePlaybackMessageL - EStateChanged(%d)", type );
   282 
   282 
   283                 UpdateToolbar();
   283                 UpdateToolbarL();
   284                 UpdateMiddleSoftKeyDisplayL();
   284                 UpdateMiddleSoftKeyDisplayL();
   285                 TInt data( *aMessage.Value<TInt>( KMPXMessageGeneralData ) );
   285                 TInt data( *aMessage.Value<TInt>( KMPXMessageGeneralData ) );
   286                 TMPXPlaybackState state =
   286                 TMPXPlaybackState state =
   287                     static_cast<TMPXPlaybackState>( type );
   287                     static_cast<TMPXPlaybackState>( type );
   288                 DoHandleStateChangedL( state, data );
   288                 DoHandleStateChangedL( state, data );
   351 
   351 
   352     switch ( aState )
   352     switch ( aState )
   353         {
   353         {
   354         case EPbStateInitialising:
   354         case EPbStateInitialising:
   355             {
   355             {
   356             UpdatePlaybackState( aState );
   356             UpdatePlaybackStateL( aState );
   357             UpdateDownloadStateLabelL();
   357             UpdateDownloadStateLabelL();
   358             RequestMediaL();
   358             RequestMediaL();
   359             break;
   359             break;
   360             }
   360             }
   361         case EPbStatePlaying:
   361         case EPbStatePlaying:
   852     if(aResourceId == R_MPX_PBV_TOUCH_TOOLBAR)
   852     if(aResourceId == R_MPX_PBV_TOUCH_TOOLBAR)
   853         {
   853         {
   854         // Put initializations here to take effect before toolbar is shown
   854         // Put initializations here to take effect before toolbar is shown
   855         aToolbar->SetItemDimmed( EMPXPbvCmdPreviousListItem, ETrue, EFalse );
   855         aToolbar->SetItemDimmed( EMPXPbvCmdPreviousListItem, ETrue, EFalse );
   856         aToolbar->SetItemDimmed( EMPXPbvCmdNextListItem, ETrue, EFalse );
   856         aToolbar->SetItemDimmed( EMPXPbvCmdNextListItem, ETrue, EFalse );
   857         UpdateToolbar();
   857         UpdateToolbarL();
   858         aToolbar->UpdateBackground();
   858         aToolbar->UpdateBackground();
   859         }
   859         }
   860     }
   860     }
   861 
   861 
   862 // -----------------------------------------------------------------------------
   862 // -----------------------------------------------------------------------------
   871 
   871 
   872 // ---------------------------------------------------------------------------
   872 // ---------------------------------------------------------------------------
   873 // Updates the middle toolbar button
   873 // Updates the middle toolbar button
   874 // ---------------------------------------------------------------------------
   874 // ---------------------------------------------------------------------------
   875 //
   875 //
   876 void CMPXPdSbPlaybackViewImp::UpdateToolbar()
   876 void CMPXPdSbPlaybackViewImp::UpdateToolbarL()
   877     {
   877     {
   878     MPX_FUNC( "CMPXPdSbPlaybackViewImp::UpdateToolbar" );
   878     MPX_FUNC( "CMPXPdSbPlaybackViewImp::UpdateToolbar" );
   879 
   879 
   880     if ( AknLayoutUtils::PenEnabled() && Toolbar())
   880     if ( AknLayoutUtils::PenEnabled() && Toolbar())
   881         {
   881         {