videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybackfiledetailswidget/stub/src/mpxvideoplaybackcontrolscontroller.cpp
author hgs
Fri, 02 Jul 2010 17:14:33 +0300
changeset 42 17f382c040b1
parent 34 bbb98528c666
permissions -rw-r--r--
201025_02
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
34
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:  Implementation of MPXVideoPlaybackControlsController
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
// Version : %version: 2 %
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
// INCLUDE FILES
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
#include "mpxvideoplaybackdocumentloader.h"
hgs
parents:
diff changeset
    26
#include "mpxvideoplaybackcontrolscontroller.h"
hgs
parents:
diff changeset
    27
hgs
parents:
diff changeset
    28
// ================= MEMBER FUNCTIONS ==============================================================
hgs
parents:
diff changeset
    29
hgs
parents:
diff changeset
    30
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    31
// QMPXVideoPlaybackControlsController::QMPXVideoPlaybackControlsController()
hgs
parents:
diff changeset
    32
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    33
//
hgs
parents:
diff changeset
    34
QMPXVideoPlaybackControlsController::QMPXVideoPlaybackControlsController()
hgs
parents:
diff changeset
    35
    : mViewMode( EFullScreenView )
hgs
parents:
diff changeset
    36
{
hgs
parents:
diff changeset
    37
    MPX_ENTER_EXIT(_L("QMPXVideoPlaybackControlsController::QMPXVideoPlaybackControlsController()"));
hgs
parents:
diff changeset
    38
hgs
parents:
diff changeset
    39
    mLoader = new QMPXVideoPlaybackDocumentLoader();
hgs
parents:
diff changeset
    40
    mFileDetails = new QMPXVideoPlaybackViewFileDetails();
hgs
parents:
diff changeset
    41
}
hgs
parents:
diff changeset
    42
hgs
parents:
diff changeset
    43
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    44
// QMPXVideoPlaybackControlsController::~QMPXVideoPlaybackControlsController
hgs
parents:
diff changeset
    45
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    46
//
hgs
parents:
diff changeset
    47
QMPXVideoPlaybackControlsController::~QMPXVideoPlaybackControlsController()
hgs
parents:
diff changeset
    48
{
hgs
parents:
diff changeset
    49
    MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::~QMPXVideoPlaybackControlsController"));
hgs
parents:
diff changeset
    50
}
hgs
parents:
diff changeset
    51
hgs
parents:
diff changeset
    52
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    53
//   QMPXVideoPlaybackControlsController::handleCommand()
hgs
parents:
diff changeset
    54
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    55
//
hgs
parents:
diff changeset
    56
void QMPXVideoPlaybackControlsController::handleCommand( 
hgs
parents:
diff changeset
    57
        TMPXVideoPlaybackViewCommandIds command, int value )
hgs
parents:
diff changeset
    58
{
hgs
parents:
diff changeset
    59
    MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::handleCommand(%d)"), command);
hgs
parents:
diff changeset
    60
hgs
parents:
diff changeset
    61
    mCommand = command;
hgs
parents:
diff changeset
    62
    mCommandValue = value;
hgs
parents:
diff changeset
    63
}
hgs
parents:
diff changeset
    64
hgs
parents:
diff changeset
    65
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    66
//   QMPXVideoPlaybackControlsController::changeViewMode
hgs
parents:
diff changeset
    67
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    68
//
hgs
parents:
diff changeset
    69
void QMPXVideoPlaybackControlsController::changeViewMode( 
hgs
parents:
diff changeset
    70
        TPlaybackViewMode viewMode, bool transitionEffect )
hgs
parents:
diff changeset
    71
{
hgs
parents:
diff changeset
    72
    MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::changeViewMode()"));
hgs
parents:
diff changeset
    73
hgs
parents:
diff changeset
    74
    Q_UNUSED( transitionEffect );
hgs
parents:
diff changeset
    75
    mViewMode = viewMode;
hgs
parents:
diff changeset
    76
}
hgs
parents:
diff changeset
    77
hgs
parents:
diff changeset
    78
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    79
// QMPXVideoPlaybackControlsController::resetDisappearingTimers()
hgs
parents:
diff changeset
    80
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    81
//
hgs
parents:
diff changeset
    82
void QMPXVideoPlaybackControlsController::resetDisappearingTimers( TMPXTimerAction timerAction )
hgs
parents:
diff changeset
    83
{
hgs
parents:
diff changeset
    84
    MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::resetDisappearingTimers()"));
hgs
parents:
diff changeset
    85
hgs
parents:
diff changeset
    86
    mTimerAction = timerAction;
hgs
parents:
diff changeset
    87
}
hgs
parents:
diff changeset
    88
hgs
parents:
diff changeset
    89
// End of File