videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybackcontrolbar/stub/src/mpxvideoplaybackcontrolscontroller.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 MPXVideoPlaybackControlsController
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  2 %
       
    19 
       
    20 
       
    21 
       
    22 // INCLUDE FILES
       
    23 
       
    24 
       
    25 #include "mpxvideoplaybackcontrolscontroller.h"
       
    26 
       
    27 // ================= MEMBER FUNCTIONS ==============================================================
       
    28 
       
    29 // -------------------------------------------------------------------------------------------------
       
    30 // QMPXVideoPlaybackControlsController::QMPXVideoPlaybackControlsController()
       
    31 // -------------------------------------------------------------------------------------------------
       
    32 //
       
    33 QMPXVideoPlaybackControlsController::QMPXVideoPlaybackControlsController()
       
    34     : mViewMode( EFullScreenView )
       
    35 {
       
    36     MPX_ENTER_EXIT(_L("QMPXVideoPlaybackControlsController::QMPXVideoPlaybackControlsController()"));
       
    37 
       
    38     mFileDetails = new QMPXVideoPlaybackViewFileDetails();
       
    39 }
       
    40 
       
    41 // -------------------------------------------------------------------------------------------------
       
    42 // QMPXVideoPlaybackControlsController::~QMPXVideoPlaybackControlsController
       
    43 // -------------------------------------------------------------------------------------------------
       
    44 //
       
    45 QMPXVideoPlaybackControlsController::~QMPXVideoPlaybackControlsController()
       
    46 {
       
    47     MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::~QMPXVideoPlaybackControlsController"));
       
    48 }
       
    49 
       
    50 // -------------------------------------------------------------------------------------------------
       
    51 //   QMPXVideoPlaybackControlsController::handleCommand()
       
    52 // -------------------------------------------------------------------------------------------------
       
    53 //
       
    54 void QMPXVideoPlaybackControlsController::handleCommand( 
       
    55         TMPXVideoPlaybackViewCommandIds command, int value )
       
    56 {
       
    57     MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::handleCommand(%d)"), command);
       
    58 
       
    59     mCommand = command;
       
    60     mCommandValue = value;
       
    61 }
       
    62 
       
    63 // -------------------------------------------------------------------------------------------------
       
    64 //   QMPXVideoPlaybackControlsController::changeViewMode
       
    65 // -------------------------------------------------------------------------------------------------
       
    66 //
       
    67 void QMPXVideoPlaybackControlsController::changeViewMode( 
       
    68         TPlaybackViewMode viewMode, bool transitionEffect )
       
    69 {
       
    70     MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::changeViewMode()"));
       
    71 
       
    72     Q_UNUSED( transitionEffect );
       
    73     mViewMode = viewMode;
       
    74 }
       
    75 
       
    76 // -------------------------------------------------------------------------------------------------
       
    77 // QMPXVideoPlaybackControlsController::resetDisappearingTimers()
       
    78 // -------------------------------------------------------------------------------------------------
       
    79 //
       
    80 void QMPXVideoPlaybackControlsController::resetDisappearingTimers( TMPXTimerAction timerAction )
       
    81 {
       
    82     MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::resetDisappearingTimers()"));
       
    83 
       
    84     mTimerAction = timerAction;
       
    85 }
       
    86 
       
    87 // End of File