mpxplugins/viewplugins/views/pdplaybackview/src/mpxpdplaybackviewimp.cpp
branchRCL_3
changeset 21 a1247965635c
parent 0 ff3acec5bc43
equal deleted inserted replaced
18:c54d95799c80 21:a1247965635c
   275             case TMPXPlaybackMessage::EStateChanged:
   275             case TMPXPlaybackMessage::EStateChanged:
   276                 {
   276                 {
   277                 MPX_DEBUG2( "CMPXPdPlaybackViewImp::DoHandlePlaybackMessageL - EStateChanged(%d)", type );
   277                 MPX_DEBUG2( "CMPXPdPlaybackViewImp::DoHandlePlaybackMessageL - EStateChanged(%d)", type );
   278 
   278 
   279                 UpdateMiddleSoftKeyDisplayL();
   279                 UpdateMiddleSoftKeyDisplayL();
   280                 UpdateToolbar();
   280                 UpdateToolbarL();
   281                 TMPXPlaybackState state =
   281                 TMPXPlaybackState state =
   282                     static_cast<TMPXPlaybackState>( type );
   282                     static_cast<TMPXPlaybackState>( type );
   283                 DoHandleStateChangedL( state, data );
   283                 DoHandleStateChangedL( state, data );
   284                 break;
   284                 break;
   285                 }
   285                 }
   311 
   311 
   312     switch ( aState )
   312     switch ( aState )
   313         {
   313         {
   314         case EPbStateInitialising:
   314         case EPbStateInitialising:
   315             {
   315             {
   316             UpdatePlaybackState( aState );
   316             UpdatePlaybackStateL( aState );
   317             UpdateDownloadStateLabelL();
   317             UpdateDownloadStateLabelL();
   318             RequestMediaL();
   318             RequestMediaL();
   319             break;
   319             break;
   320             }
   320             }
   321         case EPbStatePaused:
   321         case EPbStatePaused:
   728     if(aResourceId == R_MPX_PBV_TOUCH_TOOLBAR)
   728     if(aResourceId == R_MPX_PBV_TOUCH_TOOLBAR)
   729         {
   729         {
   730         // Put initializations here to take effect before toolbar is shown
   730         // Put initializations here to take effect before toolbar is shown
   731         aToolbar->SetItemDimmed( EMPXPbvCmdPreviousListItem, ETrue, EFalse );
   731         aToolbar->SetItemDimmed( EMPXPbvCmdPreviousListItem, ETrue, EFalse );
   732         aToolbar->SetItemDimmed( EMPXPbvCmdNextListItem, ETrue, EFalse );
   732         aToolbar->SetItemDimmed( EMPXPbvCmdNextListItem, ETrue, EFalse );
   733         UpdateToolbar();
   733         UpdateToolbarL();
   734         aToolbar->UpdateBackground();
   734         aToolbar->UpdateBackground();
   735         }
   735         }
   736     }
   736     }
   737 
   737 
   738 // -----------------------------------------------------------------------------
   738 // -----------------------------------------------------------------------------
   747 
   747 
   748 // ---------------------------------------------------------------------------
   748 // ---------------------------------------------------------------------------
   749 // Updates the middle toolbar button
   749 // Updates the middle toolbar button
   750 // ---------------------------------------------------------------------------
   750 // ---------------------------------------------------------------------------
   751 //
   751 //
   752 void CMPXPdPlaybackViewImp::UpdateToolbar()
   752 void CMPXPdPlaybackViewImp::UpdateToolbarL()
   753     {
   753     {
   754     MPX_FUNC( "CMPXPdPlaybackViewImp::UpdateToolbar" );
   754     MPX_FUNC( "CMPXPdPlaybackViewImp::UpdateToolbar" );
   755 
   755 
   756     if ( AknLayoutUtils::PenEnabled() && Toolbar())
   756     if ( AknLayoutUtils::PenEnabled() && Toolbar())
   757         {
   757         {