diff -r 17f382c040b1 -r 518105d52e45 videoplayback/videoplaybackview/tsrc/testdocumentloader/stub/src/videoplaybackcontrolbar.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videoplayback/videoplaybackview/tsrc/testdocumentloader/stub/src/videoplaybackcontrolbar.cpp Thu Jul 08 13:05:19 2010 +0300 @@ -0,0 +1,119 @@ +/* +* 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 % + + + +#include +#include + +#include "mpxvideo_debug.h" +#include "videoplaybackcontrolbar.h" +#include "mpxcommonvideoplaybackview.hrh" +#include "videoplaybackcontrolscontroller.h" + + +// ------------------------------------------------------------------------------------------------- +// VideoPlaybackControlBar::VideoPlaybackControlBar() +// ------------------------------------------------------------------------------------------------- +// +VideoPlaybackControlBar::VideoPlaybackControlBar( + VideoPlaybackControlsController* controller ) + : mController( controller ) +{ + MPX_ENTER_EXIT(_L("VideoPlaybackControlBar::VideoPlaybackControlBar")); +} + +// ------------------------------------------------------------------------------------------------- +// VideoPlaybackControlBar::~VideoPlaybackControlBar() +// ------------------------------------------------------------------------------------------------- +// +VideoPlaybackControlBar::~VideoPlaybackControlBar() +{ + MPX_DEBUG(_L("VideoPlaybackControlBar::~VideoPlaybackControlBar()")); +} + +// ------------------------------------------------------------------------------------------------- +// VideoPlaybackControlBar::updateState() +// ------------------------------------------------------------------------------------------------- +// +void VideoPlaybackControlBar::updateState( TMPXPlaybackState state ) +{ + MPX_DEBUG(_L("VideoPlaybackControlBar::updateState() state = %d"), state ); + + mState = state; +} + +// ------------------------------------------------------------------------------------------------- +// VideoPlaybackControlBar::aspectRatioChanged() +// ------------------------------------------------------------------------------------------------- +// +void VideoPlaybackControlBar::aspectRatioChanged( int aspectRatio ) +{ + MPX_DEBUG(_L("VideoPlaybackControlBar::aspectRatioChanged() aspectRatio = %d"), aspectRatio ); + + mAspectRatio = aspectRatio; +} + +// ------------------------------------------------------------------------------------------------- +// VideoPlaybackControlBar::updateWithFileDetails() +// ------------------------------------------------------------------------------------------------- +// +void VideoPlaybackControlBar::updateWithFileDetails( + VideoPlaybackViewFileDetails* details ) +{ + MPX_DEBUG(_L("VideoPlaybackControlBar::updateWithFileDetails()")); + + mFileDetails = details; +} + +// ------------------------------------------------------------------------------------------------- +// VideoPlaybackControlBar::setVisibility() +// ------------------------------------------------------------------------------------------------- +// +void VideoPlaybackControlBar::setVisibility( bool visible ) +{ + MPX_DEBUG(_L("VideoPlaybackControlBar::setVisibility()")); + + mVisibility = visible; +} + + +// ------------------------------------------------------------------------------------------------- +// VideoPlaybackControlBar::durationChanged() +// ------------------------------------------------------------------------------------------------- +// +void VideoPlaybackControlBar::durationChanged( int duration ) +{ + MPX_DEBUG(_L("VideoPlaybackControlBar::durationChanged()")); + + mDuration = duration; +} + +// ------------------------------------------------------------------------------------------------- +// VideoPlaybackControlBar::positionChanged() +// ------------------------------------------------------------------------------------------------- +// +void VideoPlaybackControlBar::positionChanged( int position ) +{ + MPX_DEBUG(_L("VideoPlaybackControlBar::positionChanged()")); + + mPosition = position; +} + +//End of file