phoneapp/phoneuicontrol/src/tphonecallheaderparam.cpp
branchRCL_3
changeset 20 3c221667e687
parent 0 5f000ab63145
child 23 40a3f856b14d
equal deleted inserted replaced
14:b8d67d6176f5 20:3c221667e687
   224 //  TPhoneCallHeaderParam::SetBasicCallHeaderParamsL
   224 //  TPhoneCallHeaderParam::SetBasicCallHeaderParamsL
   225 // ---------------------------------------------------------------------------
   225 // ---------------------------------------------------------------------------
   226 //
   226 //
   227 void TPhoneCallHeaderParam::SetBasicCallHeaderParamsL(
   227 void TPhoneCallHeaderParam::SetBasicCallHeaderParamsL(
   228         const TInt aCallId, 
   228         const TInt aCallId, 
   229         TPhoneCmdParamCallHeaderData* aCallHeaderData )
   229         TPhoneCmdParamCallHeaderData* aCallHeaderData,
       
   230         TBool aInitializing )
   230     {
   231     {
   231     __LOGMETHODSTARTEND(EPhoneControl, "TPhoneCallHeaderParam::SetBasicCallHeaderParamsL( ) ");
   232     __LOGMETHODSTARTEND(EPhoneControl, "TPhoneCallHeaderParam::SetBasicCallHeaderParamsL( ) ");
   232     // Set call header call state
   233     // Set call header call state
   233     aCallHeaderData->SetCallState( 
   234     if( aInitializing )
   234         iStateMachine.PhoneEngineInfo()->CallState( aCallId ) );
   235         {
   235 
   236         // fake state to initializing call this way we get correct bubble to screen.
   236     // Set call header type            
   237         aCallHeaderData->SetCallState( EPEStateDialing );
       
   238         }
       
   239     else
       
   240         {
       
   241         aCallHeaderData->SetCallState( 
       
   242                 iStateMachine.PhoneEngineInfo()->CallState( aCallId ) );
       
   243         }
       
   244     
       
   245     // Set call header type.
   237     aCallHeaderData->SetCallType( GetCallType( aCallId, aCallHeaderData ) );
   246     aCallHeaderData->SetCallType( GetCallType( aCallId, aCallHeaderData ) );
   238     aCallHeaderData->SetCallFlag( CallHeaderType() );
   247     aCallHeaderData->SetCallFlag( CallHeaderType() );
   239     
   248     
   240     // Set call header voice privacy status
   249     // Set call header voice privacy status
   241     aCallHeaderData->SetCiphering( 
   250     aCallHeaderData->SetCiphering( 
   525         const TBool aVideoCall,
   534         const TBool aVideoCall,
   526         TPhoneCmdParamCallHeaderData* aCallHeaderData )
   535         TPhoneCmdParamCallHeaderData* aCallHeaderData )
   527     {
   536     {
   528     __LOGMETHODSTARTEND(EPhoneControl, "TPhoneCallHeaderParam::SetIncomingCallHeaderParamsL( ) ");
   537     __LOGMETHODSTARTEND(EPhoneControl, "TPhoneCallHeaderParam::SetIncomingCallHeaderParamsL( ) ");
   529     // Set basic params must be called before update is called.
   538     // Set basic params must be called before update is called.
   530     SetBasicCallHeaderParamsL( aCallId, aCallHeaderData );
   539     SetBasicCallHeaderParamsL( aCallId, aCallHeaderData, EFalse );
   531     
   540     
   532     // Set call header labels
   541     // Set call header labels
   533     SetCallHeaderTexts( 
   542     SetCallHeaderTexts( 
   534             aCallId, 
   543             aCallId, 
   535             aWaitingCall, 
   544             aWaitingCall, 
   550         const TInt aCallId,
   559         const TInt aCallId,
   551         TPhoneCmdParamCallHeaderData* aCallHeaderData )
   560         TPhoneCmdParamCallHeaderData* aCallHeaderData )
   552     {
   561     {
   553     __LOGMETHODSTARTEND(EPhoneControl, "TPhoneCallHeaderParam::SetOutgoingCallHeaderParamsL( ) ");
   562     __LOGMETHODSTARTEND(EPhoneControl, "TPhoneCallHeaderParam::SetOutgoingCallHeaderParamsL( ) ");
   554     // Set basic params must be called before update is called.
   563     // Set basic params must be called before update is called.
   555     SetBasicCallHeaderParamsL( aCallId, aCallHeaderData );
   564     SetBasicCallHeaderParamsL( aCallId, aCallHeaderData, EFalse );
   556     
       
   557     // Set call header labels
   565     // Set call header labels
       
   566     SetCallHeaderLabels( aCallHeaderData );
       
   567     SetCliParamatersL( aCallId, aCallHeaderData );
       
   568     }
       
   569 
       
   570 // ---------------------------------------------------------------------------
       
   571 //  TPhoneCallHeaderParam::SetIniticalizingCallHeaderParamsL
       
   572 // ---------------------------------------------------------------------------
       
   573 //
       
   574 void TPhoneCallHeaderParam::SetIniticalizingCallHeaderParamsL(
       
   575         const TInt aCallId,
       
   576         TPhoneCmdParamCallHeaderData* aCallHeaderData )
       
   577     {
       
   578     __LOGMETHODSTARTEND(EPhoneControl, "TPhoneCallHeaderParam::SetIniticalizingCallHeaderParamsL( ) ");
       
   579     // Set basic params must be called before update is called.
       
   580     SetBasicCallHeaderParamsL( aCallId, aCallHeaderData, ETrue );
       
   581     // Set call header labels
       
   582     SetCallHeaderLabels( aCallHeaderData );
       
   583     }
       
   584 
       
   585 // ---------------------------------------------------------------------------
       
   586 //  TPhoneCallHeaderParam::SetCallHeaderLabels
       
   587 // ---------------------------------------------------------------------------
       
   588 //
       
   589 void TPhoneCallHeaderParam::SetCallHeaderLabels( 
       
   590        TPhoneCmdParamCallHeaderData* aCallHeaderData )
       
   591     {
   558     if ( aCallHeaderData->CallType() == EPECallTypeVideo )
   592     if ( aCallHeaderData->CallType() == EPECallTypeVideo )
   559         {
   593         {
   560         iManagerUtility.LoadCallHeaderTexts( 
   594         iManagerUtility.LoadCallHeaderTexts( 
   561                 EPhoneOutgoingVideoCallLabel, 
   595                 EPhoneOutgoingVideoCallLabel, 
   562                 EPhoneOutgoingVideoCallLabelShort, 
   596                 EPhoneOutgoingVideoCallLabelShort, 
   567         iManagerUtility.LoadCallHeaderTexts( 
   601         iManagerUtility.LoadCallHeaderTexts( 
   568                 EPhoneOutgoingCallLabel, 
   602                 EPhoneOutgoingCallLabel, 
   569                 EPhoneOutgoingCallLabelShort, 
   603                 EPhoneOutgoingCallLabelShort, 
   570                 aCallHeaderData );
   604                 aCallHeaderData );
   571         }
   605         }
   572     
       
   573     SetCliParamatersL( aCallId, aCallHeaderData );
       
   574     }
   606     }
   575 
   607 
   576 // ---------------------------------------------------------------------------
   608 // ---------------------------------------------------------------------------
   577 //  TPhoneCallHeaderParam::UpdateCallHeaderInfoL
   609 //  TPhoneCallHeaderParam::UpdateCallHeaderInfoL
   578 // ---------------------------------------------------------------------------
   610 // ---------------------------------------------------------------------------