44
|
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 |
|
63
|
18 |
// Version : %version: 4 %
|
44
|
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 |
|
63
|
89 |
|
|
90 |
// -------------------------------------------------------------------------------------------------
|
|
91 |
// VideoPlaybackControlsController::isService()
|
|
92 |
// -------------------------------------------------------------------------------------------------
|
|
93 |
//
|
|
94 |
bool VideoPlaybackControlsController::isService()
|
|
95 |
{
|
|
96 |
MPX_DEBUG(_L("VideoPlaybackControlsController::isService()"));
|
|
97 |
|
|
98 |
return false;
|
|
99 |
}
|
44
|
100 |
// End of File
|