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