36 // FORWARD DECLARATIONS |
36 // FORWARD DECLARATIONS |
37 class QTimer; |
37 class QTimer; |
38 class QString; |
38 class QString; |
39 class HbAction; |
39 class HbAction; |
40 class ThumbnailManager; |
40 class ThumbnailManager; |
41 class QActionGroup; |
41 class HbVolumeSliderPopup ; |
42 class CMPXVideoViewWrapper; |
42 class CMPXVideoViewWrapper; |
43 class HbVideoBasePlaybackView; |
43 class HbVideoBasePlaybackView; |
44 class QMPXVideoPlaybackControlPolicy; |
44 class QMPXVideoPlaybackControlPolicy; |
45 class QMPXVideoPlaybackDocumentLoader; |
45 class QMPXVideoPlaybackDocumentLoader; |
46 class QMPXVideoPlaybackFullScreenControl; |
46 class QMPXVideoPlaybackFullScreenControl; |
47 class QMPXVideoPlaybackNonTouchVolumeBar; |
|
48 class QMPXVideoPlaybackControlsController; |
47 class QMPXVideoPlaybackControlsController; |
49 class QMPXVideoPlaybackControlConfiguration; |
48 class QMPXVideoPlaybackControlConfiguration; |
|
49 class VideoServices; |
50 |
50 |
51 |
51 |
52 // DATA TYPES |
52 // DATA TYPES |
53 |
53 |
54 enum TMPXTimerAction |
54 enum TMPXTimerAction |
149 |
149 |
150 TPlaybackViewMode viewMode(); |
150 TPlaybackViewMode viewMode(); |
151 |
151 |
152 void changeViewMode( TPlaybackViewMode viewMode, bool transitionEffect = true ); |
152 void changeViewMode( TPlaybackViewMode viewMode, bool transitionEffect = true ); |
153 |
153 |
|
154 bool isAttachOperation(); |
|
155 |
154 private: |
156 private: |
155 /** |
157 /** |
156 * Initialize controller |
158 * Initialize controller |
157 */ |
159 */ |
158 void initializeController(); |
160 void initializeController(); |
242 */ |
244 */ |
243 void handleTvOutEvent( bool connected, |
245 void handleTvOutEvent( bool connected, |
244 TMPXVideoPlaybackControlCommandIds event, |
246 TMPXVideoPlaybackControlCommandIds event, |
245 int value ); |
247 int value ); |
246 |
248 |
247 HbAction* createAction( QActionGroup *actionsGroup, |
|
248 int index, |
|
249 const char *slot, |
|
250 const QString& toolTip ); |
|
251 |
|
252 void updateVideoRect( bool transitionEffect = true ); |
249 void updateVideoRect( bool transitionEffect = true ); |
253 |
250 |
254 void showVolumeControls(); |
251 void showVolumeControls(); |
255 |
252 |
256 void setDefaultBitmap(); |
253 void setDefaultBitmap(); |
257 |
254 |
258 void generateThumbNail(); |
255 void generateThumbNail(); |
|
256 |
|
257 signals: |
|
258 |
|
259 /** |
|
260 * Signals the file path of the current video to VideoServices |
|
261 * |
|
262 * @param filePath of the video |
|
263 */ |
|
264 void attachVideoPath( const QString& ); |
259 |
265 |
260 private slots: |
266 private slots: |
261 void hideAllControls(); |
267 void hideAllControls(); |
262 void skipToNextVideoItem(); |
268 void skipToNextVideoItem(); |
263 void skipToPreviousVideoItem(); |
269 void skipToPreviousVideoItem(); |
264 void handleTappedOnScreen(); |
270 void handleTappedOnScreen(); |
265 void handleThumbnailReady( QPixmap tnData, void *internal , int id, int error ); |
271 void handleThumbnailReady( QPixmap tnData, void *internal , int id, int error ); |
266 void controlsListUpdated(); |
272 void controlsListUpdated(); |
|
273 void attachVideo(); |
267 |
274 |
268 private: |
275 private: |
269 HbVideoBasePlaybackView *mView; |
276 HbVideoBasePlaybackView *mView; |
270 CMPXVideoViewWrapper *mViewWrapper; |
277 CMPXVideoViewWrapper *mViewWrapper; |
271 QMPXVideoPlaybackViewFileDetails *mFileDetails; |
278 QMPXVideoPlaybackViewFileDetails *mFileDetails; |
276 QMPXVideoPlaybackControlConfiguration *mControlsConfig; |
283 QMPXVideoPlaybackControlConfiguration *mControlsConfig; |
277 |
284 |
278 QTimer *mControlsTimer; |
285 QTimer *mControlsTimer; |
279 |
286 |
280 QMPXVideoPlaybackDocumentLoader *mLoader; |
287 QMPXVideoPlaybackDocumentLoader *mLoader; |
281 QMPXVideoPlaybackNonTouchVolumeBar *mVolumeControl; |
288 HbVolumeSliderPopup *mVolumeControl; |
282 |
289 |
283 ThumbnailManager *mThumbnailManager; |
290 ThumbnailManager *mThumbnailManager; |
|
291 VideoServices *mVideoServices; |
284 |
292 |
285 bool mViewTransitionIsGoingOn; |
293 bool mViewTransitionIsGoingOn; |
|
294 bool mIsAttachOperation; |
|
295 |
286 TThumbNailState mThumbNailState; |
296 TThumbNailState mThumbNailState; |
287 |
297 |
288 TMPXPlaybackState mState; |
298 TMPXPlaybackState mState; |
289 TPlaybackViewMode mViewMode; |
299 TPlaybackViewMode mViewMode; |
290 }; |
300 }; |