videoplayback/videoplaybackview/tsrc/testuserinputhandler/inc/testuserinputhandler.h
changeset 52 e3cecb93e76a
child 55 4bfa887905cf
equal deleted inserted replaced
47:45e72b57a2fd 52:e3cecb93e76a
       
     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:   tester for methods in User Input Handler
       
    15 * 
       
    16 */
       
    17 
       
    18 #ifndef __TESTUSERINPUTHANDLER_H__
       
    19 #define __TESTUSERINPUTHANDLER_H__
       
    20 
       
    21 
       
    22 // INCLUDES
       
    23 #include <QtTest/QtTest>
       
    24 
       
    25 
       
    26 
       
    27 // forward declaration
       
    28 class CMPXVideoViewWrapper;
       
    29 class CMPXVideoPlaybackUserInputHandler;
       
    30 class VideoBasePlaybackView;
       
    31 
       
    32 
       
    33 class TestUserInputHandler : public QObject
       
    34 {
       
    35     Q_OBJECT
       
    36 
       
    37 public:
       
    38 
       
    39     void init(); 
       
    40     
       
    41     void cleanup();
       
    42         
       
    43     void setup();
       
    44     
       
    45 
       
    46     // test functions for the test framework         
       
    47 private slots:
       
    48 
       
    49     void testProcessMediaKeyPlay();
       
    50 
       
    51     void testProcessMediaKeyPause();
       
    52 
       
    53     void testProcessMediaKeyPlayPause();
       
    54 
       
    55     void testProcessMediaKeyStop();
       
    56 
       
    57     void testProcessMediaKeyForward();
       
    58     
       
    59     void testProcessMediaKeyRewind();
       
    60     
       
    61     void testProcessMediaKeyVolumeUp();
       
    62     
       
    63     void testProcessMediaKeyVolumeDown();
       
    64  
       
    65     void testHandleTVOutEventL();
       
    66 		
       
    67     
       
    68 signals:
       
    69     
       
    70 private:
       
    71     CMPXVideoPlaybackUserInputHandler*  mUserInputHdlr;	
       
    72     VideoBasePlaybackView*              mBaseVideoView;
       
    73     CMPXVideoViewWrapper*               mVideoViewWrapper;
       
    74  
       
    75 };
       
    76 
       
    77 
       
    78 #endif  // __TESTUSERINPUTHANDLER_H__
       
    79 
       
    80 // End of file