videoplayback/hbvideoplaybackview/tsrc/testvideoplaybackcontrolscontroller/inc/testmpxvideoplaybackcontrolscontroller.h
changeset 40 13331705e488
parent 39 f6d44a0cd476
equal deleted inserted replaced
39:f6d44a0cd476 40:13331705e488
     1 /**
     1 /**
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:   tester for methods in Video Playback Controls Controller
    14 * Description:   tester for methods in Video Playback Controls Controller
    15 * 
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version:  5 %
    18 // Version : %version:  6 %
    19 
    19 
    20 #ifndef __TESTMPXVIDEOPLAYBACKCONTROLSCONTROLLER_H__
    20 #ifndef __TESTMPXVIDEOPLAYBACKCONTROLSCONTROLLER_H__
    21 #define __TESTMPXVIDEOPLAYBACKCONTROLSCONTROLLER_H__
    21 #define __TESTMPXVIDEOPLAYBACKCONTROLSCONTROLLER_H__
    22 
    22 
    23 
    23 
    39 
    39 
    40     /**
    40     /**
    41      * will be called before each testfunction is executed.
    41      * will be called before each testfunction is executed.
    42      *
    42      *
    43      */
    43      */
    44     void init(); 
    44     void init();
    45     
    45 
    46     /**
    46     /**
    47      * will be called after every testfunction.
    47      * will be called after every testfunction.
    48      *
    48      *
    49      */
    49      */
    50     void cleanup();
    50     void cleanup();
    51        
    51 
    52 private:
    52 private:
    53 
    53 
    54     void verifyHandleEventStateChangedResult( int value );
    54     void verifyHandleEventStateChangedResult( int value );
    55     void verifyHandleEventTvOutResult( bool tvOutConnected, bool value );
    55     void verifyHandleEventTvOutResult( bool tvOutConnected, bool value );
    56     
    56 
    57 private slots:
    57 private slots:
    58     
    58 
    59     void testAddFileDetails();
    59     void testAddFileDetails();
    60     void testHandleEventSetPosition();
    60     void testHandleEventSetPosition();
    61     void testHandleEventSetDuration();
    61     void testHandleEventSetDuration();
    62     void testHandleEventStateChanged();
    62     void testHandleEventStateChanged();
    63     void testHandleEventSetVolume();
    63     void testHandleEventSetVolume();
    69     void testHandleEventClearDownloadPaused();
    69     void testHandleEventClearDownloadPaused();
    70     void testHandleEventTvOutConnected();
    70     void testHandleEventTvOutConnected();
    71     void testHandleEventTvOutDisconnected();
    71     void testHandleEventTvOutDisconnected();
    72     void testHandleEventHandleErrors();
    72     void testHandleEventHandleErrors();
    73     void testHandleEventShowVolumeControls();
    73     void testHandleEventShowVolumeControls();
    74     
    74 
    75     //
    75     //
    76     // test handleCommand()
    76     // test handleCommand()
    77     //
    77     //
    78     void testHandleCommand();
    78     void testHandleCommand();
    79     
    79 
    80     //
    80     //
    81     // test handleTappedOnScreen()
    81     // test handleTappedOnScreen()
    82     //
    82     //
    83     void testHandleTappedOnScreen();
    83     void testHandleTappedOnScreen();
    84     
    84 
    85     //
    85     //
    86     // test updateVideoRectDone()
    86     // test updateVideoRectDone()
    87     //
    87     //
    88     void testUpdateVideoRectDone();
    88     void testUpdateVideoRectDone();
    89 
    89 
   103     void testslot_skipToPreviousVideoItem();    
   103     void testslot_skipToPreviousVideoItem();    
   104     
   104     
   105     //
   105     //
   106     // test private slot attachVideo()
   106     // test private slot attachVideo()
   107     //
   107     //
   108     void testslot_attachVideo();  
   108     void testslot_attachVideo();
   109 
   109 
   110     //
   110     //
   111     // test private slot attachVideo()
   111     // test private slot attachVideo()
   112     //
   112     //
   113     void testslot_sendVideo();
   113     void testslot_sendVideo();
   118     void testslot_handleOrientationChanged();
   118     void testslot_handleOrientationChanged();
   119 
   119 
   120     void testslot_handleRNLogoVisibleChanged();
   120     void testslot_handleRNLogoVisibleChanged();
   121     void testslot_handleRNLogoTimeout();
   121     void testslot_handleRNLogoTimeout();
   122     void testIsRNLogoBitmapVisible();
   122     void testIsRNLogoBitmapVisible();
   123   
   123 
   124 signals:
   124 signals:
   125     void commandSignal();
   125     void commandSignal();
   126     void commandSignal( Qt::Orientation );
   126     void commandSignal( Qt::Orientation );
   127     
   127 
   128 private:
   128 private:
   129 
   129 
   130     HbVideoBasePlaybackView*			    mBaseVideoView;
   130     HbVideoBasePlaybackView*			    mBaseVideoView;
   131     CMPXVideoViewWrapper*			        mViewWrapper;
   131     CMPXVideoViewWrapper*			        mViewWrapper;
   132     QMPXVideoPlaybackControlsController*	mController;
   132     QMPXVideoPlaybackControlsController*	mController;
   133     QMPXVideoPlaybackViewFileDetails*       mFileDetails;
   133     QMPXVideoPlaybackViewFileDetails*       mFileDetails;
   134         
   134 
   135 };
   135 };
   136 
   136 
   137 
   137 
   138 #endif  // __TESTMPXVIDEOPLAYBACKCONTROLSCONTROLLER_H__
   138 #endif  // __TESTMPXVIDEOPLAYBACKCONTROLSCONTROLLER_H__
   139 
   139