28 #include "CVtUiMainControl.h" |
28 #include "CVtUiMainControl.h" |
29 #include "CVtUiContextControl.h" |
29 #include "CVtUiContextControl.h" |
30 #include "CVtUiRemoteVideoControl.h" |
30 #include "CVtUiRemoteVideoControl.h" |
31 #include "cvtuifeaturemanager.h" |
31 #include "cvtuifeaturemanager.h" |
32 #include "VtUiLayout.h" |
32 #include "VtUiLayout.h" |
|
33 #include "CVtUiEndCallButtonPane.h" |
33 |
34 |
34 #include <layoutmetadata.cdl.h> |
35 #include <layoutmetadata.cdl.h> |
35 |
36 |
36 // constants |
37 // constants |
37 static const TInt KMaxNumberOfArrayItems = 5; |
38 static const TInt KMaxNumberOfArrayItems = 5; |
166 iRemoteVideoControlWindowPriority = |
167 iRemoteVideoControlWindowPriority = |
167 iAppUi.RemoteVideoControl().DrawableWindow()->OrdinalPriority(); |
168 iAppUi.RemoteVideoControl().DrawableWindow()->OrdinalPriority(); |
168 iRemoteVideoControlWindowPosition = |
169 iRemoteVideoControlWindowPosition = |
169 iAppUi.RemoteVideoControl().DrawableWindow()->OrdinalPosition(); |
170 iAppUi.RemoteVideoControl().DrawableWindow()->OrdinalPosition(); |
170 |
171 |
|
172 // Get end call button pane priority and position |
|
173 iEndCallButtonPanePriority = |
|
174 iAppUi.EndCallButtonPane().DrawableWindow()->OrdinalPriority(); |
|
175 iEndCallButtonPanePosition = |
|
176 iAppUi.EndCallButtonPane().DrawableWindow()->OrdinalPosition(); |
|
177 |
171 // Rise context control's window priority othwerwise setting page will be |
178 // Rise context control's window priority othwerwise setting page will be |
172 // drawn partially over the context control window. |
179 // drawn partially over the context control window. |
173 iAppUi.ContextControl().DrawableWindow()->SetOrdinalPosition( |
180 iAppUi.ContextControl().DrawableWindow()->SetOrdinalPosition( |
174 iContextControlWindowPosition, iContextControlWindowPriority + 1 ); |
181 iContextControlWindowPosition, iContextControlWindowPriority + 1 ); |
175 |
182 |
176 // Rise remote video control's window priority othwerwise setting page |
183 // Rise remote video control's window priority othwerwise setting page |
177 // will be drawn partially over the context control window. |
184 // will be drawn partially over the context control window. |
178 iAppUi.RemoteVideoControl().DrawableWindow()->SetOrdinalPosition( |
185 iAppUi.RemoteVideoControl().DrawableWindow()->SetOrdinalPosition( |
179 iRemoteVideoControlWindowPosition, |
186 iRemoteVideoControlWindowPosition, |
180 iRemoteVideoControlWindowPriority + 2 ); |
187 iRemoteVideoControlWindowPriority + 2 ); |
|
188 |
|
189 // Rise end call button pane priority othwerwise setting page |
|
190 // will be drawn partially over the context control window. |
|
191 iAppUi.EndCallButtonPane().DrawableWindow()->SetOrdinalPosition( |
|
192 iEndCallButtonPanePosition, |
|
193 iEndCallButtonPanePriority + 1 ); |
181 |
194 |
182 // Creates setting page |
195 // Creates setting page |
183 CreateSettingPageL(); |
196 CreateSettingPageL(); |
184 // Launch setting page. |
197 // Launch setting page. |
185 iSettingPage->ExecuteLD( CAknSettingPage::EUpdateWhenAccepted, EFalse ); |
198 iSettingPage->ExecuteLD( CAknSettingPage::EUpdateWhenAccepted, EFalse ); |
202 // Cancell the setting page |
215 // Cancell the setting page |
203 TKeyEvent keyEvent; |
216 TKeyEvent keyEvent; |
204 keyEvent.iCode = EKeyEscape; |
217 keyEvent.iCode = EKeyEscape; |
205 iSettingPage->OfferKeyEventL( keyEvent, EEventKey ); |
218 iSettingPage->OfferKeyEventL( keyEvent, EEventKey ); |
206 } |
219 } |
|
220 |
|
221 // Set end call button pane priority and position back to |
|
222 // orginal value. |
|
223 iAppUi.EndCallButtonPane().DrawableWindow()->SetOrdinalPosition( |
|
224 iEndCallButtonPanePosition, iEndCallButtonPanePriority ); |
207 |
225 |
208 // Set remote video control's window priority and position back to |
226 // Set remote video control's window priority and position back to |
209 // orginal value. |
227 // orginal value. |
210 iAppUi.RemoteVideoControl().DrawableWindow()->SetOrdinalPosition( |
228 iAppUi.RemoteVideoControl().DrawableWindow()->SetOrdinalPosition( |
211 iRemoteVideoControlWindowPosition, |
229 iRemoteVideoControlWindowPosition, |