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