159 globalNotifierParam.SetBoolean( EFalse ); |
153 globalNotifierParam.SetBoolean( EFalse ); |
160 iViewCommandHandle.ExecuteCommandL( |
154 iViewCommandHandle.ExecuteCommandL( |
161 EPhoneViewSetGlobalNotifiersDisabled, |
155 EPhoneViewSetGlobalNotifiersDisabled, |
162 &globalNotifierParam ); |
156 &globalNotifierParam ); |
163 |
157 |
164 TPhoneCmdParamBoolean booleanParam; |
|
165 booleanParam.SetBoolean( ETrue ); |
|
166 iViewCommandHandle.ExecuteCommandL( |
|
167 EPhoneViewSetBlockingDialogStatus, |
|
168 &booleanParam ); |
|
169 |
|
170 // Get active call count |
158 // Get active call count |
171 TPhoneCmdParamInteger activeCallCount; |
159 TPhoneCmdParamInteger activeCallCount; |
172 iViewCommandHandle.ExecuteCommandL( |
160 iViewCommandHandle.ExecuteCommandL( |
173 EPhoneViewGetCountOfActiveCalls, &activeCallCount ); |
161 EPhoneViewGetCountOfActiveCalls, &activeCallCount ); |
174 |
162 |
175 if( !activeCallCount.Integer() ) |
|
176 { |
|
177 __PHONELOG( |
|
178 EBasic, |
|
179 EPhoneUIStates, |
|
180 "CPhoneGeneralGsmMessagesHandler::EPEMessageIssuingSSRequest no active call" ); |
|
181 // Ensure that the dialer is activated to display local notes and dialogs properly. |
|
182 TPhoneCmdParamAppInfo param; |
|
183 param.SetAppUid( KUidPhoneApplication ); |
|
184 param.SetViewUid( KUidViewId ); |
|
185 param.SetCustomMessageId( TUid::Uid( KTouchDiallerViewCommand ) ); |
|
186 iViewCommandHandle.ExecuteCommandL( |
|
187 EPhoneViewActivateAppViewWithCustomMessage, |
|
188 ¶m ); |
|
189 } |
|
190 // Remove phoneumber query |
163 // Remove phoneumber query |
191 iViewCommandHandle.ExecuteCommandL( EPhoneViewRemoveQuery ); |
164 iViewCommandHandle.ExecuteCommandL( EPhoneViewRemoveQuery ); |
192 break; |
165 break; |
193 } |
166 } |
194 |
167 |
227 globalNotifierParam.SetBoolean( EFalse ); |
200 globalNotifierParam.SetBoolean( EFalse ); |
228 iViewCommandHandle.ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
201 iViewCommandHandle.ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
229 &globalNotifierParam ); |
202 &globalNotifierParam ); |
230 |
203 |
231 TPhoneCmdParamGlobalNote globalNoteParam; |
204 TPhoneCmdParamGlobalNote globalNoteParam; |
|
205 PhoneNotificationType type = aNotificationDialog ? |
|
206 EPhoneNotificationDialog : EPhoneMessageBoxInformation; |
|
207 globalNoteParam.SetType( type ); |
232 |
208 |
233 globalNoteParam.SetType( EAknGlobalInformationNote ); |
|
234 globalNoteParam.SetTextResourceId( |
209 globalNoteParam.SetTextResourceId( |
235 CPhoneMainResourceResolver::Instance()-> |
210 CPhoneMainResourceResolver::Instance()-> |
236 ResolveResourceID( aResourceId ) ); |
211 ResolveResourceID( aResourceId ) ); |
237 globalNoteParam.SetTone( EAvkonSIDInformationTone ); |
|
238 globalNoteParam.SetNotificationDialog( aNotificationDialog ); |
212 globalNoteParam.SetNotificationDialog( aNotificationDialog ); |
239 |
213 |
240 iViewCommandHandle.ExecuteCommandL( |
214 iViewCommandHandle.ExecuteCommandL( |
241 EPhoneViewShowGlobalNote, &globalNoteParam ); |
215 EPhoneViewShowGlobalNote, &globalNoteParam ); |
242 } |
216 } |
274 globalNotifierParam.SetBoolean( EFalse ); |
248 globalNotifierParam.SetBoolean( EFalse ); |
275 iViewCommandHandle.ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
249 iViewCommandHandle.ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
276 &globalNotifierParam ); |
250 &globalNotifierParam ); |
277 |
251 |
278 TPhoneCmdParamGlobalNote globalNoteParam; |
252 TPhoneCmdParamGlobalNote globalNoteParam; |
279 globalNoteParam.SetType( EAknGlobalErrorNote ); |
253 PhoneNotificationType type = aNotificationDialog ? |
|
254 EPhoneNotificationDialog : EPhoneMessageBoxInformation; |
|
255 globalNoteParam.SetType( type ); |
280 globalNoteParam.SetTextResourceId( |
256 globalNoteParam.SetTextResourceId( |
281 CPhoneMainResourceResolver::Instance()-> |
257 CPhoneMainResourceResolver::Instance()-> |
282 ResolveResourceID( aResourceId ) ); |
258 ResolveResourceID( aResourceId ) ); |
283 globalNoteParam.SetTone( CAknNoteDialog::EErrorTone ); |
|
284 globalNoteParam.SetNotificationDialog( aNotificationDialog ); |
259 globalNoteParam.SetNotificationDialog( aNotificationDialog ); |
285 |
260 |
286 iViewCommandHandle.ExecuteCommandL( |
261 iViewCommandHandle.ExecuteCommandL( |
287 EPhoneViewShowGlobalNote, &globalNoteParam ); |
262 EPhoneViewShowGlobalNote, &globalNoteParam ); |
288 } |
263 } |