equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Implementation of MPXVideoPlaybackControlsController |
14 * Description: Implementation of MPXVideoPlaybackControlsController |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: da1mmcf#15 % |
18 // Version : %version: da1mmcf#17 % |
19 |
19 |
20 |
20 |
21 |
21 |
22 #ifndef MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_ |
22 #ifndef MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_ |
23 #define MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_ |
23 #define MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_ |
114 /* |
114 /* |
115 * Return ETrue if TV-out cable gets connected |
115 * Return ETrue if TV-out cable gets connected |
116 */ |
116 */ |
117 inline bool isTvOutConnected(); |
117 inline bool isTvOutConnected(); |
118 |
118 |
119 /* |
|
120 * Return ETrue if TV-out cable is connected and content can be played |
|
121 */ |
|
122 inline bool isTvOutPlaybackAllowed(); |
|
123 |
|
124 /** |
119 /** |
125 * Reset or cancel timers for the controls |
120 * Reset or cancel timers for the controls |
126 */ |
121 */ |
127 void resetDisappearingTimers( TMPXTimerAction timerAction ); |
122 void resetDisappearingTimers( TMPXTimerAction timerAction ); |
128 |
123 |
241 |
236 |
242 /** |
237 /** |
243 * Handle tvout connected/disconnected event |
238 * Handle tvout connected/disconnected event |
244 */ |
239 */ |
245 void handleTvOutEvent( bool connected, |
240 void handleTvOutEvent( bool connected, |
246 TMPXVideoPlaybackControlCommandIds event, |
241 TMPXVideoPlaybackControlCommandIds event ); |
247 int value ); |
|
248 |
242 |
249 void updateVideoRect( bool transitionEffect = true ); |
243 void updateVideoRect( bool transitionEffect = true ); |
250 |
244 |
251 void showVolumeControls(); |
245 void showVolumeControls(); |
252 |
246 |
269 void skipToPreviousVideoItem(); |
263 void skipToPreviousVideoItem(); |
270 void handleTappedOnScreen(); |
264 void handleTappedOnScreen(); |
271 void handleThumbnailReady( QPixmap tnData, void *internal , int id, int error ); |
265 void handleThumbnailReady( QPixmap tnData, void *internal , int id, int error ); |
272 void controlsListUpdated(); |
266 void controlsListUpdated(); |
273 void attachVideo(); |
267 void attachVideo(); |
|
268 void sendVideo(); |
274 |
269 |
275 private: |
270 private: |
276 HbVideoBasePlaybackView *mView; |
271 HbVideoBasePlaybackView *mView; |
277 CMPXVideoViewWrapper *mViewWrapper; |
272 CMPXVideoViewWrapper *mViewWrapper; |
278 QMPXVideoPlaybackViewFileDetails *mFileDetails; |
273 QMPXVideoPlaybackViewFileDetails *mFileDetails; |
332 |
327 |
333 return mFileDetails->mTvOutConnected; |
328 return mFileDetails->mTvOutConnected; |
334 } |
329 } |
335 |
330 |
336 // ------------------------------------------------------------------------------------------------- |
331 // ------------------------------------------------------------------------------------------------- |
337 // QMPXVideoPlaybackControlsController::isTvOutPlaybackAllowed |
|
338 // ------------------------------------------------------------------------------------------------- |
|
339 // |
|
340 inline |
|
341 bool QMPXVideoPlaybackControlsController::isTvOutPlaybackAllowed() |
|
342 { |
|
343 bool playable = ( ! mFileDetails->mTvOutConnected || mFileDetails->mTvOutPlayAllowed ); |
|
344 |
|
345 MPX_DEBUG(_L("QMPXVideoPlaybackControlsController::isTvOutPlaybackAllowed() [%d]"), |
|
346 playable); |
|
347 |
|
348 return playable; |
|
349 } |
|
350 |
|
351 // ------------------------------------------------------------------------------------------------- |
|
352 // QMPXVideoPlaybackControlsController::layoutLoader |
332 // QMPXVideoPlaybackControlsController::layoutLoader |
353 // ------------------------------------------------------------------------------------------------- |
333 // ------------------------------------------------------------------------------------------------- |
354 // |
334 // |
355 inline |
335 inline |
356 QMPXVideoPlaybackDocumentLoader* QMPXVideoPlaybackControlsController::layoutLoader() |
336 QMPXVideoPlaybackDocumentLoader* QMPXVideoPlaybackControlsController::layoutLoader() |