videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybackcontrolbar/stub/inc/mpxvideoplaybackprogressbar.h
changeset 35 3738fe97f027
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:  1 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef MPXVIDEOPLAYBACKPROGRESSBAR_H_
       
    23 #define MPXVIDEOPLAYBACKPROGRESSBAR_H_
       
    24 
       
    25 #include <hbwidget.h>
       
    26 #include <mpxplaybackframeworkdefs.h>
       
    27 
       
    28 class QMPXVideoPlaybackViewFileDetails;
       
    29 class QMPXVideoPlaybackControlsController;
       
    30 
       
    31 class QMPXVideoPlaybackProgressBar : public HbWidget
       
    32 {
       
    33     Q_OBJECT
       
    34 
       
    35     public:
       
    36         QMPXVideoPlaybackProgressBar( QMPXVideoPlaybackControlsController* controller );
       
    37         virtual ~QMPXVideoPlaybackProgressBar();
       
    38         void initialize();
       
    39         void updateWithFileDetails( QMPXVideoPlaybackViewFileDetails* details );
       
    40         void updateState( TMPXPlaybackState state );
       
    41 
       
    42     public:
       
    43         void durationChanged( int duration );
       
    44         void positionChanged( int position );
       
    45 
       
    46     public:
       
    47         QMPXVideoPlaybackControlsController *mController;
       
    48         QMPXVideoPlaybackViewFileDetails *mFileDetails;
       
    49         TMPXPlaybackState mState;
       
    50         int mDuration;
       
    51         int mPosition;
       
    52 };
       
    53 
       
    54 #endif /*MPXVIDEOPLAYBACKPROGRESSBAR_H_*/
       
    55