videoplayback/videoplaybackview/tsrc/testcontrolscontroller/stub/inc/videoplaybackfullscreencontrol.h
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: 3 % |
18 // Version : %version: 4 % |
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 |
82 |
82 |
83 /** |
83 /** |
84 * set changed state |
84 * set changed state |
85 */ |
85 */ |
86 void updateState( TMPXPlaybackState state ); |
86 void updateState( TMPXPlaybackState state ); |
87 |
87 |
88 /* |
88 /* |
89 * UpdateDownloadPosition |
89 * UpdateDownloadPosition |
90 * updates the download ratio on the progress bar |
90 * updates the download ratio on the progress bar |
91 */ |
91 */ |
92 bool updateDownloadPosition( int size ); |
92 bool updateDownloadPosition( int size ); |
100 |
100 |
101 virtual bool isVisible(); |
101 virtual bool isVisible(); |
102 |
102 |
103 virtual void updateControlProperties( TUint properties ); |
103 virtual void updateControlProperties( TUint properties ); |
104 |
104 |
|
105 void resetControl(); |
|
106 |
105 public: |
107 public: |
106 int mPosition; |
108 int mPosition; |
107 int mDuration; |
109 int mDuration; |
108 int mAspectRatio; |
110 int mAspectRatio; |
109 int mDownloadSize; |
111 int mDownloadSize; |
110 int mDownloadPosition; |
112 int mDownloadPosition; |
111 int mVolume; |
113 int mVolume; |
112 |
114 |
113 bool mVisible; |
115 bool mVisible; |
114 TMPXPlaybackState mState; |
116 TMPXPlaybackState mState; |
115 TMPXPlaybackState mVisibilityState; |
117 TMPXPlaybackState mVisibilityState; |
116 |
118 |
117 VideoPlaybackControlsController* mController; |
119 VideoPlaybackControlsController* mController; |
118 HbWidget *mControl; |
120 HbWidget *mControl; |
119 TVideoPlaybackControls mControlIndex; |
121 TVideoPlaybackControls mControlIndex; |
120 TUint mProperties; |
122 TUint mProperties; |
|
123 bool mControlReset; |
121 }; |
124 }; |
122 |
125 |
123 #endif /*VIDEOPLAYBACKFULLSCREENCONTROL_H_*/ |
126 #endif /*VIDEOPLAYBACKFULLSCREENCONTROL_H_*/ |
124 |
127 |