videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybackdocumentloader/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 
       
    39 // -------------------------------------------------------------------------------------------------
       
    40 // QMPXVideoPlaybackControlsController::~QMPXVideoPlaybackControlsController
       
    41 // -------------------------------------------------------------------------------------------------
       
    42 //
       
    43 QMPXVideoPlaybackControlsController::~QMPXVideoPlaybackControlsController()
       
    44 {
       
    45     MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::~QMPXVideoPlaybackControlsController"));
       
    46 }
       
    47 
       
    48 // -------------------------------------------------------------------------------------------------
       
    49 //   QMPXVideoPlaybackControlsController::handleCommand()
       
    50 // -------------------------------------------------------------------------------------------------
       
    51 //
       
    52 void QMPXVideoPlaybackControlsController::handleCommand( 
       
    53         TMPXVideoPlaybackViewCommandIds command, int value )
       
    54 {
       
    55     MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::handleCommand(%d)"), command);
       
    56 
       
    57     mCommand = command;
       
    58     mCommandValue = value;
       
    59 }
       
    60 
       
    61 // -------------------------------------------------------------------------------------------------
       
    62 //   QMPXVideoPlaybackControlsController::changeViewMode
       
    63 // -------------------------------------------------------------------------------------------------
       
    64 //
       
    65 void QMPXVideoPlaybackControlsController::changeViewMode( 
       
    66         TPlaybackViewMode viewMode, bool transitionEffect )
       
    67 {
       
    68     MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::changeViewMode()"));
       
    69 
       
    70     Q_UNUSED( transitionEffect );
       
    71     mViewMode = viewMode;
       
    72 }
       
    73 
       
    74 // -------------------------------------------------------------------------------------------------
       
    75 // QMPXVideoPlaybackControlsController::resetDisappearingTimers()
       
    76 // -------------------------------------------------------------------------------------------------
       
    77 //
       
    78 void QMPXVideoPlaybackControlsController::resetDisappearingTimers( TMPXTimerAction timerAction )
       
    79 {
       
    80     MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::resetDisappearingTimers()"));
       
    81 
       
    82     mTimerAction = timerAction;
       
    83 }
       
    84 
       
    85 // End of File