videoplayback/videoplaybackview/controlsrc/videoplaybackfullscreencontrol.cpp
changeset 63 4707a0db12f6
parent 58 d2b028fd1f7d
equal deleted inserted replaced
58:d2b028fd1f7d 63:4707a0db12f6
    13 *
    13 *
    14 * Description:  Implementation of VideoPlaybackFullScreenControl
    14 * Description:  Implementation of VideoPlaybackFullScreenControl
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: da1mmcf#11 %
    18 // Version : %version: da1mmcf#12 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 #include <w32std.h>
    22 #include <w32std.h>
    23 
    23 
    40         TUint controlproperties )
    40         TUint controlproperties )
    41     : mController( controller )
    41     : mController( controller )
    42     , mControl( widget )
    42     , mControl( widget )
    43     , mControlIndex( index )
    43     , mControlIndex( index )
    44     , mProperties( controlproperties )
    44     , mProperties( controlproperties )
       
    45     , mVisible( false )
    45 {
    46 {
    46     MPX_ENTER_EXIT(_L("VideoPlaybackFullScreenControl::VideoPlaybackFullScreenControl()"));
    47     MPX_ENTER_EXIT(_L("VideoPlaybackFullScreenControl::VideoPlaybackFullScreenControl()"));
    47 
    48 
    48     setParent( mController );
    49     setParent( mController );
    49 }
    50 }
    61 // VideoPlaybackFullScreenControl::setVisible()
    62 // VideoPlaybackFullScreenControl::setVisible()
    62 // -------------------------------------------------------------------------------------------------
    63 // -------------------------------------------------------------------------------------------------
    63 //
    64 //
    64 void VideoPlaybackFullScreenControl::setVisible( bool visible )
    65 void VideoPlaybackFullScreenControl::setVisible( bool visible )
    65 {
    66 {
    66     switch ( mControlIndex )
    67     if( mVisible != visible )
    67     {
    68     {
    68         case EControlBar:
    69         mVisible = visible;
    69         {
    70 
    70             static_cast<VideoPlaybackControlBar*>(mControl)->setVisibleToControlBar( visible );
    71         switch ( mControlIndex )
    71             break;
    72         {
    72         }
    73             case EControlBar:
    73         default:
    74             {
    74         {
    75                 static_cast<VideoPlaybackControlBar*>(mControl)->setVisibleToControlBar( visible );
    75             mControl->setVisible( visible );
    76                 break;
    76             break;
    77             }
       
    78             default:
       
    79             {
       
    80                 mControl->setVisible( visible );
       
    81                 break;
       
    82             }
    77         }
    83         }
    78     }
    84     }
    79 }
    85 }
    80 
    86 
    81 // -------------------------------------------------------------------------------------------------
    87 // -------------------------------------------------------------------------------------------------