videoplayback/hbvideoplaybackview/controlinc/mpxvideoplaybackstatuspanecontrol.h
changeset 15 cf5481c2bc0b
child 24 7d93ee07fb27
equal deleted inserted replaced
2:dec420019252 15:cf5481c2bc0b
       
     1 /*
       
     2 * Copyright (c) 2009 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 QMPXVideoPlaybackStatusPaneControl
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version: 9 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef MPXVIDEOPLAYBACKSTATUSPANECONTROL_H_
       
    23 #define MPXVIDEOPLAYBACKSTATUSPANECONTROL_H_
       
    24 
       
    25 
       
    26 #include "mpxvideoplaybackfullscreencontrol.h"
       
    27 
       
    28 
       
    29 class HbLabel;
       
    30 class HbAction;
       
    31 class HbFrameItem;
       
    32 class QMPXVideoPlaybackViewFileDetails;
       
    33 class QMPXVideoPlaybackControlsController;
       
    34 
       
    35 class QMPXVideoPlaybackStatusPaneControl : public QMPXVideoPlaybackFullScreenControl
       
    36 {
       
    37     Q_OBJECT
       
    38 
       
    39     public:
       
    40         QMPXVideoPlaybackStatusPaneControl( QMPXVideoPlaybackControlsController* controller, 
       
    41                                             TMPXVideoPlaybackControls index,
       
    42                                             HbWidget* widget, 
       
    43                                             TUint controlproperties );
       
    44 
       
    45         virtual ~QMPXVideoPlaybackStatusPaneControl();
       
    46 
       
    47     public:
       
    48 
       
    49         /**
       
    50         * Set visibility of each control
       
    51         */
       
    52         void setVisibility( TMPXPlaybackState aState );
       
    53 
       
    54         /*
       
    55          *  Update the controls with the file details
       
    56          */
       
    57         void updateControlsWithFileDetails( QMPXVideoPlaybackViewFileDetails *details );
       
    58 
       
    59         void setVisible( bool visible );
       
    60 
       
    61         bool isVisible();
       
    62 
       
    63         void setMenu( QMPXVideoPlaybackViewFileDetails* details );
       
    64 
       
    65         void controlListUpdated( QMPXVideoPlaybackViewFileDetails* details );
       
    66 
       
    67     private slots:
       
    68         void handleAboutToShow();
       
    69         void handleAboutToHide();
       
    70         void openFullScreenView();
       
    71 
       
    72     private:
       
    73         bool                     mVisible;
       
    74         HbAction                *mActionBack;
       
    75         HbLabel                 *mTitleLabel;
       
    76         HbFrameItem             *mFrameItem;
       
    77 };
       
    78 
       
    79 #endif /*MPXVIDEOPLAYBACKSTATUSPANECONTROL_H_*/
       
    80