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