videoplayback/hbvideoplaybackview/tsrc/teststatuspanecontrol/stub/src/mpxvideoplaybackfullscreencontrol.cpp
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:  3 %
       
    19 
       
    20 
       
    21 
       
    22 #include <w32std.h>
       
    23 #include <hbwidget.h>
       
    24 
       
    25 #include "mpxvideo_debug.h"
       
    26 #include "mpxvideoplaybackfullscreencontrol.h"
       
    27 #include "mpxvideoplaybackcontrolscontroller.h"
       
    28 
       
    29 
       
    30 // -------------------------------------------------------------------------------------------------
       
    31 // QMPXVideoPlaybackFullScreenControl::QMPXVideoPlaybackFullScreenControl()
       
    32 // -------------------------------------------------------------------------------------------------
       
    33 //
       
    34 QMPXVideoPlaybackFullScreenControl::QMPXVideoPlaybackFullScreenControl( 
       
    35         QMPXVideoPlaybackControlsController* controller, 
       
    36         TMPXVideoPlaybackControls index, 
       
    37         HbWidget* widget, 
       
    38         TUint controlproperties )
       
    39     : mController( controller )
       
    40     , mControl( widget )
       
    41     , mControlIndex( index )
       
    42     , mProperties( controlproperties )
       
    43 {
       
    44     MPX_ENTER_EXIT(_L("QMPXVideoPlaybackFullScreenControl::QMPXVideoPlaybackFullScreenControl()"));
       
    45 
       
    46     setParent( mController );
       
    47 }
       
    48 
       
    49 // -------------------------------------------------------------------------------------------------
       
    50 // QMPXVideoPlaybackFullScreenControl::~QMPXVideoPlaybackFullScreenControl()
       
    51 // -------------------------------------------------------------------------------------------------
       
    52 //
       
    53 QMPXVideoPlaybackFullScreenControl::~QMPXVideoPlaybackFullScreenControl()
       
    54 {
       
    55     MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::~QMPXVideoPlaybackFullScreenControl"));
       
    56 }
       
    57 
       
    58 // -------------------------------------------------------------------------------------------------
       
    59 // QMPXVideoPlaybackFullScreenControl::setVisible()
       
    60 // -------------------------------------------------------------------------------------------------
       
    61 //
       
    62 void QMPXVideoPlaybackFullScreenControl::setVisible( bool visible )
       
    63 {
       
    64     mControl->setVisible( visible );
       
    65 }
       
    66 
       
    67 // -------------------------------------------------------------------------------------------------
       
    68 // QMPXVideoPlaybackFullScreenControl::isVisible()
       
    69 // -------------------------------------------------------------------------------------------------
       
    70 //
       
    71 bool QMPXVideoPlaybackFullScreenControl::isVisible()
       
    72 {
       
    73     return mVisible;
       
    74 }
       
    75 
       
    76 // -------------------------------------------------------------------------------------------------
       
    77 // QMPXVideoPlaybackFullScreenControl::setVisibility()
       
    78 // -------------------------------------------------------------------------------------------------
       
    79 //
       
    80 void QMPXVideoPlaybackFullScreenControl::setVisibility( TMPXPlaybackState /*state*/ )
       
    81 {
       
    82     MPX_DEBUG(_L("QMPXVideoPlaybackFullScreenControl::setVisibility()"));
       
    83    
       
    84     mVisible = true;
       
    85 }
       
    86 
       
    87 // -------------------------------------------------------------------------------------------------
       
    88 // QMPXVideoPlaybackFullScreenControl::controlIndex()
       
    89 // -------------------------------------------------------------------------------------------------
       
    90 //
       
    91 TMPXVideoPlaybackControls QMPXVideoPlaybackFullScreenControl::controlIndex()
       
    92 {
       
    93     return mControlIndex;
       
    94 }
       
    95 
       
    96 // -------------------------------------------------------------------------------------------------
       
    97 // QMPXVideoPlaybackFullScreenControl::updateState()
       
    98 // -------------------------------------------------------------------------------------------------
       
    99 //
       
   100 void QMPXVideoPlaybackFullScreenControl::updateState( TMPXPlaybackState state )
       
   101 {
       
   102     Q_UNUSED( state );
       
   103 }
       
   104 
       
   105 // -------------------------------------------------------------------------------------------------
       
   106 // QMPXVideoPlaybackFullScreenControl::updateControlsWithFileDetails()
       
   107 // -------------------------------------------------------------------------------------------------
       
   108 //
       
   109 void QMPXVideoPlaybackFullScreenControl::updateControlsWithFileDetails(
       
   110         QMPXVideoPlaybackViewFileDetails* details )
       
   111 {
       
   112     Q_UNUSED( details );
       
   113 }
       
   114 
       
   115 // -------------------------------------------------------------------------------------------------
       
   116 // QMPXVideoPlaybackFullScreenControl::updateControlProperties()
       
   117 // -------------------------------------------------------------------------------------------------
       
   118 //
       
   119 void QMPXVideoPlaybackFullScreenControl::updateControlProperties( TUint properties )
       
   120 {
       
   121     mProperties = properties;
       
   122 }
       
   123 
       
   124 // End of file