|
1 /* |
|
2 * Copyright (c) 20010 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: 1 % |
|
19 |
|
20 |
|
21 |
|
22 // INCLUDE FILES |
|
23 |
|
24 |
|
25 #include "videoplaybackviewfiledetails.h" |
|
26 #include "videoplaybackcontrolscontroller.h" |
|
27 #include "videoplaybackcontrolconfiguration.h" |
|
28 |
|
29 |
|
30 // ================= MEMBER FUNCTIONS ============================================================== |
|
31 |
|
32 // ------------------------------------------------------------------------------------------------- |
|
33 // VideoPlaybackControlsController::VideoPlaybackControlsController() |
|
34 // ------------------------------------------------------------------------------------------------- |
|
35 // |
|
36 VideoPlaybackControlsController::VideoPlaybackControlsController() |
|
37 { |
|
38 MPX_DEBUG(_L("VideoPlaybackControlsController::VideoPlaybackControlsController") ); |
|
39 |
|
40 initializeController(); |
|
41 } |
|
42 |
|
43 // ------------------------------------------------------------------------------------------------- |
|
44 // VideoPlaybackControlsController::initializeController() |
|
45 // ------------------------------------------------------------------------------------------------- |
|
46 // |
|
47 void VideoPlaybackControlsController::initializeController() |
|
48 { |
|
49 MPX_DEBUG(_L("VideoPlaybackControlsController::initializeController") ); |
|
50 |
|
51 mFileDetails = new VideoPlaybackViewFileDetails(); |
|
52 } |
|
53 |
|
54 // ------------------------------------------------------------------------------------------------- |
|
55 // VideoPlaybackControlsController::~VideoPlaybackControlsController |
|
56 // ------------------------------------------------------------------------------------------------- |
|
57 // |
|
58 VideoPlaybackControlsController::~VideoPlaybackControlsController() |
|
59 { |
|
60 MPX_DEBUG(_L("VideoPlaybackControlsController::~VideoPlaybackControlsController")); |
|
61 |
|
62 if ( mFileDetails ) |
|
63 { |
|
64 delete mFileDetails; |
|
65 mFileDetails = NULL; |
|
66 } |
|
67 } |
|
68 |
|
69 // ------------------------------------------------------------------------------------------------- |
|
70 // VideoPlaybackControlsController::resetDisappearingTimers() |
|
71 // ------------------------------------------------------------------------------------------------- |
|
72 // |
|
73 void VideoPlaybackControlsController::resetDisappearingTimers( TTimerAction timerAction ) |
|
74 { |
|
75 MPX_DEBUG(_L("VideoPlaybackControlsController::resetDisappearingTimers") ); |
|
76 |
|
77 mTimerAction = timerAction; |
|
78 } |
|
79 |
|
80 // ------------------------------------------------------------------------------------------------- |
|
81 // VideoPlaybackControlsController::handleCommand() |
|
82 // ------------------------------------------------------------------------------------------------- |
|
83 // |
|
84 void VideoPlaybackControlsController::handleCommand( |
|
85 TMPXVideoPlaybackViewCommandIds command, int value ) |
|
86 { |
|
87 MPX_DEBUG(_L("VideoPlaybackControlsController::handleCommand") ); |
|
88 |
|
89 mCommand = command; |
|
90 mValue = value; |
|
91 } |
|
92 |
|
93 // ------------------------------------------------------------------------------------------------- |
|
94 // VideoPlaybackControlsController::viewMode |
|
95 // ------------------------------------------------------------------------------------------------- |
|
96 // |
|
97 TPlaybackViewMode VideoPlaybackControlsController::viewMode() |
|
98 { |
|
99 MPX_DEBUG(_L("VideoPlaybackControlsController::viewMode") ); |
|
100 |
|
101 return mViewMode; |
|
102 } |
|
103 |
|
104 // End of File |