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