videoplayback/videoplaybackview/tsrc/testfiledetailswidget/stub/src/videoplaybackcontrolscontroller.cpp
author hgs
Mon, 20 Sep 2010 18:25:37 +0300
changeset 63 4707a0db12f6
parent 44 518105d52e45
permissions -rw-r--r--
201037
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44
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 VideoPlaybackControlsController
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
63
hgs
parents: 44
diff changeset
    18
// Version : %version: 4 %
44
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 "videoplaybackdocumentloader.h"
hgs
parents:
diff changeset
    26
#include "videoplaybackcontrolscontroller.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
// VideoPlaybackControlsController::VideoPlaybackControlsController()
hgs
parents:
diff changeset
    32
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    33
//
hgs
parents:
diff changeset
    34
VideoPlaybackControlsController::VideoPlaybackControlsController()
hgs
parents:
diff changeset
    35
    : mViewMode( EFullScreenView )
hgs
parents:
diff changeset
    36
{
hgs
parents:
diff changeset
    37
    MPX_ENTER_EXIT(_L("VideoPlaybackControlsController::VideoPlaybackControlsController()"));
hgs
parents:
diff changeset
    38
hgs
parents:
diff changeset
    39
    mLoader = new VideoPlaybackDocumentLoader();
hgs
parents:
diff changeset
    40
    mFileDetails = new VideoPlaybackViewFileDetails();
hgs
parents:
diff changeset
    41
}
hgs
parents:
diff changeset
    42
hgs
parents:
diff changeset
    43
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    44
// VideoPlaybackControlsController::~VideoPlaybackControlsController
hgs
parents:
diff changeset
    45
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    46
//
hgs
parents:
diff changeset
    47
VideoPlaybackControlsController::~VideoPlaybackControlsController()
hgs
parents:
diff changeset
    48
{
hgs
parents:
diff changeset
    49
    MPX_DEBUG(_L("VideoPlaybackControlsController::~VideoPlaybackControlsController"));
hgs
parents:
diff changeset
    50
}
hgs
parents:
diff changeset
    51
hgs
parents:
diff changeset
    52
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    53
//   VideoPlaybackControlsController::handleCommand()
hgs
parents:
diff changeset
    54
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    55
//
hgs
parents:
diff changeset
    56
void VideoPlaybackControlsController::handleCommand( 
hgs
parents:
diff changeset
    57
        TMPXVideoPlaybackViewCommandIds command, int value )
hgs
parents:
diff changeset
    58
{
hgs
parents:
diff changeset
    59
    MPX_DEBUG(_L("VideoPlaybackControlsController::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
//   VideoPlaybackControlsController::changeViewMode
hgs
parents:
diff changeset
    67
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    68
//
hgs
parents:
diff changeset
    69
void VideoPlaybackControlsController::changeViewMode( 
hgs
parents:
diff changeset
    70
        TPlaybackViewMode viewMode, bool transitionEffect )
hgs
parents:
diff changeset
    71
{
hgs
parents:
diff changeset
    72
    MPX_DEBUG(_L("VideoPlaybackControlsController::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
// VideoPlaybackControlsController::resetDisappearingTimers()
hgs
parents:
diff changeset
    80
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    81
//
hgs
parents:
diff changeset
    82
void VideoPlaybackControlsController::resetDisappearingTimers( TTimerAction timerAction )
hgs
parents:
diff changeset
    83
{
hgs
parents:
diff changeset
    84
    MPX_DEBUG(_L("VideoPlaybackControlsController::resetDisappearingTimers()"));
hgs
parents:
diff changeset
    85
hgs
parents:
diff changeset
    86
    mTimerAction = timerAction;
hgs
parents:
diff changeset
    87
}
hgs
parents:
diff changeset
    88
63
hgs
parents: 44
diff changeset
    89
hgs
parents: 44
diff changeset
    90
// -------------------------------------------------------------------------------------------------
hgs
parents: 44
diff changeset
    91
// VideoPlaybackControlsController::isService()
hgs
parents: 44
diff changeset
    92
// -------------------------------------------------------------------------------------------------
hgs
parents: 44
diff changeset
    93
//
hgs
parents: 44
diff changeset
    94
bool VideoPlaybackControlsController::isService()
hgs
parents: 44
diff changeset
    95
{
hgs
parents: 44
diff changeset
    96
    MPX_DEBUG(_L("VideoPlaybackControlsController::isService()"));
hgs
parents: 44
diff changeset
    97
hgs
parents: 44
diff changeset
    98
    return false;
hgs
parents: 44
diff changeset
    99
}
44
hgs
parents:
diff changeset
   100
// End of File