videoplayback/hbvideoplaybackview/tsrc/testfullscreencontrol/stub/inc/mpxvideoplaybackbuttonbar.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 QMPXVideoPlaybackButtonBar
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version: 1 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef MPXVIDEOPLAYBACKBUTTONBAR_H_
       
    23 #define MPXVIDEOPLAYBACKBUTTONBAR_H_
       
    24 
       
    25 #include <hbwidget.h>
       
    26 #include <MMFScalingCustomCommandConstants.h>
       
    27 #include <mpxplaybackframeworkdefs.h>
       
    28 
       
    29 
       
    30 class QMPXVideoPlaybackViewFileDetails;
       
    31 class QMPXVideoPlaybackControlsController;
       
    32 
       
    33 // DATA TYPES
       
    34 enum TMPXButton
       
    35 {
       
    36     EMPXButtonRW,
       
    37     EMPXButtonPlay,
       
    38     EMPXButtonPause,
       
    39     EMPXButtonFF,
       
    40     EMPXButtonNatural,
       
    41     EMPXButtonStretch,
       
    42     EMPXButtonZoom,
       
    43     EMPXButtonDetails,
       
    44     EMPXButtonCount    // Should always be the last value
       
    45 };
       
    46 
       
    47 
       
    48 class QMPXVideoPlaybackButtonBar : public HbWidget
       
    49 {
       
    50     Q_OBJECT
       
    51 
       
    52     public:
       
    53         QMPXVideoPlaybackButtonBar( QMPXVideoPlaybackControlsController* controller );
       
    54         virtual ~QMPXVideoPlaybackButtonBar();
       
    55 
       
    56         void aspectRatioChanged( int aspectRatio );
       
    57 
       
    58         void updateWithFileDetails( QMPXVideoPlaybackViewFileDetails* details );
       
    59         
       
    60         void updateState( TMPXPlaybackState state );
       
    61 
       
    62     public:
       
    63         QMPXVideoPlaybackControlsController *mController;
       
    64         bool                                 mInitialized;
       
    65         int                                  mAspectRatio;
       
    66         TMPXPlaybackState                    mState;
       
    67         bool                                 mShowPauseButton;
       
    68 };
       
    69 
       
    70 #endif /*MPXVIDEOPLAYBACKBUTTONBAR_H_*/