equal
deleted
inserted
replaced
14 * Description: Implementation of MPXVideoPlaybackControlsController |
14 * Description: Implementation of MPXVideoPlaybackControlsController |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 // Version : %version: 15 % |
19 // Version : %version: 17 % |
20 |
20 |
21 |
21 |
22 #ifndef MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_ |
22 #ifndef MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_ |
23 #define MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_ |
23 #define MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_ |
24 |
24 |
25 // INCLUDES |
25 // INCLUDES |
26 #include <mpxplaybackframeworkdefs.h> |
26 #include <mpxplaybackframeworkdefs.h> |
27 #include <aknlayoutscalable_avkon.cdl.h> |
27 #include <aknlayoutscalable_avkon.cdl.h> |
28 #include <f32file.h> |
28 #include <f32file.h> |
|
29 #include <MMFScalingCustomCommandConstants.h> |
29 |
30 |
30 #include "mpxvideo_debug.h" |
31 #include "mpxvideo_debug.h" |
31 #include "mpxvideoplaybackviewfiledetails.h" |
32 #include "mpxvideoplaybackviewfiledetails.h" |
32 #include "mpxvideoplaybackcontrol.hrh" |
33 #include "mpxvideoplaybackcontrol.hrh" |
33 |
34 |
115 /** |
116 /** |
116 * Return state |
117 * Return state |
117 */ |
118 */ |
118 inline TMPXPlaybackState State(); |
119 inline TMPXPlaybackState State(); |
119 |
120 |
|
121 /* |
|
122 * Return the Aspect Ratio for the clip |
|
123 */ |
|
124 inline TMMFScalingType AspectRatio(); |
|
125 |
120 /** |
126 /** |
121 * Return file details |
127 * Return file details |
122 */ |
128 */ |
123 inline CMPXVideoPlaybackViewFileDetails* FileDetails(); |
129 inline CMPXVideoPlaybackViewFileDetails* FileDetails(); |
124 |
130 |
127 // |
133 // |
128 void LocateBitmapFileL( TFileName& aFileName ); |
134 void LocateBitmapFileL( TFileName& aFileName ); |
129 |
135 |
130 void SetRealOneBitmapVisibility( TBool aVisible ); |
136 void SetRealOneBitmapVisibility( TBool aVisible ); |
131 |
137 |
132 TBool SetBackgroundBlack(); |
|
133 |
|
134 inline TBool IsRealMediaFormat(); |
138 inline TBool IsRealMediaFormat(); |
135 |
139 |
136 /** |
140 /** |
137 * Check aspect ratio icon |
141 * Check aspect ratio icon |
138 * In case that Clip's AR is equals to Screen Display AR, also hide AR icon. |
142 * In case that Clip's AR is equals to Screen Display AR, also hide AR icon. |
139 * |
143 * |
140 * @return ETrue in case that clip's AspectRatioIcon can be shown |
144 * @return ETrue in case that clip's AspectRatioIcon can be shown |
141 */ |
145 */ |
142 TBool ShowAspectRatioIcon(); |
146 TBool ShowAspectRatioIcon(); |
143 |
147 |
144 private: |
148 private: |
360 |
364 |
361 TRect iRect; |
365 TRect iRect; |
362 TInt iVideoResourceOffset; |
366 TInt iVideoResourceOffset; |
363 |
367 |
364 TMPXPlaybackState iState; |
368 TMPXPlaybackState iState; |
|
369 TMMFScalingType iAspectRatio; |
365 |
370 |
366 CMPXVideoPlaybackViewFileDetails* iFileDetails; // not owned |
371 CMPXVideoPlaybackViewFileDetails* iFileDetails; // not owned |
367 |
372 |
368 RFs iFs; |
373 RFs iFs; |
369 TFileName iBitmapFileName; |
374 TFileName iBitmapFileName; |
370 |
375 |
371 TBool iSurfaceCreated; |
|
372 TBool iTvOutConnected; |
376 TBool iTvOutConnected; |
373 TBool iRNFormat; |
377 TBool iRNFormat; |
374 |
378 |
375 #ifdef RD_TACTILE_FEEDBACK |
379 #ifdef RD_TACTILE_FEEDBACK |
376 MTouchFeedback* iFeedback; |
380 MTouchFeedback* iFeedback; |
408 { |
412 { |
409 MPX_DEBUG(_L("CMPXVideoPlaybackControlsController::IsRealFormat() [%d]"), iRNFormat); |
413 MPX_DEBUG(_L("CMPXVideoPlaybackControlsController::IsRealFormat() [%d]"), iRNFormat); |
410 return iRNFormat; |
414 return iRNFormat; |
411 } |
415 } |
412 |
416 |
|
417 inline |
|
418 TMMFScalingType CMPXVideoPlaybackControlsController::AspectRatio() |
|
419 { |
|
420 MPX_DEBUG(_L("CMPXVideoPlaybackControlsController::AspectRatio(%d)"), iAspectRatio); |
|
421 return iAspectRatio; |
|
422 } |
|
423 |
413 #endif /*MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_*/ |
424 #endif /*MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_*/ |
414 |
425 |
415 // End of File |
426 // End of File |