videoplayback/videoplaybackview/tsrc/testmpxvideoviewwrapper/stub/src/videoplaybackuserinputhandler.cpp
changeset 55 4bfa887905cf
child 58 d2b028fd1f7d
equal deleted inserted replaced
50:21fe8338c6bf 55:4bfa887905cf
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implementation of playback view's input handler
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version: 7 %
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include <qobject>
       
    23 #include <e32std.h>
       
    24 #include <w32std.h> // RWindowBase
       
    25 #include <e32base.h>
       
    26 #include <eikclbd.h>
       
    27 #include <aknconsts.h>
       
    28 #include <mpxplaybackframeworkdefs.h>
       
    29 #include <hwrmlightdomaincrkeys.h>
       
    30 #include <mpxvideoplaybackdefs.h>
       
    31 
       
    32 #include "mpxvideo_debug.h"
       
    33 #include "mpxvideoviewwrapper.h"
       
    34 #include "mpxcommonvideoplaybackview.hrh"
       
    35 #include "../inc/videoplaybackuserinputhandler.h"
       
    36 
       
    37 
       
    38 // CONSTANTS
       
    39 const TInt KMPXMicroSecondsInASecond = 1000000;
       
    40 
       
    41 
       
    42 // ======== MEMBER FUNCTIONS =======================================================================
       
    43 
       
    44 // -------------------------------------------------------------------------------------------------
       
    45 // CVideoPlaybackUserInputHandler::CVideoPlaybackUserInputHandler()
       
    46 // -------------------------------------------------------------------------------------------------
       
    47 //
       
    48 CVideoPlaybackUserInputHandler::CVideoPlaybackUserInputHandler( CMPXVideoViewWrapper* aWrapper )
       
    49    : iViewWrapper( aWrapper )
       
    50 {
       
    51 }
       
    52 
       
    53 // -------------------------------------------------------------------------------------------------
       
    54 // CVideoPlaybackUserInputHandler::NewL()
       
    55 // -------------------------------------------------------------------------------------------------
       
    56 //
       
    57 CVideoPlaybackUserInputHandler* CVideoPlaybackUserInputHandler::NewL(
       
    58         CMPXVideoViewWrapper* aWrapper, TBool aTvOutConnected )
       
    59 {
       
    60     MPX_DEBUG(_L("CVideoPlaybackUserInputHandler::NewL()"));
       
    61 
       
    62     CVideoPlaybackUserInputHandler* self =
       
    63         new (ELeave) CVideoPlaybackUserInputHandler( aWrapper );
       
    64     CleanupStack::PushL( self );
       
    65     self->ConstructL( aTvOutConnected );
       
    66     CleanupStack::Pop();
       
    67     return self;
       
    68 }
       
    69 
       
    70 // -------------------------------------------------------------------------------------------------
       
    71 // CVideoPlaybackUserInputHandler::ConstructL
       
    72 // Symbian 2nd phase constructor can leave.
       
    73 // -------------------------------------------------------------------------------------------------
       
    74 //
       
    75 void CVideoPlaybackUserInputHandler::ConstructL( TBool aTvOutConnected )
       
    76 {
       
    77     Q_UNUSED( aTvOutConnected );
       
    78 }
       
    79 
       
    80 // -------------------------------------------------------------------------------------------------
       
    81 // CVideoPlaybackUserInputHandler::~CVideoPlaybackUserInputHandler()
       
    82 // -------------------------------------------------------------------------------------------------
       
    83 //
       
    84 CVideoPlaybackUserInputHandler::~CVideoPlaybackUserInputHandler()
       
    85 {
       
    86 
       
    87 }
       
    88 
       
    89 // -------------------------------------------------------------------------------------------------
       
    90 // CVideoPlaybackUserInputHandler::ProcessKeyEvent()
       
    91 // -------------------------------------------------------------------------------------------------
       
    92 //
       
    93 void CVideoPlaybackUserInputHandler::ProcessKeyEventL( const TKeyEvent& aKeyEvent,
       
    94                                                        TEventCode aType )
       
    95 {
       
    96     Q_UNUSED( aKeyEvent );
       
    97     Q_UNUSED( aType );
       
    98 }
       
    99 
       
   100 // -------------------------------------------------------------------------------------------------
       
   101 //   CVideoPlaybackUserInputHandler::SetForeground()
       
   102 // -------------------------------------------------------------------------------------------------
       
   103 //
       
   104 void CVideoPlaybackUserInputHandler::SetForeground(TBool aForeground)
       
   105 {
       
   106     Q_UNUSED( aForeground );
       
   107 }
       
   108 
       
   109 // -------------------------------------------------------------------------------------------------
       
   110 //   CVideoPlaybackUserInputHandler::HandleTVOutEvent()
       
   111 // -------------------------------------------------------------------------------------------------
       
   112 //
       
   113 void CVideoPlaybackUserInputHandler::HandleTVOutEventL( TBool aTVOutConnected )
       
   114 {
       
   115     Q_UNUSED( aTVOutConnected );
       
   116 }
       
   117 
       
   118 // EOF