videoplayback/videoplaybackview/tsrc/testcontrolscontroller/stub/src/videoplaybackfullscreencontrol.cpp
changeset 52 e3cecb93e76a
child 58 d2b028fd1f7d
equal deleted inserted replaced
47:45e72b57a2fd 52:e3cecb93e76a
       
     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 VideoPlaybackFullScreenControl
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  4 %
       
    19 
       
    20 
       
    21 
       
    22 #include <w32std.h>
       
    23 
       
    24 #include "mpxvideo_debug.h"
       
    25 #include "videoplaybackfullscreencontrol.h"
       
    26 #include "videoplaybackfiledetailswidget.h"
       
    27 #include "videoplaybackcontrolscontroller.h"
       
    28 #include "videoplaybackdetailsplaybackwindow.h"
       
    29 
       
    30 
       
    31 // -------------------------------------------------------------------------------------------------
       
    32 // VideoPlaybackFullScreenControl::VideoPlaybackFullScreenControl()
       
    33 // -------------------------------------------------------------------------------------------------
       
    34 //
       
    35 VideoPlaybackFullScreenControl::VideoPlaybackFullScreenControl( 
       
    36         VideoPlaybackControlsController* controller, 
       
    37         TVideoPlaybackControls index, 
       
    38         HbWidget* widget, 
       
    39         TUint controlproperties )
       
    40     : mController( controller )
       
    41     , mControl( widget )
       
    42     , mControlIndex( index )
       
    43     , mProperties( controlproperties )
       
    44 {
       
    45     MPX_ENTER_EXIT(_L("VideoPlaybackFullScreenControl::VideoPlaybackFullScreenControl()"));
       
    46 
       
    47     setParent( mController );
       
    48 }
       
    49 
       
    50 // -------------------------------------------------------------------------------------------------
       
    51 // VideoPlaybackFullScreenControl::~VideoPlaybackFullScreenControl()
       
    52 // -------------------------------------------------------------------------------------------------
       
    53 //
       
    54 VideoPlaybackFullScreenControl::~VideoPlaybackFullScreenControl()
       
    55 {
       
    56     MPX_DEBUG(_L("VideoPlaybackControlsController::~VideoPlaybackFullScreenControl"));
       
    57 }
       
    58 
       
    59 // -------------------------------------------------------------------------------------------------
       
    60 // VideoPlaybackFullScreenControl::setVisible()
       
    61 // -------------------------------------------------------------------------------------------------
       
    62 //
       
    63 void VideoPlaybackFullScreenControl::setVisible( bool visible )
       
    64 {
       
    65     mVisible = visible;
       
    66 }
       
    67 
       
    68 // -------------------------------------------------------------------------------------------------
       
    69 // VideoPlaybackFullScreenControl::isVisible()
       
    70 // -------------------------------------------------------------------------------------------------
       
    71 //
       
    72 bool VideoPlaybackFullScreenControl::isVisible()
       
    73 {
       
    74     return mVisible;
       
    75 }
       
    76 
       
    77 // -------------------------------------------------------------------------------------------------
       
    78 // VideoPlaybackFullScreenControl::setVisibility()
       
    79 // -------------------------------------------------------------------------------------------------
       
    80 //
       
    81 void VideoPlaybackFullScreenControl::setVisibility( TMPXPlaybackState state )
       
    82 {
       
    83     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::setVisibility(%d)"), state);
       
    84     
       
    85     mVisibilityState = state;
       
    86 }
       
    87 
       
    88 // -------------------------------------------------------------------------------------------------
       
    89 // VideoPlaybackFullScreenControl::controlIndex()
       
    90 // -------------------------------------------------------------------------------------------------
       
    91 //
       
    92 TVideoPlaybackControls VideoPlaybackFullScreenControl::controlIndex()
       
    93 {
       
    94     return mControlIndex;
       
    95 }
       
    96 
       
    97 // -------------------------------------------------------------------------------------------------
       
    98 // VideoPlaybackFullScreenControl::volumeChanged()
       
    99 // -------------------------------------------------------------------------------------------------
       
   100 //
       
   101 bool VideoPlaybackFullScreenControl::volumeChanged( int volume )
       
   102 {
       
   103     mVolume = volume;
       
   104     return true;
       
   105 }
       
   106 
       
   107 // -------------------------------------------------------------------------------------------------
       
   108 // VideoPlaybackFullScreenControl::durationChanged()
       
   109 // -------------------------------------------------------------------------------------------------
       
   110 //
       
   111 bool VideoPlaybackFullScreenControl::durationChanged( int duration )
       
   112 {
       
   113     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::durationChanged() [%d]"), duration );
       
   114     mDuration = duration;    
       
   115     return true;
       
   116 }
       
   117 
       
   118 // -------------------------------------------------------------------------------------------------
       
   119 // VideoPlaybackFullScreenControl::positionChanged()
       
   120 // -------------------------------------------------------------------------------------------------
       
   121 //
       
   122 bool VideoPlaybackFullScreenControl::positionChanged( int position )
       
   123 {   
       
   124     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::positionChanged() [%d]"), position );
       
   125     mPosition = position;    
       
   126     return true;
       
   127 }
       
   128 
       
   129 // -------------------------------------------------------------------------------------------------
       
   130 // VideoPlaybackFullScreenControl::aspectRatioChanged()
       
   131 // -------------------------------------------------------------------------------------------------
       
   132 //
       
   133 bool VideoPlaybackFullScreenControl::aspectRatioChanged( int aspectRatio )
       
   134 {
       
   135     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::aspectRatioChanged() [%d]"), aspectRatio );
       
   136     mAspectRatio = aspectRatio;
       
   137     return true;    
       
   138 }
       
   139 
       
   140 // -------------------------------------------------------------------------------------------------
       
   141 //   VideoPlaybackFullScreenControl::setDownloadSize()
       
   142 // -------------------------------------------------------------------------------------------------
       
   143 //
       
   144 bool VideoPlaybackFullScreenControl::setDownloadSize( int size )
       
   145 {
       
   146     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::setDownloadSize() [%d]"), size );
       
   147     mDownloadSize = size;
       
   148     return true;
       
   149 }
       
   150 
       
   151 // -------------------------------------------------------------------------------------------------
       
   152 //   VideoPlaybackFullScreenControl::updateDownloadPosition()
       
   153 // -------------------------------------------------------------------------------------------------
       
   154 //
       
   155 bool VideoPlaybackFullScreenControl::updateDownloadPosition( int size )
       
   156 {
       
   157     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::updateDownloadPosition() [%d]"), size );
       
   158     mDownloadPosition = size;
       
   159     return true;
       
   160 }
       
   161 
       
   162 // -------------------------------------------------------------------------------------------------
       
   163 // VideoPlaybackFullScreenControl::updateState()
       
   164 // -------------------------------------------------------------------------------------------------
       
   165 //
       
   166 void VideoPlaybackFullScreenControl::updateState( TMPXPlaybackState state )
       
   167 {
       
   168     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::updateState() [%d]"), state );
       
   169     mState = state; 
       
   170 }
       
   171 
       
   172 // -------------------------------------------------------------------------------------------------
       
   173 // VideoPlaybackFullScreenControl::updateControlsWithFileDetails()
       
   174 // -------------------------------------------------------------------------------------------------
       
   175 //
       
   176 void VideoPlaybackFullScreenControl::updateControlsWithFileDetails(
       
   177         VideoPlaybackViewFileDetails* details )
       
   178 {
       
   179     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::updateControlsWithFileDetails()") );
       
   180     Q_UNUSED( details );
       
   181 }
       
   182 
       
   183 // -------------------------------------------------------------------------------------------------
       
   184 // VideoPlaybackFullScreenControl::updateControlProperties()
       
   185 // -------------------------------------------------------------------------------------------------
       
   186 //
       
   187 void VideoPlaybackFullScreenControl::updateControlProperties( TUint properties )
       
   188 {
       
   189     MPX_DEBUG(_L("VideoPlaybackFullScreenControl::updateControlProperties()") );
       
   190     mProperties = properties;
       
   191 }
       
   192 
       
   193 // End of file