13 * |
13 * |
14 * Description: Implementation of QMPXVideoPlaybackFullScreenControl |
14 * Description: Implementation of QMPXVideoPlaybackFullScreenControl |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 1 % |
18 // Version : %version: 2 % |
19 |
19 |
20 |
20 |
21 |
21 |
22 #include <w32std.h> |
22 #include <w32std.h> |
|
23 #include <hbwidget.h> |
23 |
24 |
24 #include "mpxvideo_debug.h" |
25 #include "mpxvideo_debug.h" |
25 #include "mpxvideoplaybackbuttonbar.h" |
|
26 #include "mpxvideoplaybackprogressbar.h" |
|
27 #include "mpxvideoplaybackfullscreencontrol.h" |
26 #include "mpxvideoplaybackfullscreencontrol.h" |
28 #include "mpxvideoplaybackfiledetailswidget.h" |
|
29 #include "mpxvideoplaybackcontrolscontroller.h" |
27 #include "mpxvideoplaybackcontrolscontroller.h" |
30 #include "mpxvideoplaybackdetailsplaybackwindow.h" |
|
31 |
28 |
32 |
29 |
33 // ------------------------------------------------------------------------------------------------- |
30 // ------------------------------------------------------------------------------------------------- |
34 // QMPXVideoPlaybackFullScreenControl::QMPXVideoPlaybackFullScreenControl() |
31 // QMPXVideoPlaybackFullScreenControl::QMPXVideoPlaybackFullScreenControl() |
35 // ------------------------------------------------------------------------------------------------- |
32 // ------------------------------------------------------------------------------------------------- |
95 { |
92 { |
96 return mControlIndex; |
93 return mControlIndex; |
97 } |
94 } |
98 |
95 |
99 // ------------------------------------------------------------------------------------------------- |
96 // ------------------------------------------------------------------------------------------------- |
100 // QMPXVideoPlaybackFullScreenControl::volumeChanged() |
|
101 // ------------------------------------------------------------------------------------------------- |
|
102 // |
|
103 bool QMPXVideoPlaybackFullScreenControl::volumeChanged( int /*volume*/ ) |
|
104 { |
|
105 return true; |
|
106 } |
|
107 |
|
108 // ------------------------------------------------------------------------------------------------- |
|
109 // QMPXVideoPlaybackFullScreenControl::durationChanged() |
|
110 // ------------------------------------------------------------------------------------------------- |
|
111 // |
|
112 bool QMPXVideoPlaybackFullScreenControl::durationChanged( int duration ) |
|
113 { |
|
114 bool changed = EFalse; |
|
115 |
|
116 if ( mControlIndex == EMPXProgressBar ) |
|
117 { |
|
118 MPX_DEBUG(_L("QMPXVideoPlaybackFullScreenControl::DurationChanged() [%d]"), duration); |
|
119 |
|
120 static_cast<QMPXVideoPlaybackProgressBar*>(mControl)->durationChanged( duration ); |
|
121 |
|
122 changed = ETrue; |
|
123 } |
|
124 |
|
125 return changed; |
|
126 } |
|
127 |
|
128 // ------------------------------------------------------------------------------------------------- |
|
129 // QMPXVideoPlaybackFullScreenControl::positionChanged() |
|
130 // ------------------------------------------------------------------------------------------------- |
|
131 // |
|
132 bool QMPXVideoPlaybackFullScreenControl::positionChanged( int position ) |
|
133 { |
|
134 bool changed = EFalse; |
|
135 |
|
136 if ( mControlIndex == EMPXProgressBar ) |
|
137 { |
|
138 MPX_DEBUG(_L("QMPXVideoPlaybackFullScreenControl::positionChanged() [%d]"), position); |
|
139 |
|
140 static_cast<QMPXVideoPlaybackProgressBar*>(mControl)->positionChanged( position ); |
|
141 |
|
142 changed = ETrue; |
|
143 } |
|
144 |
|
145 return changed; |
|
146 } |
|
147 |
|
148 // ------------------------------------------------------------------------------------------------- |
|
149 // QMPXVideoPlaybackFullScreenControl::aspectRatioChanged() |
|
150 // ------------------------------------------------------------------------------------------------- |
|
151 // |
|
152 bool QMPXVideoPlaybackFullScreenControl::aspectRatioChanged( int aspectRatio ) |
|
153 { |
|
154 bool changed = EFalse; |
|
155 |
|
156 if ( mControlIndex == EMPXButtonBar ) |
|
157 { |
|
158 MPX_DEBUG( |
|
159 _L("QMPXVideoPlaybackFullScreenControl::aspectRatioChanged() [%d]"), aspectRatio); |
|
160 |
|
161 static_cast<QMPXVideoPlaybackButtonBar*>(mControl)->aspectRatioChanged( aspectRatio ); |
|
162 |
|
163 changed = ETrue; |
|
164 } |
|
165 |
|
166 return changed; |
|
167 } |
|
168 |
|
169 // ------------------------------------------------------------------------------------------------- |
|
170 // QMPXVideoPlaybackFullScreenControl::updateState() |
97 // QMPXVideoPlaybackFullScreenControl::updateState() |
171 // ------------------------------------------------------------------------------------------------- |
98 // ------------------------------------------------------------------------------------------------- |
172 // |
99 // |
173 void QMPXVideoPlaybackFullScreenControl::updateState( TMPXPlaybackState state ) |
100 void QMPXVideoPlaybackFullScreenControl::updateState( TMPXPlaybackState state ) |
174 { |
101 { |