videoplayback/videoplaybackview/tsrc/testfullscreencontrol/inc/testfullscreencontrol.h
changeset 52 e3cecb93e76a
child 58 d2b028fd1f7d
equal deleted inserted replaced
47:45e72b57a2fd 52:e3cecb93e76a
       
     1 /**
       
     2 * Copyright (c) 2010 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:   test module for VideoPlaybackFullScreenControl
       
    15 * 
       
    16 */
       
    17 
       
    18 #ifndef __TESTFULLSCREENCONTROL_H__
       
    19 #define __TESTFULLSCREENCONTROL_H__
       
    20 
       
    21 
       
    22 // INCLUDES
       
    23 #include <QtTest/QtTest>
       
    24 
       
    25 #include "videoplaybackcontrol.hrh"
       
    26 
       
    27 
       
    28 class VideoPlaybackControlsController;
       
    29 class VideoPlaybackFullScreenControl;
       
    30 
       
    31 
       
    32 
       
    33 class TestFullScreenControl : public QObject
       
    34 {
       
    35     Q_OBJECT
       
    36 
       
    37     public:
       
    38 
       
    39         /**
       
    40          * will be called before each testfunction is executed.
       
    41          *
       
    42         */
       
    43         void init(); 
       
    44     
       
    45         /**
       
    46          * will be called after every testfunction.
       
    47          *
       
    48          */
       
    49         void cleanup();
       
    50     
       
    51         // test functions for the test framework
       
    52         void setup( TVideoPlaybackControls control );
       
    53     
       
    54         void createControl( TVideoPlaybackControls control );
       
    55          
       
    56     private slots:
       
    57         
       
    58         void testControlIndex();
       
    59         
       
    60         void testDurationChanged();
       
    61 
       
    62         void testPositionChanged();
       
    63 
       
    64         void testAspectRatioChanged();
       
    65 
       
    66         void testUpdateState();
       
    67         
       
    68         void testUpdateControlsWithFileDetails();
       
    69 
       
    70         void testUpdateControlProperties();    
       
    71     
       
    72     signals:
       
    73         void commandSignal(int);
       
    74     
       
    75     private:
       
    76         VideoPlaybackControlsController*     mControlsController;
       
    77         VideoPlaybackFullScreenControl*      mFullScreenControl;
       
    78 };
       
    79 
       
    80 #endif  // __TESTFULLSCREENCONTROL_H__
       
    81 
       
    82 // End of file