videoplayback/videoplaybackview/tsrc/testmpxvideoviewwrapper/stub/inc/videoplaybackuserinputhandler.h
changeset 55 4bfa887905cf
child 58 d2b028fd1f7d
equal deleted inserted replaced
50:21fe8338c6bf 55:4bfa887905cf
       
     1 /*
       
     2 * Copyright (c) 2008 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 VideoPlaybackUserInputHandler
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  5 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef VIDEOPLAYBACKUSERINPUTHANDLER_H_
       
    23 #define VIDEOPLAYBACKUSERINPUTHANDLER_H_
       
    24 
       
    25 // INCLUDES
       
    26 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CMPXVideoViewWrapper;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 class CVideoPlaybackUserInputHandler : public CBase
       
    34 {
       
    35     public: // Constructors and destructor
       
    36 
       
    37         /**
       
    38         * Two-phased constructor.
       
    39         */
       
    40         IMPORT_C static CVideoPlaybackUserInputHandler* NewL(
       
    41                 CMPXVideoViewWrapper* aWrapper, TBool aTvOutConnected );
       
    42 
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         IMPORT_C virtual ~CVideoPlaybackUserInputHandler();
       
    47 
       
    48     private:
       
    49 
       
    50         /**
       
    51         * C++ default constructor.
       
    52         */
       
    53         CVideoPlaybackUserInputHandler( CMPXVideoViewWrapper* aWrapper );
       
    54 
       
    55         /**
       
    56         * Symbian 2nd phase constructor.
       
    57         */
       
    58         void ConstructL( TBool aTvOutConnected );
       
    59 
       
    60     public:
       
    61         void ProcessKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    62 
       
    63         void SetForeground( TBool aForeground );
       
    64          
       
    65         void HandleTVOutEventL(TBool aTVOutConnected);
       
    66                 
       
    67     private:
       
    68         TBool                                   iTVOutConnected;        // Flag to indicate if TV is connected
       
    69         TBool                                   iForeground;
       
    70         CMPXVideoViewWrapper*                   iViewWrapper;
       
    71 };
       
    72 
       
    73 
       
    74 #endif /*VIDEOPLAYBACKUSERINPUTHANDLER_H_*/
       
    75 
       
    76 // End of File