mpxplugins/viewplugins/views/podcastplaybackview/src/mpxpodcastplaybackviewimp.cpp
equal
deleted
inserted
replaced
445 void CMPXPodcastPlaybackViewImp::DynInitToolbarL(TInt aResourceId, CAknToolbar* aToolbar) |
445 void CMPXPodcastPlaybackViewImp::DynInitToolbarL(TInt aResourceId, CAknToolbar* aToolbar) |
446 { |
446 { |
447 if (aResourceId == R_MPX_PBV_TOUCH_TOOLBAR) |
447 if (aResourceId == R_MPX_PBV_TOUCH_TOOLBAR) |
448 { |
448 { |
449 // Put initializations here to take effect before toolbar is shown |
449 // Put initializations here to take effect before toolbar is shown |
450 UpdateToolbar(); |
450 UpdateToolbarL(); |
451 aToolbar->UpdateBackground(); |
451 aToolbar->UpdateBackground(); |
452 } |
452 } |
453 } |
453 } |
454 |
454 |
455 // ----------------------------------------------------------------------------- |
455 // ----------------------------------------------------------------------------- |
499 TInt data( *aMessage.Value<TInt>( KMPXMessageGeneralData ) ); |
499 TInt data( *aMessage.Value<TInt>( KMPXMessageGeneralData ) ); |
500 switch ( *aMessage.Value<TInt>( KMPXMessageGeneralEvent ) ) |
500 switch ( *aMessage.Value<TInt>( KMPXMessageGeneralEvent ) ) |
501 { |
501 { |
502 case TMPXPlaybackMessage::EStateChanged: |
502 case TMPXPlaybackMessage::EStateChanged: |
503 UpdateMiddleSoftKeyDisplayL(); |
503 UpdateMiddleSoftKeyDisplayL(); |
504 UpdateToolbar(); |
504 UpdateToolbarL(); |
505 break; |
505 break; |
506 |
506 |
507 default: |
507 default: |
508 break; |
508 break; |
509 } |
509 } |
513 |
513 |
514 // --------------------------------------------------------------------------- |
514 // --------------------------------------------------------------------------- |
515 // Updates the middle toolbar button |
515 // Updates the middle toolbar button |
516 // --------------------------------------------------------------------------- |
516 // --------------------------------------------------------------------------- |
517 // |
517 // |
518 void CMPXPodcastPlaybackViewImp::UpdateToolbar() |
518 void CMPXPodcastPlaybackViewImp::UpdateToolbarL() |
519 { |
519 { |
520 MPX_FUNC("CMPXPodcastPlaybackViewImp::UpdateToolbar"); |
520 MPX_FUNC("CMPXPodcastPlaybackViewImp::UpdateToolbar"); |
521 |
521 |
522 if ( AknLayoutUtils::PenEnabled() ) |
522 if ( AknLayoutUtils::PenEnabled() ) |
523 { |
523 { |