videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybackcontrolbar/stub/src/mpxvideoplaybackprogressbar.cpp
changeset 44 518105d52e45
parent 42 17f382c040b1
child 49 824471cb468a
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implementation of QMPXVideoPlaybackProgressBar
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  1 %
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #include "mpxvideo_debug.h"
       
    24 #include "mpxvideoplaybackprogressbar.h"
       
    25 #include "mpxvideoplaybackcontrolscontroller.h"
       
    26 
       
    27 // -------------------------------------------------------------------------------------------------
       
    28 // QMPXVideoPlaybackProgressBar::QMPXVideoPlaybackProgressBar
       
    29 // -------------------------------------------------------------------------------------------------
       
    30 //
       
    31 QMPXVideoPlaybackProgressBar::QMPXVideoPlaybackProgressBar( 
       
    32         QMPXVideoPlaybackControlsController* controller )
       
    33     : mController( controller )
       
    34     , mDuration( -1 )
       
    35 {
       
    36     MPX_ENTER_EXIT(_L("QMPXVideoPlaybackProgressBar::QMPXVideoPlaybackProgressBar()"));
       
    37 }
       
    38 
       
    39 // -------------------------------------------------------------------------------------------------
       
    40 // QMPXVideoPlaybackProgressBar::~QMPXVideoPlaybackProgressBar
       
    41 // -------------------------------------------------------------------------------------------------
       
    42 //
       
    43 QMPXVideoPlaybackProgressBar::~QMPXVideoPlaybackProgressBar()
       
    44 {
       
    45     MPX_ENTER_EXIT(_L("QMPXVideoPlaybackProgressBar::~QMPXVideoPlaybackProgressBar()"));
       
    46 }
       
    47 
       
    48 // -------------------------------------------------------------------------------------------------
       
    49 // QMPXVideoPlaybackProgressBar::initialize
       
    50 // -------------------------------------------------------------------------------------------------
       
    51 //
       
    52 void QMPXVideoPlaybackProgressBar::initialize()
       
    53 {
       
    54     MPX_ENTER_EXIT(_L("QMPXVideoPlaybackProgressBar::initialize()"));
       
    55 }
       
    56 
       
    57 // -------------------------------------------------------------------------------------------------
       
    58 // QMPXVideoPlaybackProgressBar::durationChanged
       
    59 // -------------------------------------------------------------------------------------------------
       
    60 //
       
    61 void QMPXVideoPlaybackProgressBar::durationChanged( int duration )
       
    62 {
       
    63     MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::durationChanged duration = %d"), duration );
       
    64 
       
    65     mDuration = duration;
       
    66 }
       
    67 
       
    68 // -------------------------------------------------------------------------------------------------
       
    69 // QMPXVideoPlaybackProgressBar::positionChanged
       
    70 // -------------------------------------------------------------------------------------------------
       
    71 //
       
    72 void QMPXVideoPlaybackProgressBar::positionChanged( int position )
       
    73 {
       
    74     MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::positionChanged position = %d"), position );
       
    75 
       
    76     mPosition = position;
       
    77 }
       
    78 
       
    79 // -------------------------------------------------------------------------------------------------
       
    80 // QMPXVideoPlaybackProgressBar::updateWithFileDetails()
       
    81 // -------------------------------------------------------------------------------------------------
       
    82 //
       
    83 void QMPXVideoPlaybackProgressBar::updateWithFileDetails(
       
    84         QMPXVideoPlaybackViewFileDetails* details )
       
    85 {
       
    86     MPX_DEBUG(_L("QMPXVideoPlaybackProgressBar::updateControlsWithFileDetails()"));
       
    87 
       
    88     mFileDetails = details;
       
    89 }
       
    90 
       
    91 // -------------------------------------------------------------------------------------------------
       
    92 // QMPXVideoPlaybackProgressBar::updateState()
       
    93 // -------------------------------------------------------------------------------------------------
       
    94 //
       
    95 void QMPXVideoPlaybackProgressBar::updateState( TMPXPlaybackState state )
       
    96 {
       
    97     MPX_DEBUG(_L("QMPXVideoPlaybackProgressBar::updateState() state = %d"), state );
       
    98 
       
    99     mState = state;
       
   100 }
       
   101 
       
   102 //End of file