videoplayback/videoplaybackview/controlinc/videoplaybackfullscreencontrol.h
changeset 44 518105d52e45
child 58 d2b028fd1f7d
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
       
     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 VideoPlaybackFullScreenControl
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version: da1mmcf#9 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef VIDEOPLAYBACKFULLSCREENCONTROL_H_
       
    23 #define VIDEOPLAYBACKFULLSCREENCONTROL_H_
       
    24 
       
    25 #include <QObject>
       
    26 
       
    27 #include <videoplaybackcontrol.hrh>
       
    28 #include <mpxplaybackframeworkdefs.h>
       
    29 
       
    30 class HbWidget;
       
    31 class VideoPlaybackViewFileDetails;
       
    32 class VideoPlaybackControlsController;
       
    33 
       
    34 class VideoPlaybackFullScreenControl : public QObject
       
    35 {
       
    36     Q_OBJECT
       
    37 
       
    38     public:
       
    39         VideoPlaybackFullScreenControl( VideoPlaybackControlsController* controller, 
       
    40                                         TVideoPlaybackControls index,
       
    41                                         HbWidget* widget, 
       
    42                                         TUint controlproperties );
       
    43 
       
    44         virtual ~VideoPlaybackFullScreenControl();
       
    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         TVideoPlaybackControls controlIndex();
       
    57 
       
    58         /**
       
    59         * set changed duration
       
    60         */
       
    61         bool durationChanged( int duration );
       
    62 
       
    63         /**
       
    64         * set changed volume
       
    65         */
       
    66         bool positionChanged( int position );
       
    67 
       
    68         /**
       
    69         * Set changed position
       
    70         */
       
    71         bool aspectRatioChanged( int aspectRatio );
       
    72 
       
    73         /**
       
    74         * set changed volume
       
    75         */
       
    76         bool setDownloadSize( int size );
       
    77 
       
    78         /**
       
    79         * set changed state
       
    80         */
       
    81         void updateState( TMPXPlaybackState state );
       
    82         
       
    83         /*
       
    84          *  UpdateDownloadPosition
       
    85          *  updates the download ratio on the progress bar
       
    86          */
       
    87         bool updateDownloadPosition( int size );
       
    88 
       
    89         /*
       
    90          *  Update the controls with the file details
       
    91          */
       
    92         virtual void updateControlsWithFileDetails( VideoPlaybackViewFileDetails *details );
       
    93 
       
    94         virtual void setVisible( bool visible );
       
    95 
       
    96         virtual bool isVisible();
       
    97 
       
    98         virtual void updateControlProperties( TUint properties );
       
    99 
       
   100     protected:
       
   101         VideoPlaybackControlsController* mController;
       
   102         HbWidget                 *mControl;
       
   103         TVideoPlaybackControls    mControlIndex;
       
   104         TUint                     mProperties;
       
   105 };
       
   106 
       
   107 #endif /*VIDEOPLAYBACKFULLSCREENCONTROL_H_*/
       
   108