phoneapp/phoneuistates/src/cphoneerrormessageshandler.cpp
branchRCL_3
changeset 14 b8d67d6176f5
parent 10 ba54057fe027
child 23 40a3f856b14d
equal deleted inserted replaced
12:b68fcd923911 14:b8d67d6176f5
   381         case ECCPErrorCCCallRejected:
   381         case ECCPErrorCCCallRejected:
   382             if( IsVideoCall( aErrorInfo.iCallId ) )
   382             if( IsVideoCall( aErrorInfo.iCallId ) )
   383                 {
   383                 {
   384                 SendGlobalInfoNoteL( EPhoneNoteCalledNumberHasBarredIncomingCalls );
   384                 SendGlobalInfoNoteL( EPhoneNoteCalledNumberHasBarredIncomingCalls );
   385                 }
   385                 }
       
   386             else if ( IsVoiceCall( aErrorInfo.iCallId ))
       
   387                 {
       
   388                 SendGlobalWarningNoteL( EPhoneNoteCallInfoCauseValue21 );
       
   389                 }
   386             break;
   390             break;
   387             
   391             
   388         case ECCPErrorMovedPermanently:
   392         case ECCPErrorMovedPermanently:
   389             if( IsVideoCall( aErrorInfo.iCallId ) )
   393             if( IsVideoCall( aErrorInfo.iCallId ) )
   390                 {
   394                 {
   576         
   580         
   577     return ( iStateMachine->PhoneEngineInfo()
   581     return ( iStateMachine->PhoneEngineInfo()
   578         ->CallType( aCallId )== EPECallTypeVideo );
   582         ->CallType( aCallId )== EPECallTypeVideo );
   579     }
   583     }
   580     
   584     
       
   585 // -----------------------------------------------------------
       
   586 // CPhoneErrorMessagesHandler::IsVoiceCall
       
   587 // -----------------------------------------------------------
       
   588 //
       
   589 TBool CPhoneErrorMessagesHandler::IsVoiceCall( const TInt aCallId ) const
       
   590     {
       
   591     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneErrorMessagesHandler::IsVoiceCall() ");
       
   592 
       
   593     if( aCallId == KErrNotFound )
       
   594         {
       
   595        // Illegal call id, check call type command
       
   596         return ( iStateMachine->PhoneEngineInfo()->CallTypeCommand()
       
   597             == EPECallTypeCSVoice );  
       
   598         }
       
   599      
       
   600     return ( iStateMachine->PhoneEngineInfo()
       
   601             ->CallType( aCallId )== EPECallTypeCSVoice );
       
   602 	}
       
   603 
   581 // End of File
   604 // End of File