200 globalNotifierParam.SetBoolean( EFalse ); |
200 globalNotifierParam.SetBoolean( EFalse ); |
201 iViewCommandHandle.ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
201 iViewCommandHandle.ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
202 &globalNotifierParam ); |
202 &globalNotifierParam ); |
203 |
203 |
204 TPhoneCmdParamGlobalNote globalNoteParam; |
204 TPhoneCmdParamGlobalNote globalNoteParam; |
|
205 PhoneNotificationType type = aNotificationDialog ? |
|
206 EPhoneNotificationDialog : EPhoneMessageBoxInformation; |
|
207 globalNoteParam.SetType( type ); |
205 |
208 |
206 globalNoteParam.SetType( EAknGlobalInformationNote ); |
|
207 globalNoteParam.SetTextResourceId( |
209 globalNoteParam.SetTextResourceId( |
208 CPhoneMainResourceResolver::Instance()-> |
210 CPhoneMainResourceResolver::Instance()-> |
209 ResolveResourceID( aResourceId ) ); |
211 ResolveResourceID( aResourceId ) ); |
210 globalNoteParam.SetTone( EAvkonSIDInformationTone ); |
|
211 globalNoteParam.SetNotificationDialog( aNotificationDialog ); |
212 globalNoteParam.SetNotificationDialog( aNotificationDialog ); |
212 |
213 |
213 iViewCommandHandle.ExecuteCommandL( |
214 iViewCommandHandle.ExecuteCommandL( |
214 EPhoneViewShowGlobalNote, &globalNoteParam ); |
215 EPhoneViewShowGlobalNote, &globalNoteParam ); |
215 } |
216 } |
247 globalNotifierParam.SetBoolean( EFalse ); |
248 globalNotifierParam.SetBoolean( EFalse ); |
248 iViewCommandHandle.ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
249 iViewCommandHandle.ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
249 &globalNotifierParam ); |
250 &globalNotifierParam ); |
250 |
251 |
251 TPhoneCmdParamGlobalNote globalNoteParam; |
252 TPhoneCmdParamGlobalNote globalNoteParam; |
252 globalNoteParam.SetType( EAknGlobalErrorNote ); |
253 PhoneNotificationType type = aNotificationDialog ? |
|
254 EPhoneNotificationDialog : EPhoneMessageBoxInformation; |
|
255 globalNoteParam.SetType( type ); |
253 globalNoteParam.SetTextResourceId( |
256 globalNoteParam.SetTextResourceId( |
254 CPhoneMainResourceResolver::Instance()-> |
257 CPhoneMainResourceResolver::Instance()-> |
255 ResolveResourceID( aResourceId ) ); |
258 ResolveResourceID( aResourceId ) ); |
256 globalNoteParam.SetTone( CAknNoteDialog::EErrorTone ); |
|
257 globalNoteParam.SetNotificationDialog( aNotificationDialog ); |
259 globalNoteParam.SetNotificationDialog( aNotificationDialog ); |
258 |
260 |
259 iViewCommandHandle.ExecuteCommandL( |
261 iViewCommandHandle.ExecuteCommandL( |
260 EPhoneViewShowGlobalNote, &globalNoteParam ); |
262 EPhoneViewShowGlobalNote, &globalNoteParam ); |
261 } |
263 } |