|
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 VideoPlaybackFullScreenControl |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 4 % |
|
19 |
|
20 |
|
21 |
|
22 #include <w32std.h> |
|
23 #include <hbwidget.h> |
|
24 |
|
25 #include "mpxvideo_debug.h" |
|
26 #include "videoplaybackfullscreencontrol.h" |
|
27 #include "videoplaybackcontrolscontroller.h" |
|
28 |
|
29 |
|
30 // ------------------------------------------------------------------------------------------------- |
|
31 // VideoPlaybackFullScreenControl::VideoPlaybackFullScreenControl() |
|
32 // ------------------------------------------------------------------------------------------------- |
|
33 // |
|
34 VideoPlaybackFullScreenControl::VideoPlaybackFullScreenControl( |
|
35 VideoPlaybackControlsController* controller, |
|
36 TVideoPlaybackControls index, |
|
37 HbWidget* widget, |
|
38 TUint controlproperties ) |
|
39 : mController( controller ) |
|
40 , mControl( widget ) |
|
41 , mControlIndex( index ) |
|
42 , mProperties( controlproperties ) |
|
43 { |
|
44 MPX_ENTER_EXIT(_L("VideoPlaybackFullScreenControl::VideoPlaybackFullScreenControl()")); |
|
45 |
|
46 setParent( mController ); |
|
47 } |
|
48 |
|
49 // ------------------------------------------------------------------------------------------------- |
|
50 // VideoPlaybackFullScreenControl::~VideoPlaybackFullScreenControl() |
|
51 // ------------------------------------------------------------------------------------------------- |
|
52 // |
|
53 VideoPlaybackFullScreenControl::~VideoPlaybackFullScreenControl() |
|
54 { |
|
55 MPX_DEBUG(_L("VideoPlaybackControlsController::~VideoPlaybackFullScreenControl")); |
|
56 } |
|
57 |
|
58 // ------------------------------------------------------------------------------------------------- |
|
59 // VideoPlaybackFullScreenControl::setVisible() |
|
60 // ------------------------------------------------------------------------------------------------- |
|
61 // |
|
62 void VideoPlaybackFullScreenControl::setVisible( bool visible ) |
|
63 { |
|
64 mControl->setVisible( visible ); |
|
65 } |
|
66 |
|
67 // ------------------------------------------------------------------------------------------------- |
|
68 // VideoPlaybackFullScreenControl::isVisible() |
|
69 // ------------------------------------------------------------------------------------------------- |
|
70 // |
|
71 bool VideoPlaybackFullScreenControl::isVisible() |
|
72 { |
|
73 return mVisible; |
|
74 } |
|
75 |
|
76 // ------------------------------------------------------------------------------------------------- |
|
77 // VideoPlaybackFullScreenControl::setVisibility() |
|
78 // ------------------------------------------------------------------------------------------------- |
|
79 // |
|
80 void VideoPlaybackFullScreenControl::setVisibility( TMPXPlaybackState /*state*/ ) |
|
81 { |
|
82 MPX_DEBUG(_L("VideoPlaybackFullScreenControl::setVisibility()")); |
|
83 |
|
84 mVisible = true; |
|
85 } |
|
86 |
|
87 // ------------------------------------------------------------------------------------------------- |
|
88 // VideoPlaybackFullScreenControl::controlIndex() |
|
89 // ------------------------------------------------------------------------------------------------- |
|
90 // |
|
91 TVideoPlaybackControls VideoPlaybackFullScreenControl::controlIndex() |
|
92 { |
|
93 return mControlIndex; |
|
94 } |
|
95 |
|
96 // ------------------------------------------------------------------------------------------------- |
|
97 // VideoPlaybackFullScreenControl::updateState() |
|
98 // ------------------------------------------------------------------------------------------------- |
|
99 // |
|
100 void VideoPlaybackFullScreenControl::updateState( TMPXPlaybackState state ) |
|
101 { |
|
102 Q_UNUSED( state ); |
|
103 } |
|
104 |
|
105 // ------------------------------------------------------------------------------------------------- |
|
106 // VideoPlaybackFullScreenControl::updateControlsWithFileDetails() |
|
107 // ------------------------------------------------------------------------------------------------- |
|
108 // |
|
109 void VideoPlaybackFullScreenControl::updateControlsWithFileDetails( |
|
110 VideoPlaybackViewFileDetails* details ) |
|
111 { |
|
112 Q_UNUSED( details ); |
|
113 } |
|
114 |
|
115 // ------------------------------------------------------------------------------------------------- |
|
116 // VideoPlaybackFullScreenControl::updateControlProperties() |
|
117 // ------------------------------------------------------------------------------------------------- |
|
118 // |
|
119 void VideoPlaybackFullScreenControl::updateControlProperties( TUint properties ) |
|
120 { |
|
121 mProperties = properties; |
|
122 } |
|
123 |
|
124 // End of file |