videoplayback/videoplaybackview/tsrc/teststatuspanecontrol/inc/teststatuspanecontrol.h
changeset 44 518105d52e45
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
       
     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 VideoPlaybackStatusPaneControl
       
    15 * 
       
    16 */
       
    17 
       
    18 // Version : %version:  4 %
       
    19 
       
    20 
       
    21 #ifndef __TESTSTATUSPANECONTROL_H__
       
    22 #define __TESTSTATUSPANECONTROL_H__
       
    23 
       
    24 
       
    25 // INCLUDES
       
    26 #include <QtTest/QtTest>
       
    27 
       
    28 class VideoBasePlaybackView;
       
    29 class VideoPlaybackViewFileDetails;
       
    30 class VideoPlaybackControlsController;
       
    31 class VideoPlaybackStatusPaneControl;
       
    32 
       
    33 
       
    34 
       
    35 class TestStatusPaneControl : public QObject
       
    36 {
       
    37     Q_OBJECT
       
    38 
       
    39     public:
       
    40 
       
    41         /**
       
    42          * will be called before each testfunction is executed.
       
    43          *
       
    44          */
       
    45         void init(); 
       
    46     
       
    47         /**
       
    48          * will be called after every testfunction.
       
    49          *
       
    50          */
       
    51         void cleanup();
       
    52     
       
    53         // test functions for the test framework    
       
    54         void setup();
       
    55          
       
    56     private slots:
       
    57         void testSetVisible();
       
    58         void testSetMenu();
       
    59         void testUpdateControlsWithFileDetails();
       
    60         void testSetVisibility();
       
    61         void testControlListUpdated();
       
    62         void testSlot_handleAboutToShow();
       
    63         void testSlot_handleAboutToHide();
       
    64         void testSlot_openFullScreenView();
       
    65 
       
    66     signals:
       
    67         void commandSignal();
       
    68     
       
    69     private:
       
    70         VideoBasePlaybackView*             mBaseVideoView;
       
    71         VideoPlaybackViewFileDetails*        mFileDetails;
       
    72         VideoPlaybackControlsController*     mControlsController;
       
    73         VideoPlaybackStatusPaneControl*      mStatusPane;
       
    74 };
       
    75 
       
    76 
       
    77 #endif  // __TESTSTATUSPANECONTROL_H__
       
    78 
       
    79 // End of file