videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybackcontrolbar/stub/inc/mpxvideoplaybacktoolbar.h
changeset 37 4eb2df7f7cbe
equal deleted inserted replaced
36:8aed59de29f9 37:4eb2df7f7cbe
       
     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 QMPXVideoPlaybackToolBar
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  1 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef MPXVIDEOPLAYBACKTOOLBAR_H_
       
    23 #define MPXVIDEOPLAYBACKTOOLBAR_H_
       
    24 
       
    25 #include <QWidget>
       
    26 #include <mpxplaybackframeworkdefs.h>
       
    27 
       
    28 
       
    29 
       
    30 class QMPXVideoPlaybackViewFileDetails;
       
    31 class QMPXVideoPlaybackControlsController;
       
    32 
       
    33 
       
    34 class QMPXVideoPlaybackToolBar : public QWidget
       
    35 {
       
    36     Q_OBJECT
       
    37 
       
    38     public:
       
    39         QMPXVideoPlaybackToolBar( QMPXVideoPlaybackControlsController* controller );
       
    40         virtual ~QMPXVideoPlaybackToolBar();
       
    41         void updateState( TMPXPlaybackState state );
       
    42         void aspectRatioChanged( int aspectRatio );
       
    43         void initialize();
       
    44         void updateWithFileDetails( QMPXVideoPlaybackViewFileDetails* details );
       
    45         void durationChanged( int duration );
       
    46         void positionChanged( int position );
       
    47         void setVisible( bool visible );
       
    48 
       
    49     public:
       
    50         QMPXVideoPlaybackControlsController *mController;
       
    51         QMPXVideoPlaybackViewFileDetails *mFileDetails;
       
    52         int mAspectRatio;
       
    53         int mPosition;
       
    54         int mDuration;
       
    55         bool mVisible;
       
    56         TMPXPlaybackState mState;
       
    57 };
       
    58 
       
    59 #endif /*MPXVIDEOPLAYBACKTOOLBAR_H_*/