videoplayback/hbvideoplaybackview/tsrc/testfullscreencontrol/stub/src/mpxvideoplaybackprogressbar.cpp
changeset 35 3738fe97f027
parent 34 bbb98528c666
child 36 8aed59de29f9
equal deleted inserted replaced
34:bbb98528c666 35:3738fe97f027
     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: 2 %
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #include <qtime>
       
    24 #include <qgraphicsscenemouseevent>
       
    25 
       
    26 #include <hblabel.h>
       
    27 #include <hbprogressbar.h>
       
    28 
       
    29 #include "mpxvideo_debug.h"
       
    30 #include "mpxvideoplaybackprogressbar.h"
       
    31 #include "mpxvideoplaybackcontrolscontroller.h"
       
    32 
       
    33 // -------------------------------------------------------------------------------------------------
       
    34 // QMPXVideoPlaybackProgressBar::QMPXVideoPlaybackProgressBar
       
    35 // -------------------------------------------------------------------------------------------------
       
    36 //
       
    37 QMPXVideoPlaybackProgressBar::QMPXVideoPlaybackProgressBar( 
       
    38         QMPXVideoPlaybackControlsController* controller )
       
    39     : mController( controller )
       
    40     , mDuration( -1 )
       
    41     , mNeedToResumeAfterSetPosition( false )
       
    42     , mInitialized( false )
       
    43     , mDragging( false )
       
    44 {
       
    45     MPX_ENTER_EXIT(_L("QMPXVideoPlaybackProgressBar::QMPXVideoPlaybackProgressBar()"));
       
    46 }
       
    47 
       
    48 // -------------------------------------------------------------------------------------------------
       
    49 // QMPXVideoPlaybackProgressBar::~QMPXVideoPlaybackProgressBar
       
    50 // -------------------------------------------------------------------------------------------------
       
    51 //
       
    52 QMPXVideoPlaybackProgressBar::~QMPXVideoPlaybackProgressBar()
       
    53 {
       
    54     MPX_ENTER_EXIT(_L("QMPXVideoPlaybackProgressBar::~QMPXVideoPlaybackProgressBar()"));
       
    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     mDuration = duration;
       
    65 }
       
    66 
       
    67 // -------------------------------------------------------------------------------------------------
       
    68 // QMPXVideoPlaybackProgressBar::positionChanged
       
    69 // -------------------------------------------------------------------------------------------------
       
    70 //
       
    71 void QMPXVideoPlaybackProgressBar::positionChanged( int position )
       
    72 {
       
    73     MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::positionChanged position = %d"), position );
       
    74     mPosition = position;
       
    75 }
       
    76 
       
    77 // -------------------------------------------------------------------------------------------------
       
    78 // QMPXVideoPlaybackProgressBar::updateWithFileDetails()
       
    79 // -------------------------------------------------------------------------------------------------
       
    80 //
       
    81 void QMPXVideoPlaybackProgressBar::updateWithFileDetails(
       
    82         QMPXVideoPlaybackViewFileDetails* details )
       
    83 {
       
    84     Q_UNUSED( details );
       
    85     MPX_DEBUG(_L("QMPXVideoPlaybackProgressBar::updateControlsWithFileDetails()"));
       
    86 }
       
    87 
       
    88 // -------------------------------------------------------------------------------------------------
       
    89 // QMPXVideoPlaybackProgressBar::updateState()
       
    90 // -------------------------------------------------------------------------------------------------
       
    91 //
       
    92 void QMPXVideoPlaybackProgressBar::updateState( TMPXPlaybackState state )
       
    93 {
       
    94     MPX_DEBUG(_L("QMPXVideoPlaybackProgressBar::updateState() state = %d"), state );
       
    95 }
       
    96 
       
    97 //End of file