videoplayback/videoplaybackview/tsrc/testmpxvideoviewwrapper/stub/src/videoplaybackuserinputhandler.cpp
changeset 62 0e1e938beb1a
parent 59 a76e86df7ccd
equal deleted inserted replaced
59:a76e86df7ccd 62:0e1e938beb1a
    13 *
    13 *
    14 * Description:  Implementation of playback view's input handler
    14 * Description:  Implementation of playback view's input handler
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 7 %
    18 // Version : %version: 8 %
    19 
    19 
    20 
    20 
    21 // INCLUDE FILES
    21 // INCLUDE FILES
    22 #include <qobject>
    22 #include <qobject>
    23 #include <e32std.h>
    23 #include <e32std.h>
    33 #include "mpxvideoviewwrapper.h"
    33 #include "mpxvideoviewwrapper.h"
    34 #include "mpxcommonvideoplaybackview.hrh"
    34 #include "mpxcommonvideoplaybackview.hrh"
    35 #include "../inc/videoplaybackuserinputhandler.h"
    35 #include "../inc/videoplaybackuserinputhandler.h"
    36 
    36 
    37 
    37 
    38 // CONSTANTS
       
    39 const TInt KMPXMicroSecondsInASecond = 1000000;
       
    40 
       
    41 
    38 
    42 // ======== MEMBER FUNCTIONS =======================================================================
    39 // ======== MEMBER FUNCTIONS =======================================================================
    43 
    40 
    44 // -------------------------------------------------------------------------------------------------
    41 // -------------------------------------------------------------------------------------------------
    45 // CVideoPlaybackUserInputHandler::CVideoPlaybackUserInputHandler()
    42 // CVideoPlaybackUserInputHandler::CVideoPlaybackUserInputHandler()
    53 // -------------------------------------------------------------------------------------------------
    50 // -------------------------------------------------------------------------------------------------
    54 // CVideoPlaybackUserInputHandler::NewL()
    51 // CVideoPlaybackUserInputHandler::NewL()
    55 // -------------------------------------------------------------------------------------------------
    52 // -------------------------------------------------------------------------------------------------
    56 //
    53 //
    57 CVideoPlaybackUserInputHandler* CVideoPlaybackUserInputHandler::NewL(
    54 CVideoPlaybackUserInputHandler* CVideoPlaybackUserInputHandler::NewL(
    58         CMPXVideoViewWrapper* aWrapper, TBool aTvOutConnected )
    55         CMPXVideoViewWrapper* aWrapper)
    59 {
    56 {
    60     MPX_DEBUG(_L("CVideoPlaybackUserInputHandler::NewL()"));
    57     MPX_DEBUG(_L("CVideoPlaybackUserInputHandler::NewL()"));
    61 
    58 
    62     CVideoPlaybackUserInputHandler* self =
    59     CVideoPlaybackUserInputHandler* self =
    63         new (ELeave) CVideoPlaybackUserInputHandler( aWrapper );
    60         new (ELeave) CVideoPlaybackUserInputHandler( aWrapper );
    64     CleanupStack::PushL( self );
    61     CleanupStack::PushL( self );
    65     self->ConstructL( aTvOutConnected );
    62     self->ConstructL();
    66     CleanupStack::Pop();
    63     CleanupStack::Pop();
    67     return self;
    64     return self;
    68 }
    65 }
    69 
    66 
    70 // -------------------------------------------------------------------------------------------------
    67 // -------------------------------------------------------------------------------------------------
    71 // CVideoPlaybackUserInputHandler::ConstructL
    68 // CVideoPlaybackUserInputHandler::ConstructL
    72 // Symbian 2nd phase constructor can leave.
    69 // Symbian 2nd phase constructor can leave.
    73 // -------------------------------------------------------------------------------------------------
    70 // -------------------------------------------------------------------------------------------------
    74 //
    71 //
    75 void CVideoPlaybackUserInputHandler::ConstructL( TBool aTvOutConnected )
    72 void CVideoPlaybackUserInputHandler::ConstructL()
    76 {
    73 {
    77     Q_UNUSED( aTvOutConnected );
       
    78 }
    74 }
    79 
    75 
    80 // -------------------------------------------------------------------------------------------------
    76 // -------------------------------------------------------------------------------------------------
    81 // CVideoPlaybackUserInputHandler::~CVideoPlaybackUserInputHandler()
    77 // CVideoPlaybackUserInputHandler::~CVideoPlaybackUserInputHandler()
    82 // -------------------------------------------------------------------------------------------------
    78 // -------------------------------------------------------------------------------------------------