phoneapp/phoneuistates/src/cphonegeneralgsmmessageshandler.cpp
changeset 76 cfea66083b62
parent 74 d1c62c765e48
equal deleted inserted replaced
74:d1c62c765e48 76:cfea66083b62
   171     globalNotifierParam.SetBoolean( EFalse );
   171     globalNotifierParam.SetBoolean( EFalse );
   172     iViewCommandHandle.ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled,
   172     iViewCommandHandle.ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled,
   173         &globalNotifierParam );
   173         &globalNotifierParam );
   174         
   174         
   175     TPhoneCmdParamGlobalNote globalNoteParam;
   175     TPhoneCmdParamGlobalNote globalNoteParam;
   176     PhoneNotificationType type = aNotificationDialog ? 
   176     TPhoneNotificationType type = aNotificationDialog ? 
   177             EPhoneNotificationDialog : EPhoneMessageBoxInformation;
   177             EPhoneNotificationDialog : EPhoneMessageBoxInformation;
   178     globalNoteParam.SetType( type );
   178     globalNoteParam.SetType( type );
   179   
   179   
   180     globalNoteParam.SetTextResourceId( 
   180     globalNoteParam.SetTextResourceId( 
   181         CPhoneMainResourceResolver::Instance()->
   181         CPhoneMainResourceResolver::Instance()->
   182         ResolveResourceID( aResourceId ) );
   182         ResolveResourceID( aResourceId ) );
   183     globalNoteParam.SetNotificationDialog( aNotificationDialog );
   183     globalNoteParam.SetNotificationDialog( aNotificationDialog );
   184 
   184     globalNoteParam.SetToneType( EPhoneInformationTone );
   185     iViewCommandHandle.ExecuteCommandL( 
   185     iViewCommandHandle.ExecuteCommandL( 
   186         EPhoneViewShowGlobalNote, &globalNoteParam );    
   186         EPhoneViewShowGlobalNote, &globalNoteParam );    
   187     }
   187     }
   188 
   188 
   189 // ---------------------------------------------------------
   189 // ---------------------------------------------------------
   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 ? 
   205     TPhoneNotificationType type = aNotificationDialog ? 
   206             EPhoneNotificationDialog : EPhoneMessageBoxInformation;
   206             EPhoneNotificationDialog : EPhoneMessageBoxInformation;
   207     globalNoteParam.SetType( type );
   207     globalNoteParam.SetType( type );
   208     globalNoteParam.SetTextResourceId( 
   208     globalNoteParam.SetTextResourceId( 
   209         CPhoneMainResourceResolver::Instance()->
   209         CPhoneMainResourceResolver::Instance()->
   210         ResolveResourceID( aResourceId ) );
   210         ResolveResourceID( aResourceId ) );
   211     globalNoteParam.SetNotificationDialog( aNotificationDialog );
   211     globalNoteParam.SetNotificationDialog( aNotificationDialog );
   212     
   212     globalNoteParam.SetToneType( EPhoneErrorTone );
   213     iViewCommandHandle.ExecuteCommandL( 
   213     iViewCommandHandle.ExecuteCommandL( 
   214         EPhoneViewShowGlobalNote, &globalNoteParam );
   214         EPhoneViewShowGlobalNote, &globalNoteParam );
   215 
   215 
   216     }
   216     }
   217 
   217