60 void SetWindowL(MMMADisplayWindow* aWindow); |
60 void SetWindowL(MMMADisplayWindow* aWindow); |
61 MMMADisplayWindow* Window(); |
61 MMMADisplayWindow* Window(); |
62 TBool IsVisible(); |
62 TBool IsVisible(); |
63 TBool IsFullScreen(); |
63 TBool IsFullScreen(); |
64 virtual void SetForeground(TBool aIsForeground, TBool aUseEventServer); |
64 virtual void SetForeground(TBool aIsForeground, TBool aUseEventServer); |
65 void SourceSizeChanged(const TSize& aSourceSize); |
65 void SourceSizeChanged(const TSize& aSourceSize); |
66 void SetUIPlayer(MMMAGuiPlayer* player); |
66 void SetUIPlayer(MMMAGuiPlayer* player); |
67 TSize SourceSize(); |
67 TSize SourceSize(); |
68 |
68 virtual void SourceSizeChanged(TInt aJavaControlWidth, TInt aJavaControlHeight,TInt x,TInt y, TRect aBoundsRect) = 0; |
|
69 |
69 /** |
70 /** |
70 * Gets notification that there is container to draw assigned |
71 * Gets notification that there is container to draw assigned |
71 * |
72 * |
72 * @return ETrue if container have been set |
73 * @return ETrue if container have been set |
73 * EFalse if container is not set |
74 * EFalse if container is not set |
154 void SetContentBoundToJavaControl(const TRect& aRect); |
155 void SetContentBoundToJavaControl(const TRect& aRect); |
155 /** |
156 /** |
156 * Remove currently set clip region and refresh canvas |
157 * Remove currently set clip region and refresh canvas |
157 */ |
158 */ |
158 void RemoveClippingRegion(); |
159 void RemoveClippingRegion(); |
159 |
160 |
160 /** |
161 /** |
161 * MMAPI_UI 3.x req |
162 * MMAPI_UI 3.x req |
162 * removes content bound from eSWT control |
163 * removes content bound from eSWT control |
163 */ |
164 */ |
164 void RemoveContentBoundFromJavaControl(const TRect& aRect); |
165 void RemoveContentBoundFromJavaControl(const TRect& aRect); |
168 void AddClippingRegion(); |
169 void AddClippingRegion(); |
169 /** |
170 /** |
170 * MMAPI_UI 3.x req |
171 * MMAPI_UI 3.x req |
171 * Redraw the java side eSWT control |
172 * Redraw the java side eSWT control |
172 */ |
173 */ |
173 void RefreshJavaControl(const TRect& aRect); |
174 void RefreshJavaControl(); |
174 |
175 |
175 /** |
176 /** |
176 * MMAPI_UI 3.x req |
177 * MMAPI_UI 3.x req |
177 * Reset the rectangle dimension in eSWT control |
178 * Reset the rectangle dimension in eSWT control |
178 */ |
179 */ |
179 void ResetJavaRectObject(const TRect& aRect); |
180 void ResetJavaRectObject(const TRect& aRect); |
180 |
181 |
181 /** |
182 /** |
182 * Handling the change in container visibility |
183 * Handling the change in container visibility |
183 */ |
184 */ |
184 void HandleContainerVisibilityChanged( TBool aVisible ); |
185 void HandleContainerVisibilityChanged( TBool aVisible ); |
185 |
186 |
190 void SetContainerVisibility(TBool aValue); |
191 void SetContainerVisibility(TBool aValue); |
191 /** |
192 /** |
192 * called from java to set the window resources |
193 * called from java to set the window resources |
193 */ |
194 */ |
194 void SetWindowResources(QWidget* qtWidget); |
195 void SetWindowResources(QWidget* qtWidget); |
195 |
196 |
196 /** |
197 /** |
197 * Trigger a function call CalledBackInUiThread() from java in UI thread |
198 * Trigger a function call CalledBackInUiThread() from java in UI thread |
198 * arg 'placeholder' is used to identify the function, to be called back from UI Thread |
199 * arg 'placeholder' is used to identify the function, to be called back from UI Thread |
199 */ |
200 */ |
200 void GetCallbackInUiThread(TInt placeholder); |
201 void GetCallbackInUiThread(TInt placeholder); |
201 |
202 |
202 /** |
203 /** |
203 * Called from java in UI thread context |
204 * Called from java in UI thread context |
204 * arg 'placeholder' is used to identify the function, to be called back from UI Thread |
205 * arg 'placeholder' is used to identify the function, to be called back from UI Thread |
205 */ |
206 */ |
206 void CalledBackInUiThread(TInt placeholder); |
207 void CalledBackInUiThread(TInt placeholder); |
207 |
208 |
208 void SourceSizeChanged(TInt aJavaControlWidth, TInt aJavaControlHeight); |
209 |
209 void SetSourceSizeToDisplay(const TSize& aSourceSize); |
210 void SetSourceSizeToDisplay(const TSize& aSourceSize); |
210 void SetDisplayPosition(TInt uiControlLocationX,TInt uiControlLocationY,TInt videoControlLocationX,TInt videoControlLocationY); |
211 void SetDisplayPosition(TInt uiControlLocationX,TInt uiControlLocationY,TInt videoControlLocationX,TInt videoControlLocationY); |
211 |
212 |
212 protected: // Data |
213 protected: // Data |
213 |
214 |
261 * Indicates that iUserRect has been changed |
262 * Indicates that iUserRect has been changed |
262 * during container invisibility |
263 * during container invisibility |
263 */ |
264 */ |
264 TBool iResetDrawRect; |
265 TBool iResetDrawRect; |
265 // not owned |
266 // not owned |
266 MMAFunctionServer* iEventSource; |
267 MMAFunctionServer* iEventSource; |
267 JNIEnv* iJni; |
268 JNIEnv* iJni; |
268 jobject iJavaDisplayObject; |
269 jobject iJavaDisplayObject; |
269 jclass iJavaDisplayClass; |
270 jclass iJavaDisplayClass; |
270 TSize fullScreenSize; |
271 TSize iFullScreenSize; |
271 MMMAGuiPlayer* iUiPlayer; |
272 MMMAGuiPlayer* iUiPlayer; |
272 }; |
273 }; |
273 |
274 |
274 #endif // CMMADISPLAY_H |
275 #endif // CMMADISPLAY_H |