videoplayback/videoplaybackviews/src/mpxvideopdlplaybackview.cpp
branchRCL_3
changeset 26 67eb01668b0e
parent 16 7f2b2a65da29
child 45 baf439b22ddd
equal deleted inserted replaced
23:8f0df5c82986 26:67eb01668b0e
    14 * Description:  Implementation of Video playback view
    14 * Description:  Implementation of Video playback view
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // Version : %version: 24 %
    19 // Version : %version: 25 %
    20 
    20 
    21 
    21 
    22 //  Include Files
    22 //  Include Files
    23 #include <aknViewAppUi.h>
    23 #include <aknViewAppUi.h>
    24 #include <mpxplaybackutility.h>
    24 #include <mpxplaybackutility.h>
    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