videoplayback/hbvideoplaybackview/tsrc/teststatuspanecontrol/stub/inc/mpxvideoplaybackfullscreencontrol.h
changeset 44 518105d52e45
parent 42 17f382c040b1
child 49 824471cb468a
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
     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 QMPXVideoPlaybackFullScreenControl
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  2 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef MPXVIDEOPLAYBACKFULLSCREENCONTROL_H_
       
    23 #define MPXVIDEOPLAYBACKFULLSCREENCONTROL_H_
       
    24 
       
    25 #include <qobject>
       
    26 
       
    27 #include <mpxvideoplaybackcontrol.hrh>
       
    28 #include <mpxplaybackframeworkdefs.h>
       
    29 
       
    30 class HbWidget;
       
    31 class QMPXVideoPlaybackViewFileDetails;
       
    32 class QMPXVideoPlaybackControlsController;
       
    33 
       
    34 class QMPXVideoPlaybackFullScreenControl : public QObject
       
    35 {
       
    36     Q_OBJECT
       
    37 
       
    38     public:
       
    39         QMPXVideoPlaybackFullScreenControl( QMPXVideoPlaybackControlsController* controller, 
       
    40                                             TMPXVideoPlaybackControls index,
       
    41                                             HbWidget* widget, 
       
    42                                             TUint controlproperties );
       
    43 
       
    44         virtual ~QMPXVideoPlaybackFullScreenControl();
       
    45 
       
    46     public:
       
    47 
       
    48         /**
       
    49         * Set visibility of each control
       
    50         */
       
    51         virtual void setVisibility( TMPXPlaybackState aState );
       
    52         
       
    53         /**
       
    54         * return control index
       
    55         */
       
    56         TMPXVideoPlaybackControls controlIndex();
       
    57 
       
    58         /**
       
    59         * set changed state
       
    60         */
       
    61         void updateState( TMPXPlaybackState state );
       
    62         
       
    63         /*
       
    64          *  Update the controls with the file details
       
    65          */
       
    66         virtual void updateControlsWithFileDetails( QMPXVideoPlaybackViewFileDetails *details );
       
    67 
       
    68         virtual void setVisible( bool visible );
       
    69 
       
    70         virtual bool isVisible();
       
    71 
       
    72         virtual void updateControlProperties( TUint properties );
       
    73 
       
    74     protected:
       
    75         QMPXVideoPlaybackControlsController* mController;
       
    76         HbWidget                 *mControl;
       
    77         TMPXVideoPlaybackControls mControlIndex;
       
    78         TUint                     mProperties;
       
    79         bool                      mVisible;
       
    80 };
       
    81 
       
    82 #endif /*MPXVIDEOPLAYBACKFULLSCREENCONTROL_H_*/
       
    83