32 #include "mpxcommonvideoplaybackview.hrh" |
32 #include "mpxcommonvideoplaybackview.hrh" |
33 #include "mpxvideoplaybackuids.hrh" |
33 #include "mpxvideoplaybackuids.hrh" |
34 #include "mpxvideopdlplaybackview.h" |
34 #include "mpxvideopdlplaybackview.h" |
35 #include "mpxvideoplaybackcontainer.h" |
35 #include "mpxvideoplaybackcontainer.h" |
36 #include "mpxvideoplaybackviewfiledetails.h" |
36 #include "mpxvideoplaybackviewfiledetails.h" |
|
37 #include "mpxvideoplaybackuserinputhandler.h" |
37 #include <mpxvideoplaybackdefs.h> |
38 #include <mpxvideoplaybackdefs.h> |
38 #include "mpxvideo_debug.h" |
39 #include "mpxvideo_debug.h" |
39 |
40 |
40 // Member Functions |
41 // Member Functions |
41 |
42 |
206 // |
207 // |
207 // Check for a saved download. |
208 // Check for a saved download. |
208 // The download size and downloaded bytes will be set to 100 so |
209 // The download size and downloaded bytes will be set to 100 so |
209 // the download progress bar will show 100% |
210 // the download progress bar will show 100% |
210 // |
211 // |
211 if ( iPdlState == EPbDlStateNotDownloading ) |
212 if ( iPdlState == EPbDlStateNotDownloading || iPdlState == EPbDlStateDownloadCompleted ) |
212 { |
213 { |
213 iDownloadSize = 100; |
214 iDownloadSize = 100; |
214 downloadedBytes = 100; |
215 downloadedBytes = 100; |
215 } |
216 } |
216 |
217 |
447 |
448 |
448 // |
449 // |
449 // For PDL view, reset the container and controls for new download |
450 // For PDL view, reset the container and controls for new download |
450 // |
451 // |
451 DoHandleInitializingStateL( aLastState ); |
452 DoHandleInitializingStateL( aLastState ); |
|
453 |
|
454 // |
|
455 // User inputs should not be blocked since the new download is initializing |
|
456 // |
|
457 iUserInputsBlocked = EFalse; |
|
458 iContainer->UserInputHandler()->BlockPdlUserInputs( iUserInputsBlocked ); |
|
459 } |
|
460 |
|
461 // ------------------------------------------------------------------------------------------------- |
|
462 // CMPXVideoPdlPlaybackView::SendWindowCommandL() |
|
463 // ------------------------------------------------------------------------------------------------- |
|
464 // |
|
465 void CMPXVideoPdlPlaybackView::SendWindowCommandL( TMPXVideoPlaybackCommand aCmd ) |
|
466 { |
|
467 MPX_ENTER_EXIT(_L("CMPXVideoPdlPlaybackView::SendWindowCommandL()"), |
|
468 _L("aCmd = %d"), aCmd ); |
|
469 |
|
470 CMPXVideoBasePlaybackView::SendWindowCommandL( aCmd ); |
|
471 |
|
472 if ( aCmd == EPbCmdHandleBackground && ! IsAppInFrontL() ) |
|
473 { |
|
474 // |
|
475 // Block all inputs when PDL view is sent to full background |
|
476 // Commands will be enabled when new command is received from LWP |
|
477 // |
|
478 iUserInputsBlocked = ETrue; |
|
479 iContainer->UserInputHandler()->BlockPdlUserInputs( iUserInputsBlocked ); |
|
480 } |
|
481 } |
|
482 |
|
483 // ------------------------------------------------------------------------------------------------- |
|
484 // CMPXVideoPdlPlaybackView::HandlePdlReloadComplete() |
|
485 // ------------------------------------------------------------------------------------------------- |
|
486 // |
|
487 void CMPXVideoPdlPlaybackView::HandlePdlReloadComplete() |
|
488 { |
|
489 MPX_ENTER_EXIT(_L("CMPXVideoPdlPlaybackView::HandlePdlReloadComplete()")); |
|
490 |
|
491 // |
|
492 // User inputs should not be blocked since the new PDL command is complete |
|
493 // |
|
494 iUserInputsBlocked = EFalse; |
|
495 iContainer->UserInputHandler()->BlockPdlUserInputs( iUserInputsBlocked ); |
452 } |
496 } |
453 |
497 |
454 // EOF |
498 // EOF |