videoplayback/hbvideoplaybackview/tsrc/testvideoplaybackcontrolscontroller/inc/testmpxvideoplaybackcontrolscontroller.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 18:14:16 +0300
changeset 46 adbe7d5ba2f5
parent 28 c48470be1ba7
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/**
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   tester for methods in Video Playback Controls Controller
*
*/

// Version : %version:  6 %

#ifndef __TESTMPXVIDEOPLAYBACKCONTROLSCONTROLLER_H__
#define __TESTMPXVIDEOPLAYBACKCONTROLSCONTROLLER_H__


// INCLUDES
#include <QtTest/QtTest>
#include "mpxvideoplaybackcontrol.hrh"

// FORWARD DECLARATIONS
class HbVideoBasePlaybackView;
class CMPXVideoViewWrapper;
class QMPXVideoPlaybackControlsController;
class QMPXVideoPlaybackViewFileDetails;

class TestMPXVideoPlaybackControlsController : public QObject
{
    Q_OBJECT

public:

    /**
     * will be called before each testfunction is executed.
     *
     */
    void init();

    /**
     * will be called after every testfunction.
     *
     */
    void cleanup();

private:

    void verifyHandleEventStateChangedResult( int value );
    void verifyHandleEventTvOutResult( bool tvOutConnected, bool value );

private slots:

    void testAddFileDetails();
    void testHandleEventSetPosition();
    void testHandleEventSetDuration();
    void testHandleEventStateChanged();
    void testHandleEventSetVolume();
    void testHandleEventSetAspectRatio();
    void testHandleEventSetDownloadSize();
    void testHandleEventDownloadUpdated();
    void testHandleEventDownloadComplete();
    void testHandleEventSetDownloadPaused();
    void testHandleEventClearDownloadPaused();
    void testHandleEventTvOutConnected();
    void testHandleEventTvOutDisconnected();
    void testHandleEventHandleErrors();
    void testHandleEventShowVolumeControls();

    //
    // test handleCommand()
    //
    void testHandleCommand();

    //
    // test handleTappedOnScreen()
    //
    void testHandleTappedOnScreen();

    //
    // test updateVideoRectDone()
    //
    void testUpdateVideoRectDone();

    //
    // test isAttachOperation()
    //
    void testIsAttachOperation();

    //
    // test private slot skipToNextVideoItem()
    //
    void testslot_skipToNextVideoItem();

    //
    // test private slot skipToPreviousVideoItem()
    //
    void testslot_skipToPreviousVideoItem();    
    
    //
    // test private slot attachVideo()
    //
    void testslot_attachVideo();

    //
    // test private slot attachVideo()
    //
    void testslot_sendVideo();

    //
    // test private slot handleOrientationChanged()
    //
    void testslot_handleOrientationChanged();

    void testslot_handleRNLogoVisibleChanged();
    void testslot_handleRNLogoTimeout();
    void testIsRNLogoBitmapVisible();

signals:
    void commandSignal();
    void commandSignal( Qt::Orientation );

private:

    HbVideoBasePlaybackView*			    mBaseVideoView;
    CMPXVideoViewWrapper*			        mViewWrapper;
    QMPXVideoPlaybackControlsController*	mController;
    QMPXVideoPlaybackViewFileDetails*       mFileDetails;

};


#endif  // __TESTMPXVIDEOPLAYBACKCONTROLSCONTROLLER_H__

// End of file