phoneengine/phonemodel/src/cpemessagehandler.cpp
changeset 30 ebdbd102c78a
parent 27 2f8f8080a020
child 51 f39ed5e045e0
equal deleted inserted replaced
27:2f8f8080a020 30:ebdbd102c78a
  1316     TEFLOGSTRING2( 
  1316     TEFLOGSTRING2( 
  1317         KTAINT, 
  1317         KTAINT, 
  1318         "PE CPEMessageHandler::UpdateClientInfo, allowmatch: %d", 
  1318         "PE CPEMessageHandler::UpdateClientInfo, allowmatch: %d", 
  1319         clientInformation.AllowMatch() );
  1319         clientInformation.AllowMatch() );
  1320     
  1320     
  1321     if ( clientInformation.AllowMatch() && ( aCallId != KPEEmergencyCallId ) )
  1321     if ( EPECallOriginSAT != iDataStore.CallOrigin(aCallId) && 
       
  1322        ( aCallId != KPEEmergencyCallId ) )
  1322         {
  1323         {
  1323         TEFLOGSTRING2( 
  1324         TEFLOGSTRING2( 
  1324             KTAINT, 
  1325             KTAINT, 
  1325             "PE CPEMessageHandler::UpdateClientInfo, match phone number: '%S'", 
  1326             "PE CPEMessageHandler::UpdateClientInfo, match phone number: '%S'", 
  1326             &iDataStore.RemotePhoneNumber( aCallId ) );
  1327             &iDataStore.RemotePhoneNumber( aCallId ) );
  1339             
  1340             
  1340         TEFLOGSTRING2( 
  1341         TEFLOGSTRING2( 
  1341             KTAINT, 
  1342             KTAINT, 
  1342             "PE CPEMessageHandler::UpdateClientInfo > MPEContactHandling::FindContactInfoSync( EPEFindWithPhoneNumber ), error code: %d", 
  1343             "PE CPEMessageHandler::UpdateClientInfo > MPEContactHandling::FindContactInfoSync( EPEFindWithPhoneNumber ), error code: %d", 
  1343             errorCode );
  1344             errorCode );
  1344         }
       
  1345     else if ( clientInformation.Name().Length() )
       
  1346         {
       
  1347         iDataStore.SetRemoteName( clientInformation.Name(), aCallId );
       
  1348         }
  1345         }
  1349     
  1346     
  1350     // Calls have to log also without a contact (ECCPErrorNotFound).
  1347     // Calls have to log also without a contact (ECCPErrorNotFound).
  1351     if ( errorCode == ECCPErrorNone || errorCode == ECCPErrorNotFound)
  1348     if ( errorCode == ECCPErrorNone || errorCode == ECCPErrorNotFound)
  1352         {
  1349         {
  1861     
  1858     
  1862     if ( aClientCall )
  1859     if ( aClientCall )
  1863         {
  1860         {
  1864         HandleClientCallData();
  1861         HandleClientCallData();
  1865         }
  1862         }
       
  1863     else 
       
  1864         {
       
  1865         iDataStore.SetCallOriginCommand(EPECallOriginPhone);
       
  1866         }
  1866         
  1867         
  1867     //Get number of calls
  1868     //Get number of calls
  1868     numberOfCalls = iCallHandling.GetNumberOfCalls();
  1869     numberOfCalls = iCallHandling.GetNumberOfCalls();
  1869 
  1870 
  1870     // Check the phone number for prefix change and change the prefix if needed
  1871     // Check the phone number for prefix change and change the prefix if needed
  3001     //TODO 
  3002     //TODO 
  3002     iModel.HandleInternalMessage( MPEPhoneModel::EPEMessageDialServiceCall );
  3003     iModel.HandleInternalMessage( MPEPhoneModel::EPEMessageDialServiceCall );
  3003     return errorCode;
  3004     return errorCode;
  3004     }
  3005     }
  3005 
  3006 
  3006 //  End of File  
  3007 
       
  3008 // -----------------------------------------------------------------------------
       
  3009 // CPEMessageHandler::ExecuteKeySequenceL
       
  3010 // Only sequences which are not issued with send-key are handled here. SS 
       
  3011 // commands etc. are processed in HandleDialCallL().
       
  3012 // -----------------------------------------------------------------------------
       
  3013 //
       
  3014 TBool CPEMessageHandler::ExecuteKeySequenceL( const TDesC16 &aSequence )
       
  3015 {
       
  3016     TBool keySequenceProcessed( EFalse );
       
  3017     
       
  3018     iOptions->SetOptionStatus( KPhoneOptionInCall, 
       
  3019         ( iCallHandling.GetNumberOfCalls() > 0 ) );
       
  3020     iOptions->SetOptionStatus( KPhoneOptionSend, EFalse );
       
  3021     iOptions->SetOptionStatus( KPhoneOptionVoipCall, EFalse );
       
  3022     
       
  3023     if ( iParser->ParseL( aSequence, *iResult, *iOptions ) )
       
  3024         {
       
  3025         keySequenceProcessed = ETrue;
       
  3026         iGsmParserErrorCode = ECCPErrorNone;
       
  3027         iParserHandlerContainer->ProcessL( *iResult );
       
  3028         }
       
  3029     
       
  3030     return keySequenceProcessed;
       
  3031 }
       
  3032 
       
  3033 //  End of File