videoplayback/videoplaybackview/tsrc/testcontrolscontroller/stub/src/videoplaybackfullscreencontrol.cpp
changeset 62 0e1e938beb1a
parent 52 e3cecb93e76a
child 63 4707a0db12f6
equal deleted inserted replaced
59:a76e86df7ccd 62:0e1e938beb1a
    13 *
    13 *
    14 * Description:  Implementation of VideoPlaybackFullScreenControl
    14 * Description:  Implementation of VideoPlaybackFullScreenControl
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version:  4 %
    18 // Version : %version:  5 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 #include <w32std.h>
    22 #include <w32std.h>
    23 
    23 
    30 
    30 
    31 // -------------------------------------------------------------------------------------------------
    31 // -------------------------------------------------------------------------------------------------
    32 // VideoPlaybackFullScreenControl::VideoPlaybackFullScreenControl()
    32 // VideoPlaybackFullScreenControl::VideoPlaybackFullScreenControl()
    33 // -------------------------------------------------------------------------------------------------
    33 // -------------------------------------------------------------------------------------------------
    34 //
    34 //
    35 VideoPlaybackFullScreenControl::VideoPlaybackFullScreenControl( 
    35 VideoPlaybackFullScreenControl::VideoPlaybackFullScreenControl(
    36         VideoPlaybackControlsController* controller, 
    36         VideoPlaybackControlsController* controller,
    37         TVideoPlaybackControls index, 
    37         TVideoPlaybackControls index,
    38         HbWidget* widget, 
    38         HbWidget* widget,
    39         TUint controlproperties )
    39         TUint controlproperties )
    40     : mController( controller )
    40     : mController( controller )
    41     , mControl( widget )
    41     , mControl( widget )
    42     , mControlIndex( index )
    42     , mControlIndex( index )
    43     , mProperties( controlproperties )
    43     , mProperties( controlproperties )
       
    44     , mControlReset( false )
    44 {
    45 {
    45     MPX_ENTER_EXIT(_L("VideoPlaybackFullScreenControl::VideoPlaybackFullScreenControl()"));
    46     MPX_ENTER_EXIT(_L("VideoPlaybackFullScreenControl::VideoPlaybackFullScreenControl()"));
    46 
    47 
    47     setParent( mController );
    48     setParent( mController );
    48 }
    49 }
    79 // -------------------------------------------------------------------------------------------------
    80 // -------------------------------------------------------------------------------------------------
    80 //
    81 //
    81 void VideoPlaybackFullScreenControl::setVisibility( TMPXPlaybackState state )
    82 void VideoPlaybackFullScreenControl::setVisibility( TMPXPlaybackState state )
    82 {
    83 {
    83     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::setVisibility(%d)"), state);
    84     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::setVisibility(%d)"), state);
    84     
    85 
    85     mVisibilityState = state;
    86     mVisibilityState = state;
    86 }
    87 }
    87 
    88 
    88 // -------------------------------------------------------------------------------------------------
    89 // -------------------------------------------------------------------------------------------------
    89 // VideoPlaybackFullScreenControl::controlIndex()
    90 // VideoPlaybackFullScreenControl::controlIndex()
   109 // -------------------------------------------------------------------------------------------------
   110 // -------------------------------------------------------------------------------------------------
   110 //
   111 //
   111 bool VideoPlaybackFullScreenControl::durationChanged( int duration )
   112 bool VideoPlaybackFullScreenControl::durationChanged( int duration )
   112 {
   113 {
   113     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::durationChanged() [%d]"), duration );
   114     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::durationChanged() [%d]"), duration );
   114     mDuration = duration;    
   115     mDuration = duration;
   115     return true;
   116     return true;
   116 }
   117 }
   117 
   118 
   118 // -------------------------------------------------------------------------------------------------
   119 // -------------------------------------------------------------------------------------------------
   119 // VideoPlaybackFullScreenControl::positionChanged()
   120 // VideoPlaybackFullScreenControl::positionChanged()
   120 // -------------------------------------------------------------------------------------------------
   121 // -------------------------------------------------------------------------------------------------
   121 //
   122 //
   122 bool VideoPlaybackFullScreenControl::positionChanged( int position )
   123 bool VideoPlaybackFullScreenControl::positionChanged( int position )
   123 {   
   124 {
   124     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::positionChanged() [%d]"), position );
   125     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::positionChanged() [%d]"), position );
   125     mPosition = position;    
   126     mPosition = position;
   126     return true;
   127     return true;
   127 }
   128 }
   128 
   129 
   129 // -------------------------------------------------------------------------------------------------
   130 // -------------------------------------------------------------------------------------------------
   130 // VideoPlaybackFullScreenControl::aspectRatioChanged()
   131 // VideoPlaybackFullScreenControl::aspectRatioChanged()
   132 //
   133 //
   133 bool VideoPlaybackFullScreenControl::aspectRatioChanged( int aspectRatio )
   134 bool VideoPlaybackFullScreenControl::aspectRatioChanged( int aspectRatio )
   134 {
   135 {
   135     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::aspectRatioChanged() [%d]"), aspectRatio );
   136     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::aspectRatioChanged() [%d]"), aspectRatio );
   136     mAspectRatio = aspectRatio;
   137     mAspectRatio = aspectRatio;
   137     return true;    
   138     return true;
   138 }
   139 }
   139 
   140 
   140 // -------------------------------------------------------------------------------------------------
   141 // -------------------------------------------------------------------------------------------------
   141 //   VideoPlaybackFullScreenControl::setDownloadSize()
   142 //   VideoPlaybackFullScreenControl::setDownloadSize()
   142 // -------------------------------------------------------------------------------------------------
   143 // -------------------------------------------------------------------------------------------------
   164 // -------------------------------------------------------------------------------------------------
   165 // -------------------------------------------------------------------------------------------------
   165 //
   166 //
   166 void VideoPlaybackFullScreenControl::updateState( TMPXPlaybackState state )
   167 void VideoPlaybackFullScreenControl::updateState( TMPXPlaybackState state )
   167 {
   168 {
   168     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::updateState() [%d]"), state );
   169     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::updateState() [%d]"), state );
   169     mState = state; 
   170     mState = state;
   170 }
   171 }
   171 
   172 
   172 // -------------------------------------------------------------------------------------------------
   173 // -------------------------------------------------------------------------------------------------
   173 // VideoPlaybackFullScreenControl::updateControlsWithFileDetails()
   174 // VideoPlaybackFullScreenControl::updateControlsWithFileDetails()
   174 // -------------------------------------------------------------------------------------------------
   175 // -------------------------------------------------------------------------------------------------
   188 {
   189 {
   189     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::updateControlProperties()") );
   190     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::updateControlProperties()") );
   190     mProperties = properties;
   191     mProperties = properties;
   191 }
   192 }
   192 
   193 
       
   194 // -------------------------------------------------------------------------------------------------
       
   195 // VideoPlaybackFullScreenControl::resetControl()
       
   196 // -------------------------------------------------------------------------------------------------
       
   197 //
       
   198 void VideoPlaybackFullScreenControl::resetControl()
       
   199 {
       
   200     mControlReset = true;
       
   201 }
       
   202 
   193 // End of file
   203 // End of file