diff -r 45e72b57a2fd -r e3cecb93e76a videoplayback/videoplaybackview/tsrc/testdocumentloader/stub/inc/videoplaybackcontrolbar.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videoplayback/videoplaybackview/tsrc/testdocumentloader/stub/inc/videoplaybackcontrolbar.h Wed Aug 18 09:50:14 2010 +0300 @@ -0,0 +1,57 @@ +/* +* 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 VideoPlaybackControlBar +* +*/ + +// Version : %version: 2 % + + + +#ifndef VIDEOPLAYBACKCONTROLBAR_H_ +#define VIDEOPLAYBACKCONTROLBAR_H_ + + + +#include +#include + +class VideoPlaybackViewFileDetails; +class VideoPlaybackControlsController; + +class VideoPlaybackControlBar : public HbWidget +{ + Q_OBJECT + + public: + VideoPlaybackControlBar( VideoPlaybackControlsController* controller ); + virtual ~VideoPlaybackControlBar(); + void updateState( TMPXPlaybackState state ); + void aspectRatioChanged( int aspectRatio ); + void updateWithFileDetails( VideoPlaybackViewFileDetails* details ); + void setVisibility( bool visible ); + void durationChanged( int duration ); + void positionChanged( int position ); + + public: + VideoPlaybackControlsController *mController; + int mPosition; + int mDuration; + int mAspectRatio; + bool mVisibility; + TMPXPlaybackState mState; + VideoPlaybackViewFileDetails *mFileDetails; +}; + +#endif /*VIDEOPLAYBACKCONTROLBAR_H_*/