videoplayback/hbvideoplaybackview/tsrc/testdetailsplaybackwindow/inc/testdetailsplaybackwindow.h
changeset 36 8aed59de29f9
child 20 b9e04db066d4
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
       
     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:   tester for methods in TestDetailsPlaybackWindow
       
    15 * 
       
    16 */
       
    17 
       
    18 // Version : %version:  3 %
       
    19 
       
    20 
       
    21 #ifndef __TESTDETAILSPLAYBACKWINDOW_H__
       
    22 #define __TESTDETAILSPLAYBACKWINDOW_H__
       
    23 
       
    24 
       
    25 // INCLUDES
       
    26 #include <QtTest/QtTest>
       
    27 
       
    28 class QEvent;
       
    29 class QMPXVideoPlaybackDetailsPlaybackWindow;
       
    30 class QMPXVideoPlaybackControlsController;
       
    31 
       
    32 class TestDetailsPlaybackWindow : public QObject
       
    33 {
       
    34     Q_OBJECT
       
    35 
       
    36 public:
       
    37 
       
    38     /**
       
    39      * will be called before each testfunction is executed.
       
    40      *
       
    41      */
       
    42     void init( bool attachOperation = false ); 
       
    43     
       
    44     /**
       
    45      * will be called after every testfunction.
       
    46      *
       
    47      */
       
    48     void cleanup();
       
    49     
       
    50     // test functions for the test framework         
       
    51 private slots:
       
    52 
       
    53     // the order in which these testXX methods are declared is important
       
    54     // changing this order will affect the test results
       
    55     void testUpdateState();
       
    56     void testPlayPause();
       
    57     void testMousePressEvent();
       
    58     void testMouseReleaseEvent();
       
    59     void testAttach();
       
    60 
       
    61 signals:
       
    62     void commandSignal();
       
    63 
       
    64 private:
       
    65     QMPXVideoPlaybackDetailsPlaybackWindow*  mWindow;
       
    66     QMPXVideoPlaybackControlsController*  mController;
       
    67 };
       
    68 
       
    69 
       
    70 #endif  // __TESTDETAILSPLAYBACKWINDOW_H__
       
    71 
       
    72 // End of file
       
    73     
       
    74 
       
    75