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