phoneapp/phoneuistates/src/cphoneerrormessageshandler.cpp
changeset 56 5bcb308bd24d
parent 46 bc5a64e5bc3c
child 72 c76a0b1755b9
equal deleted inserted replaced
46:bc5a64e5bc3c 56:5bcb308bd24d
   123         iViewCommandHandle->ExecuteCommandL( 
   123         iViewCommandHandle->ExecuteCommandL( 
   124                 EPhoneViewSetGlobalNotifiersDisabled,    
   124                 EPhoneViewSetGlobalNotifiersDisabled,    
   125                 &globalNotifierParam );
   125                 &globalNotifierParam );
   126             
   126             
   127         TPhoneCmdParamGlobalNote globalNoteParam;
   127         TPhoneCmdParamGlobalNote globalNoteParam;
   128       
   128         PhoneNotificationType type = aNotificationDialog ? 
   129         globalNoteParam.SetType( EAknGlobalInformationNote );
   129                 EPhoneNotificationDialog : EPhoneMessageBoxInformation;
   130 
   130         globalNoteParam.SetType( type );
   131         globalNoteParam.SetTone( EAvkonSIDInformationTone );
       
   132         globalNoteParam.SetNotificationDialog( aNotificationDialog );
   131         globalNoteParam.SetNotificationDialog( aNotificationDialog );
   133 
   132 
   134         TInt resourceID( KErrNotFound );
   133         TInt resourceID( KErrNotFound );
   135         TInt causeCode( KErrNotFound );
   134         TInt causeCode( KErrNotFound );
   136         TBool notification( ETrue );
   135         TBool notification( ETrue );
   175         iViewCommandHandle->ExecuteCommandL( 
   174         iViewCommandHandle->ExecuteCommandL( 
   176              EPhoneViewSetGlobalNotifiersDisabled,
   175              EPhoneViewSetGlobalNotifiersDisabled,
   177             &globalNotifierParam );
   176             &globalNotifierParam );
   178             
   177             
   179         TPhoneCmdParamGlobalNote globalNoteParam;
   178         TPhoneCmdParamGlobalNote globalNoteParam;
   180         globalNoteParam.SetType( EAknGlobalErrorNote );
   179         PhoneNotificationType type = aNotificationDialog ? 
   181 
   180                 EPhoneNotificationDialog : EPhoneMessageBoxInformation;
   182         globalNoteParam.SetTone( CAknNoteDialog::EErrorTone );
   181         globalNoteParam.SetType( type );
   183         globalNoteParam.SetNotificationDialog( aNotificationDialog );
   182         globalNoteParam.SetNotificationDialog( aNotificationDialog );
   184         
   183         
   185         TInt resourceID( KErrNotFound );
   184         TInt resourceID( KErrNotFound );
   186         TInt causeCode( KErrNotFound );
   185         TInt causeCode( KErrNotFound );
   187         TBool notification( ETrue );
   186         TBool notification( ETrue );
   226         iViewCommandHandle->ExecuteCommandL(  
   225         iViewCommandHandle->ExecuteCommandL(  
   227             EPhoneViewSetGlobalNotifiersDisabled,
   226             EPhoneViewSetGlobalNotifiersDisabled,
   228             &globalNotifierParam );
   227             &globalNotifierParam );
   229             
   228             
   230         TPhoneCmdParamGlobalNote globalNoteParam;
   229         TPhoneCmdParamGlobalNote globalNoteParam;
   231         globalNoteParam.SetType( EAknGlobalWarningNote );
   230         PhoneNotificationType type = aNotificationDialog ? 
   232 
   231                 EPhoneNotificationDialog : EPhoneMessageBoxInformation;
   233         globalNoteParam.SetTone( EAvkonSIDWarningTone );
   232         globalNoteParam.SetType( type );
   234         globalNoteParam.SetNotificationDialog( aNotificationDialog );
   233         globalNoteParam.SetNotificationDialog( aNotificationDialog );
   235 
   234 
   236         TInt resourceID( KErrNotFound );
   235         TInt resourceID( KErrNotFound );
   237         TInt causeCode( KErrNotFound );
   236         TInt causeCode( KErrNotFound );
   238         TBool notification( ETrue );
   237         TBool notification( ETrue );
   455         case ECCPErrorCCCallRejected:
   454         case ECCPErrorCCCallRejected:
   456             if ( !iStateMachine->PhoneEngineInfo()->IsOutgoingCallBarringActivated() )
   455             if ( !iStateMachine->PhoneEngineInfo()->IsOutgoingCallBarringActivated() )
   457                 {
   456                 {
   458                 if( IsVideoCall( aErrorInfo.iCallId ) )
   457                 if( IsVideoCall( aErrorInfo.iCallId ) )
   459                     {
   458                     {
   460                     SendGlobalInfoNoteL( EPhoneNoteCalledNumberHasBarredIncomingCalls, ETrue );
   459                     SendGlobalInfoNoteL( EPhoneNoteCalledNumberHasBarredIncomingCalls );
   461                     }
   460                     }
   462                 else if ( IsVoiceCall( aErrorInfo.iCallId ))
   461                 else if ( IsVoiceCall( aErrorInfo.iCallId ))
   463                     {
   462                     {
   464                     SendGlobalWarningNoteL( EPhoneNoteCallInfoCauseValue21 );
   463                     SendGlobalWarningNoteL( EPhoneNoteCalledNumberHasBarredIncomingCalls, ETrue );
   465                     }
   464                     }
   466                 }
   465                 }
   467             break;
   466             break;
   468             
   467             
   469         case ECCPErrorMovedPermanently:
   468         case ECCPErrorMovedPermanently:
   785         case KErrGsmCCCallRejected:
   784         case KErrGsmCCCallRejected:
   786             if ( !iStateMachine->PhoneEngineInfo()->IsOutgoingCallBarringActivated() )
   785             if ( !iStateMachine->PhoneEngineInfo()->IsOutgoingCallBarringActivated() )
   787                 {
   786                 {
   788                 aResourceId = EPhoneNoteCalledNumberHasBarredIncomingCalls;
   787                 aResourceId = EPhoneNoteCalledNumberHasBarredIncomingCalls;
   789                 aCauseCode = 21;
   788                 aCauseCode = 21;
       
   789                 aNotification = (EFalse == IsVideoCall( callId ));
   790                 }
   790                 }
   791             break;
   791             break;
   792             
   792             
   793         case KErrGsmCCNumberChanged:
   793         case KErrGsmCCNumberChanged:
   794             aResourceId = EPhoneNumberNotInUse;
   794             aResourceId = EPhoneNumberNotInUse;
  1007                 }
  1007                 }
  1008             aCauseCode = 81;                
  1008             aCauseCode = 81;                
  1009             break;
  1009             break;
  1010             
  1010             
  1011         case KErrGsmCCUserNotInCug:
  1011         case KErrGsmCCUserNotInCug:
  1012             // Todo correct string missing
       
  1013             aResourceId = EPhoneNumberNotInCUG;
  1012             aResourceId = EPhoneNumberNotInCUG;
  1014             aCauseCode = 87;                
  1013             aCauseCode = 87;                
  1015             break;
  1014             break;
  1016             
  1015             
  1017         case KErrGsmCCIncompatibleDestination:
  1016         case KErrGsmCCIncompatibleDestination: