phoneapp/phoneuiview/src/cphonebubblewrapper.cpp
branchRCL_3
changeset 81 c26cc2a7c548
parent 69 8baf28733c3d
equal deleted inserted replaced
73:e30d4a1b8bad 81:c26cc2a7c548
    53 #include "phoneui.pan"
    53 #include "phoneui.pan"
    54 #include "mnumberentry.h"
    54 #include "mnumberentry.h"
    55 #include "mphonenumberentry.h"
    55 #include "mphonenumberentry.h"
    56 #include "cphonenumberentry.h"
    56 #include "cphonenumberentry.h"
    57 #include "phonebubbleextensionmanager.h"
    57 #include "phonebubbleextensionmanager.h"
    58 #include "phonevanitydialingutils.h"
       
    59 
    58 
    60 #include "mphonecustomization.h"
    59 #include "mphonecustomization.h"
    61 
    60 
    62 // ================= MEMBER FUNCTIONS =======================
    61 // ================= MEMBER FUNCTIONS =======================
    63 
    62 
   552     iBubbleManager->SetCNAP(
   551     iBubbleManager->SetCNAP(
   553             aBubble,
   552             aBubble,
   554             aCallHeaderParam->CNAPText(),
   553             aCallHeaderParam->CNAPText(),
   555             aCallHeaderParam->CNAPTextClippingDirection() );
   554             aCallHeaderParam->CNAPTextClippingDirection() );
   556 
   555 
   557     // Set CLI type to be used in conference call participant list
       
   558     CBubbleManager::TBubbleParticipantListCLI partipantCli =
       
   559         ( aCallHeaderParam->ParticipantCLI() ==
       
   560           TPhoneCmdParamCallHeaderData::EPhoneParticipantCNAPText ) ?
       
   561         CBubbleManager::EParticipantListCNAP :
       
   562         CBubbleManager::EParticipantListCLIText;
       
   563     iBubbleManager->SetParticipantListCLI( aBubble, partipantCli );
       
   564 
       
   565     iBubbleManager->SetCallFlags( aBubble, aCallHeaderParam->CallFlag() );
   556     iBubbleManager->SetCallFlags( aBubble, aCallHeaderParam->CallFlag() );
   566 
   557 
   567     // Set ciphering indicator
   558     // Set ciphering indicator
   568     iBubbleManager->SetCallFlag(
   559     iBubbleManager->SetCallFlag(
   569         aBubble,
   560         aBubble,
   660         "CPhoneBubbleWrapper::GetNumberEntryContent(%S)",
   651         "CPhoneBubbleWrapper::GetNumberEntryContent(%S)",
   661         entryContent->String() );
   652         entryContent->String() );
   662 
   653 
   663     AknTextUtils::ConvertDigitsTo( *entryContent->String(), EDigitTypeWestern );
   654     AknTextUtils::ConvertDigitsTo( *entryContent->String(), EDigitTypeWestern );
   664 
   655 
   665     if ( FeatureManager::FeatureSupported( KFeatureIdFfHomeScreenVanityDialing ) )
       
   666         {
       
   667         PhoneVanityDialingUtils::DoVanityNumberConversion( *entryContent->String() );
       
   668         }
       
   669     
       
   670     __PHONELOG1( EBasic, EPhoneUIView,
   656     __PHONELOG1( EBasic, EPhoneUIView,
   671         "CPhoneBubbleWrapper::GetNumberEntryContent(%S)",
   657         "CPhoneBubbleWrapper::GetNumberEntryContent(%S)",
   672         entryContent->String() );
   658         entryContent->String() );
   673     }
   659     }
   674 
   660 
   675 // -----------------------------------------------------------------------------
   661 // -----------------------------------------------------------------------------
   676 // CPhoneBubbleWrapper.::GetLocalizedNumberEntryContent
   662 // CPhoneBubbleWrapper.::GetNumberEntryContent
   677 // -----------------------------------------------------------------------------
   663 // -----------------------------------------------------------------------------
   678 //
   664 //
   679 void CPhoneBubbleWrapper::GetLocalizedNumberEntryContent(
   665 void CPhoneBubbleWrapper::GetLocalizedNumberEntryContent(
   680     TPhoneCommandParam* aCommandParam )
   666     TPhoneCommandParam* aCommandParam )
   681     {
   667     {
   704 
   690 
   705     iIsNumberEntryModeNumeric = ETrue;
   691     iIsNumberEntryModeNumeric = ETrue;
   706     if ( iUseDialer )
   692     if ( iUseDialer )
   707         {
   693         {
   708         iDialerNumberEntry->CreateNumberEntry();
   694         iDialerNumberEntry->CreateNumberEntry();
       
   695         iDialerNumberEntry->GetNumberEntry()->SetFocus( ETrue );
   709         }
   696         }
   710     else
   697     else
   711         {
   698         {
   712         iBubbleManager->ResetEditorToDefaultValues();
   699         iBubbleManager->ResetEditorToDefaultValues();
   713         if( iPhoneCustomization && 
   700         if( iPhoneCustomization && 
  1392         // Otherwise we also have to clear the conference.
  1379         // Otherwise we also have to clear the conference.
  1393             {
  1380             {
  1394             RemoveConferenceL();
  1381             RemoveConferenceL();
  1395             }
  1382             }
  1396 
  1383 
  1397         iBubbleManager->RemoveCallHeader( bubble );
  1384 	    iBubbleManager->RemoveCallHeader( bubble );
  1398         iMapping->RemoveFromMapping( aCallId );
  1385 	    iMapping->RemoveFromMapping( aCallId );
  1399         iBubbleManager->EndChanges();
  1386 	    iBubbleManager->EndChanges();
  1400         }
  1387         }
  1401     }
  1388     }
  1402 
  1389 
  1403 // ---------------------------------------------------------
  1390 // ---------------------------------------------------------
  1404 // CPhoneBubbleWrapper::FindParticipantPosition
  1391 // CPhoneBubbleWrapper::FindParticipantPosition