equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Implementation of VideoPlaybackFullScreenControl |
14 * Description: Implementation of VideoPlaybackFullScreenControl |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: da1mmcf#9 % |
18 // Version : %version: da1mmcf#10 % |
19 |
19 |
20 |
20 |
21 |
21 |
22 #ifndef VIDEOPLAYBACKFULLSCREENCONTROL_H_ |
22 #ifndef VIDEOPLAYBACKFULLSCREENCONTROL_H_ |
23 #define VIDEOPLAYBACKFULLSCREENCONTROL_H_ |
23 #define VIDEOPLAYBACKFULLSCREENCONTROL_H_ |
34 class VideoPlaybackFullScreenControl : public QObject |
34 class VideoPlaybackFullScreenControl : public QObject |
35 { |
35 { |
36 Q_OBJECT |
36 Q_OBJECT |
37 |
37 |
38 public: |
38 public: |
39 VideoPlaybackFullScreenControl( VideoPlaybackControlsController* controller, |
39 VideoPlaybackFullScreenControl( VideoPlaybackControlsController* controller, |
40 TVideoPlaybackControls index, |
40 TVideoPlaybackControls index, |
41 HbWidget* widget, |
41 HbWidget* widget, |
42 TUint controlproperties ); |
42 TUint controlproperties ); |
43 |
43 |
44 virtual ~VideoPlaybackFullScreenControl(); |
44 virtual ~VideoPlaybackFullScreenControl(); |
45 |
45 |
46 public: |
46 public: |
47 |
47 |
48 /** |
48 /** |
49 * Set visibility of each control |
49 * Set visibility of each control |
50 */ |
50 */ |
51 virtual void setVisibility( TMPXPlaybackState aState ); |
51 virtual void setVisibility( TMPXPlaybackState aState ); |
52 |
52 |
53 /** |
53 /** |
54 * return control index |
54 * return control index |
55 */ |
55 */ |
56 TVideoPlaybackControls controlIndex(); |
56 TVideoPlaybackControls controlIndex(); |
57 |
57 |
77 |
77 |
78 /** |
78 /** |
79 * set changed state |
79 * set changed state |
80 */ |
80 */ |
81 void updateState( TMPXPlaybackState state ); |
81 void updateState( TMPXPlaybackState state ); |
82 |
82 |
83 /* |
83 /* |
84 * UpdateDownloadPosition |
84 * UpdateDownloadPosition |
85 * updates the download ratio on the progress bar |
85 * updates the download ratio on the progress bar |
86 */ |
86 */ |
87 bool updateDownloadPosition( int size ); |
87 bool updateDownloadPosition( int size ); |
95 |
95 |
96 virtual bool isVisible(); |
96 virtual bool isVisible(); |
97 |
97 |
98 virtual void updateControlProperties( TUint properties ); |
98 virtual void updateControlProperties( TUint properties ); |
99 |
99 |
|
100 void resetControl(); |
|
101 |
100 protected: |
102 protected: |
101 VideoPlaybackControlsController* mController; |
103 VideoPlaybackControlsController* mController; |
102 HbWidget *mControl; |
104 HbWidget *mControl; |
103 TVideoPlaybackControls mControlIndex; |
105 TVideoPlaybackControls mControlIndex; |
104 TUint mProperties; |
106 TUint mProperties; |