diff -r 45e72b57a2fd -r e3cecb93e76a videoplayback/hbvideoplaybackview/tsrc/teststatuspanecontrol/stub/inc/mpxvideoplaybackcontrolscontroller.h --- a/videoplayback/hbvideoplaybackview/tsrc/teststatuspanecontrol/stub/inc/mpxvideoplaybackcontrolscontroller.h Tue Jul 06 14:17:50 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,170 +0,0 @@ -/* -* 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: Implementation of MPXVideoPlaybackControlsController -* -*/ - -// Version : %version: 2 % - - - -#ifndef MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_ -#define MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_ - -// INCLUDES -#include - -#include - -#include "mpxvideo_debug.h" -#include "mpxvideoplaybackcontrol.hrh" -#include "mpxcommonvideoplaybackview.hrh" -#include "mpxvideoplaybackviewfiledetails.h" - -// FORWARD DECLARATIONS -class HbVideoBasePlaybackView; -class QMPXVideoPlaybackDocumentLoader; -class QMPXVideoPlaybackFullScreenControl; -class QMPXVideoPlaybackControlsController; - - -// DATA TYPES - -enum TMPXTimerAction -{ - EMPXTimerCancel, - EMPXTimerReset -}; - -enum TPlaybackViewMode -{ - EFullScreenView, - EDetailsView, - EAudioOnlyView -}; - - -// CLASS DECLARATION - -class QMPXVideoPlaybackControlsController : public QObject -{ - Q_OBJECT - - public: - - /** - * constructor. - */ - QMPXVideoPlaybackControlsController( - HbVideoBasePlaybackView *view, - QMPXVideoPlaybackViewFileDetails *details ); - - /** - * Destructor. - */ - virtual ~QMPXVideoPlaybackControlsController(); - - public: - /** - * Reset or cancel timers for the controls - */ - void resetDisappearingTimers( TMPXTimerAction timerAction ); - - /* - * Return state - */ - inline TMPXPlaybackState state(); - - /** - * Return file details - */ - inline QMPXVideoPlaybackViewFileDetails* fileDetails(); - - QMPXVideoPlaybackDocumentLoader* layoutLoader(); - - inline HbVideoBasePlaybackView* view(); - - void changeViewMode( TPlaybackViewMode viewMode, bool transitionEffect = true ); - - TPlaybackViewMode viewMode(); - - public: - /** - * Initialize controller - */ - void initializeController(); - - /** - * Create controls - */ - void createControls(); - - /** - * Update controls - */ - void handleStateChange( TMPXPlaybackState newState ); - - /** - * Update Control's visibility - */ - void updateControlsVisibility(); - - public: - HbVideoBasePlaybackView *mView; - QMPXVideoPlaybackViewFileDetails *mFileDetails; - - QList mControls; - - QMPXVideoPlaybackDocumentLoader *mLoader; - - TMPXPlaybackState mState; - TPlaybackViewMode mViewMode; - TMPXTimerAction mTimerAction; - -}; - -// INLINE METHODS -// ------------------------------------------------------------------------------------------------- -// QMPXVideoPlaybackControlsController::state -// ------------------------------------------------------------------------------------------------- -// -inline -TMPXPlaybackState QMPXVideoPlaybackControlsController::state() -{ - return mState; -} - -// ------------------------------------------------------------------------------------------------- -// QMPXVideoPlaybackControlsController::fileDetails -// ------------------------------------------------------------------------------------------------- -// -inline -QMPXVideoPlaybackViewFileDetails* QMPXVideoPlaybackControlsController::fileDetails() -{ - return mFileDetails; -} - -// ------------------------------------------------------------------------------------------------- -// QMPXVideoPlaybackControlsController::view -// ------------------------------------------------------------------------------------------------- -// -inline -HbVideoBasePlaybackView* QMPXVideoPlaybackControlsController::view() -{ - return mView; -} - -#endif /*MPXVIDEOPLAYBACKCONTROLSCONTROLLER_P_H_*/ - -// End of File