phoneclientserver/callui/src/cauiengine/cauienginestub.cpp
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     1 /*
       
     2 * Copyright (c) 2004-2005 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implementation of CallUIEngine, stub version.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include    "cauiengine.h" 
       
    22 #include    "cauidialogs.h" 
       
    23 
       
    24 #include    <callui.rsg> // resources. 
       
    25 #include    <cphcltdialer.h> // cphcltdialer. 
       
    26 #include    <cphonecntfactory.h> 
       
    27 #include    <aiwinternaldialdata.h> 
       
    28 #include    <aiwservicehandler.h> 
       
    29 #include    <cphcltextphonedialdata.h> // cphcltextphonedialdata 
       
    30 
       
    31 #include    "callui.loc" // localized strings. 
       
    32 
       
    33 #include    <stringloader.h> // string loader. 
       
    34 #include    <featmgr.h> // featuremanager. 
       
    35 
       
    36 #include    <phcltutils.h> // character removal. 
       
    37 #include    <aiwcommon.h> // aiw dialdata. 
       
    38 
       
    39 // ============================ MEMBER FUNCTIONS ===============================
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // CCaUiEngine::CCaUiEngine
       
    43 // 
       
    44 // C++ default constructor can NOT contain any code, that might leave.
       
    45 // -----------------------------------------------------------------------------
       
    46 //
       
    47 CCaUiEngine::CCaUiEngine()
       
    48 :   iResourceLoader( *CCoeEnv::Static() )
       
    49 #ifndef RD_PHONE_NG
       
    50     ,iResourceLoaderPhoneApE( *CCoeEnv::Static() )
       
    51 #endif    
       
    52     {
       
    53     }
       
    54 
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // CCaUiEngine::ConstructL
       
    58 // 
       
    59 // Symbian 2nd phase constructor can leave.
       
    60 // -----------------------------------------------------------------------------
       
    61 //
       
    62 void CCaUiEngine::ConstructL()
       
    63     {
       
    64     // Sets up TLS, must be done before FeatureManager is used.
       
    65     FeatureManager::InitializeLibL();
       
    66 
       
    67     if( CCoeEnv::Static() )
       
    68         {
       
    69         // Open CallUI resource file.
       
    70         TFileName* name = new ( ELeave ) TFileName( KCallUIResFile );
       
    71         CleanupStack::PushL( name );
       
    72         User::LeaveIfError( iResourceLoader.Open( *name ) );
       
    73         CleanupStack::PopAndDestroy( name );
       
    74         }
       
    75     }
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // CCaUiEngine::NewL
       
    79 // 
       
    80 // Two-phased constructor.
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 CCaUiEngine* CCaUiEngine::NewL()
       
    84     {
       
    85     CCaUiEngine* self = new( ELeave ) CCaUiEngine;
       
    86     
       
    87     CleanupStack::PushL( self );
       
    88     self->ConstructL();
       
    89     CleanupStack::Pop();
       
    90 
       
    91     return self;
       
    92     }
       
    93 
       
    94 
       
    95 // -----------------------------------------------------------------------------
       
    96 // CCaUiEngine::~CCaUEngine
       
    97 // 
       
    98 // Destructor.
       
    99 // -----------------------------------------------------------------------------
       
   100 //
       
   101 CCaUiEngine::~CCaUiEngine()
       
   102     {
       
   103     delete iContactSelector;
       
   104     delete iFactory;
       
   105 
       
   106     // Clear dial components.
       
   107     ClearDialContents();
       
   108 
       
   109     if( CCoeEnv::Static() )
       
   110         {
       
   111         // Close resource loader.
       
   112         iResourceLoader.Close();
       
   113         
       
   114 #ifndef RD_PHONE_NG
       
   115         // Release PhoneAppEngine resources.
       
   116         iResourceLoaderPhoneApE.Close();
       
   117 #endif
       
   118         }
       
   119     
       
   120     // Delete the menubuffer.
       
   121     delete iBuf;
       
   122     iBuf = NULL;
       
   123 
       
   124     // Frees the TLS! Must be done after FeatureManager is used.
       
   125     FeatureManager::UnInitializeLib();
       
   126     }
       
   127 
       
   128 
       
   129 // -----------------------------------------------------------------------------
       
   130 // CCaUiEngine::GetResources
       
   131 // 
       
   132 // 
       
   133 // -----------------------------------------------------------------------------
       
   134 //
       
   135 void CCaUiEngine::GetResources(
       
   136     const TCaUiEngResource aResource,
       
   137     TFileName& aResFile,
       
   138     TInt& aResId )
       
   139     {
       
   140     aResFile = KCallUIResFile;
       
   141     if ( aResource == ECaUiResOnlyInternet )
       
   142         {
       
   143         aResId = 0;
       
   144         }
       
   145     else
       
   146         {
       
   147         // Return pure voice menu item.
       
   148         aResId = R_CALLUI_CALL_MENU;
       
   149         }
       
   150     }
       
   151 
       
   152 // -----------------------------------------------------------------------------
       
   153 // CCaUiEngine::DialL
       
   154 // 
       
   155 // 
       
   156 // -----------------------------------------------------------------------------
       
   157 //
       
   158 void CCaUiEngine::DialL(
       
   159     MCaUiDialResultObserver& aObserver,
       
   160     const TDesC8& aDialData,
       
   161     const TCaUiCallType aCallType )
       
   162     {
       
   163     TInt length = aDialData.Length();
       
   164    
       
   165     // If iPhCltDialer and iDialDataContainer exist, 
       
   166     // destroy them and create new ones. This clears the dial data.
       
   167     ClearDialContents();
       
   168     iPhCltDialer = CPhCltExtPhoneBase::NewL( this );
       
   169     iObserver = &aObserver;
       
   170     
       
   171     iDialData = CPhCltExtPhoneDialData::NewL();
       
   172     CAiwInternalDialData* aiwDialData = CAiwInternalDialData::NewLC( aDialData );
       
   173 
       
   174     // Convert AIW dial data to PhoneClient format.
       
   175    
       
   176     ConvertDialDataL( *aiwDialData );
       
   177 
       
   178     iDialData->SetCallType( EPhCltVoice );
       
   179     
       
   180     //a call type is still unknown if the dialing is made via phonebook
       
   181     //send key (doesn't use HandleMenuCmdL, check the call type in 
       
   182     //aiwDialData to make sure if unknown is really unknown
       
   183     //only do if call type unknown
       
   184     TCaUiCallType callType = aCallType;
       
   185     if ( callType == ECaUiCallTypeUnknown )
       
   186         {
       
   187         CAiwDialData::TCallType aiwCalltype = aiwDialData->CallType();
       
   188         
       
   189         switch ( aiwCalltype )
       
   190            {
       
   191            case CAiwDialData::EAIWVoice:
       
   192                 callType = ECaUiCallTypeVoice;
       
   193                 break;
       
   194             case CAiwDialData::EAIWVideo:
       
   195             case CAiwDialData::EAIWForcedVideo:
       
   196                 callType = ECaUiCallTypeVideo;
       
   197                 break;
       
   198             case CAiwDialData::EAIWVoiP:
       
   199                 callType = ECaUiCallTypeInternet;
       
   200                 break;
       
   201             default:
       
   202                 //already unknown
       
   203                 break;
       
   204             }
       
   205         }
       
   206         
       
   207     //aiwDialData not needed anymore, remove from stack
       
   208     CleanupStack::PopAndDestroy( aiwDialData );
       
   209 
       
   210     // If Contact link is provided fetch field link from Phone Book.
       
   211     if ( iDialData->ContactLink() != KNullDesC8() )
       
   212         {
       
   213         // Launch address select.
       
   214         // aCallType describes which selector is used. ( VoIP/PhoneNumber )
       
   215         LaunchAddressSelectL( 
       
   216                         iDialData->ContactLink(), 
       
   217                         callType );
       
   218         }
       
   219     
       
   220 
       
   221     else 
       
   222         {
       
   223         iPhCltDialer->DialL( *iDialData );
       
   224         }
       
   225     }
       
   226 
       
   227 
       
   228 // -----------------------------------------------------------------------------
       
   229 // CCaUiEngine::LaunchNoNetSupNoteL
       
   230 // 
       
   231 // 
       
   232 // -----------------------------------------------------------------------------
       
   233 //
       
   234 void CCaUiEngine::LaunchNoNetSupNoteL()
       
   235     {
       
   236     User::Leave( KErrNotSupported );
       
   237     }
       
   238 
       
   239 
       
   240 
       
   241 // -----------------------------------------------------------------------------
       
   242 // CCaUiEngine::LaunchReconConfQueryL
       
   243 // 
       
   244 // 
       
   245 // -----------------------------------------------------------------------------
       
   246 //
       
   247 void CCaUiEngine::LaunchReconConfQueryL( 
       
   248     MCaUiReconnectQueryObserver& /*aObserver*/,
       
   249     CPhCntMatcher* /*aPhCntMatcher*/,
       
   250     const TPtrC /*aPhoneNumber*/,
       
   251     const TBool /*aIncludeVideoCallOption*/ )
       
   252     {
       
   253     User::Leave( KErrNotSupported );
       
   254     }
       
   255 
       
   256 
       
   257 // -----------------------------------------------------------------------------
       
   258 // CCaUiEngine::CancelReconConfQuery
       
   259 // 
       
   260 // 
       
   261 // -----------------------------------------------------------------------------
       
   262 //
       
   263 void CCaUiEngine::CancelReconConfQuery()
       
   264     {
       
   265     }
       
   266 
       
   267 
       
   268 // -----------------------------------------------------------------------------
       
   269 // CCaUiEngine::LaunchNoteAndReconConfQueryL
       
   270 // 
       
   271 // 
       
   272 // -----------------------------------------------------------------------------
       
   273 //
       
   274 void CCaUiEngine::LaunchNoteAndReconConfQueryL( 
       
   275     MCaUiReconnectQueryObserver& /*aObserver*/,
       
   276     CPhCntMatcher* /*aPhCntMatcher*/,
       
   277     const TPtrC /*aPhoneNumber*/,
       
   278     const TBool /*aIncludeVideoCallOption*/,
       
   279     const TPtrC /*aNoteText*/ )
       
   280     {
       
   281     User::Leave( KErrNotSupported );
       
   282     }
       
   283 
       
   284 
       
   285 // -----------------------------------------------------------------------------
       
   286 // CCaUiEngine::CancelNoteAndReconConfQuery
       
   287 // 
       
   288 // 
       
   289 // -----------------------------------------------------------------------------
       
   290 //
       
   291 void CCaUiEngine::CancelNoteAndReconConfQuery()
       
   292     {
       
   293     }
       
   294 
       
   295 
       
   296 // -----------------------------------------------------------------------------
       
   297 // CCaUiEngine::LaunchAddressSelectL
       
   298 // 
       
   299 // 
       
   300 // -----------------------------------------------------------------------------
       
   301 //
       
   302 TBool CCaUiEngine::LaunchAddressSelectL( 
       
   303     TDes& aTelNum, 
       
   304     const TInt aContactId,
       
   305     const TBool aVoIPAddressSelect )
       
   306     {
       
   307     if ( aVoIPAddressSelect )
       
   308         {
       
   309         User::Leave( KErrNotSupported );
       
   310         }
       
   311 
       
   312     TBool addressSelected( EFalse );
       
   313     TCaUiCallType callType( ECaUiCallTypeVoice );
       
   314     
       
   315     addressSelected = LaunchAddressSelectL( aTelNum, aContactId, callType );
       
   316 
       
   317     return addressSelected;
       
   318     }
       
   319 
       
   320 
       
   321 // -----------------------------------------------------------------------------
       
   322 // CCaUiEngine::CancelAddressSelect
       
   323 // 
       
   324 // 
       
   325 // -----------------------------------------------------------------------------
       
   326 //
       
   327 void CCaUiEngine::CancelAddressSelect()
       
   328     {
       
   329     }
       
   330 
       
   331 // -----------------------------------------------------------------------------
       
   332 // From MPhCntStoreLoaderObserver.
       
   333 // CCaUiEngine::ContactStoreLoadingCompleted
       
   334 // -----------------------------------------------------------------------------
       
   335 //
       
   336 void CCaUiEngine::ContactStoreLoadingCompleted( 
       
   337         MVPbkContactStore* /*aStore*/, TInt /*aErrorCode*/ )
       
   338     {
       
   339     }
       
   340 
       
   341 
       
   342 // -----------------------------------------------------------------------------
       
   343 // CCaUiEngine::HandleDialL
       
   344 // 
       
   345 // 
       
   346 // -----------------------------------------------------------------------------
       
   347 //
       
   348 void CCaUiEngine::HandleDialL( const TInt aStatus )
       
   349     {
       
   350     if ( iObserver )
       
   351         {
       
   352         iObserver->HandleDialResultL( aStatus );
       
   353         }
       
   354     
       
   355     ClearDialContents();
       
   356     }
       
   357     
       
   358 // -----------------------------------------------------------------------------
       
   359 // From base class MCaUiReconnectQueryObserver
       
   360 // -----------------------------------------------------------------------------
       
   361 //   
       
   362 void CCaUiEngine::OptionSelected( 
       
   363     MCaUiReconnectQueryObserver::TCaUiReconType /*aReconType*/ )
       
   364     {
       
   365     }
       
   366 
       
   367 // -----------------------------------------------------------------------------
       
   368 // CCaUiEngine::ConvertDialData
       
   369 // 
       
   370 // 
       
   371 // -----------------------------------------------------------------------------
       
   372 //
       
   373 void CCaUiEngine::ConvertDialDataL(
       
   374     const CAiwInternalDialData& aAiwDialData )
       
   375     {
       
   376     // Telephony number.
       
   377     iDialData->SetTelephoneNumber( aAiwDialData.PhoneNumber().Left( 
       
   378         iDialData->TelephoneNumber().MaxLength() ) );
       
   379 
       
   380     // Call type.
       
   381     CAiwDialData::TCallType aiwCallType = aAiwDialData.CallType();
       
   382     TPhCltCallType phCltCallType = EPhCltVoice;
       
   383 
       
   384     // After this the call type should be correct one.
       
   385     if ( aiwCallType == CAiwDialData::EAIWVideo )
       
   386         {
       
   387         phCltCallType = EPhCltVideo;
       
   388         iDialData->SetCallType( phCltCallType );
       
   389         }
       
   390     else if ( aiwCallType == CAiwDialData::EAIWForcedVideo )
       
   391         {
       
   392         phCltCallType = EPhCltForcedVideo;
       
   393         iDialData->SetCallType( phCltCallType );
       
   394         }
       
   395     else if ( aiwCallType == CAiwDialData::EAIWVoiP )
       
   396         {
       
   397         phCltCallType = EPhCltCallVoIP;
       
   398         iDialData->SetCallType( phCltCallType );
       
   399         }
       
   400 
       
   401      // Name.
       
   402     iDialData->SetNameL( aAiwDialData.Name().Left( 
       
   403         iDialData->Name().MaxLength() ) );
       
   404 
       
   405     // Contact link.
       
   406     iDialData->SetContactLinkL( aAiwDialData.ContactLink() );
       
   407 
       
   408     // Window group.
       
   409     iDialData->SetWindowGroup( aAiwDialData.WindowGroup() );
       
   410 
       
   411     // Redial.
       
   412     iDialData->SetRedial( aAiwDialData.Redial() );
       
   413     
       
   414     // Redial maximum duration.
       
   415     iDialData->SetRedialMaximumDuration( aAiwDialData.RedialMaximumDuration() );
       
   416 
       
   417     // Show number.
       
   418     iDialData->SetShowNumber( aAiwDialData.ShowNumber() );
       
   419 
       
   420     // Match.
       
   421     iDialData->SetAllowMatch( aAiwDialData.AllowMatch() );
       
   422 
       
   423     // End other calls.
       
   424     iDialData->SetEndOtherCalls( aAiwDialData.EndOtherCalls() );
       
   425 
       
   426     // Subaddress.
       
   427     iDialData->SetSubAddressL( aAiwDialData.SubAddress().Left( 
       
   428         iDialData->SubAddress().MaxLength() ) );
       
   429 
       
   430     // SAT call.
       
   431     iDialData->SetSATCall( aAiwDialData.SATCall() );
       
   432 
       
   433     // Bearer.
       
   434     iDialData->SetBearerL( aAiwDialData.Bearer().Left( 
       
   435         iDialData->Bearer().MaxLength() ) );
       
   436 
       
   437     TPhCltTelephoneNumber telnum;
       
   438     telnum.Zero();
       
   439     telnum = iDialData->TelephoneNumber();
       
   440     PhCltUtils::RemoveInvalidChars( telnum );
       
   441     iDialData->SetTelephoneNumber( telnum );
       
   442 
       
   443     }
       
   444 
       
   445 // -----------------------------------------------------------------------------
       
   446 // CCaUiEngine::ClearDialContents
       
   447 // 
       
   448 // 
       
   449 // -----------------------------------------------------------------------------
       
   450 //
       
   451 void CCaUiEngine::ClearDialContents()
       
   452     {
       
   453     if ( iPhCltDialer )
       
   454         {
       
   455         delete iPhCltDialer;
       
   456         iPhCltDialer = NULL;
       
   457         }
       
   458 
       
   459     if ( iDialData )
       
   460         {
       
   461         delete iDialData;
       
   462         iDialData = NULL;
       
   463         }
       
   464 
       
   465     // Not owned, so just set to NULL.
       
   466     iObserver = NULL;
       
   467     }
       
   468 
       
   469 // -----------------------------------------------------------------------------
       
   470 // CCaUiEngine::LaunchAddressSelectL
       
   471 // 
       
   472 // 
       
   473 // -----------------------------------------------------------------------------
       
   474 //
       
   475 void CCaUiEngine::LaunchAddressSelectL( 
       
   476     const TDesC8& aContactLink,
       
   477     const TCaUiCallType aCallType )
       
   478     {
       
   479     if ( aCallType != ECaUiCallTypeVoice )
       
   480         {
       
   481         HandleDialL( KErrNotSupported );
       
   482         }
       
   483     
       
   484     else
       
   485         {
       
   486         if ( !iFactory )
       
   487             {
       
   488             iFactory = CreateCntFactoryL();
       
   489             }
       
   490         if ( !iContactSelector ) 
       
   491             {
       
   492             iContactSelector = iFactory->CreateContactDataSelectionL();
       
   493             }
       
   494             
       
   495         CPhCntContactDataSelection::TCallType callType;
       
   496         
       
   497         if ( aCallType == ECaUiCallTypeVoice )
       
   498             {
       
   499             callType = CPhCntContactDataSelection::ECallPhoneNumber;
       
   500             }
       
   501         else if ( aCallType == ECaUiCallTypeVideo )
       
   502             {
       
   503             callType = CPhCntContactDataSelection::ECallVideoNumber;
       
   504             }
       
   505         else if ( aCallType == ECaUiCallTypeInternet )
       
   506             {
       
   507             callType = CPhCntContactDataSelection::ECallVoip;
       
   508             }
       
   509         else
       
   510             {
       
   511             callType = CPhCntContactDataSelection::ECallPhoneNumber;
       
   512             }
       
   513             
       
   514         iContactSelector->Cancel();
       
   515         iContactSelector->SelectPhoneNumberForCallL( aContactLink, callType, *this );
       
   516  
       
   517         }
       
   518      
       
   519     }
       
   520 
       
   521 // ---------------------------------------------------------
       
   522 //  CCaUiEngine::HandleEmergencyDialL()
       
   523 // ---------------------------------------------------------
       
   524 //    
       
   525 void CCaUiEngine::HandleEmergencyDialL( const TInt /*aStatus*/ )
       
   526     {
       
   527     // Do nothing
       
   528     }
       
   529 
       
   530 // ---------------------------------------------------------
       
   531 //  CCaUiEngine::SelectionDone()
       
   532 // ---------------------------------------------------------
       
   533 //     
       
   534 void CCaUiEngine::SelectionDone( CPhCntSelectedData* aContactData, 
       
   535                                   TInt aErrorCode )
       
   536     {
       
   537     if ( aErrorCode == KErrNone )
       
   538         {
       
   539         TPhCltTelephoneNumber phoneNumber;
       
   540         HBufC8* fieldLink = NULL;
       
   541         
       
   542         if ( iDialData->TelephoneNumber() == KNullDesC )
       
   543             {
       
   544             phoneNumber = aContactData->Data();
       
   545             PhCltUtils::RemoveInvalidChars( phoneNumber );
       
   546             iDialData->SetTelephoneNumber( phoneNumber );
       
   547             }
       
   548         if ( aContactData->FieldLink().Length() > 0 )
       
   549             {
       
   550             fieldLink = aContactData->FieldLink().Alloc();
       
   551             }
       
   552         
       
   553         TRAP( aErrorCode, PhoneClientDialL( fieldLink ) );
       
   554       
       
   555         delete fieldLink;
       
   556         fieldLink = NULL;
       
   557         }
       
   558         
       
   559     if ( aErrorCode != KErrNone )
       
   560         {
       
   561         TRAP_IGNORE( HandleDialL( aErrorCode ) );
       
   562         }            
       
   563     }
       
   564     
       
   565 // ---------------------------------------------------------
       
   566 //  CCaUiEngine::PhoneClientDialL()
       
   567 // ---------------------------------------------------------
       
   568 // 
       
   569 void CCaUiEngine::PhoneClientDialL( const TDesC8* aFieldLink )
       
   570     {
       
   571     
       
   572     TBool createCall( ETrue );
       
   573     TInt error( KErrNone );
       
   574     
       
   575     if ( aFieldLink )
       
   576         {
       
   577         iDialData->SetContactLinkL( *aFieldLink );
       
   578         }
       
   579     
       
   580     // Check if number is emergency number and if it is 
       
   581     // then call emeregency call
       
   582     if ( !iEmergencyCall )
       
   583         {
       
   584         iEmergencyCall = CPhCltEmergencyCall::NewL( this );
       
   585         }
       
   586     if ( IsEmergencyNumber() )
       
   587         {
       
   588         createCall = EFalse;
       
   589         if ( aFieldLink )
       
   590             {
       
   591             error = KErrNone;
       
   592             iEmergencyCall->DialEmergencyCallL( iDialData->TelephoneNumber() );
       
   593             }
       
   594         else
       
   595             {
       
   596             error = KErrNotSupported;
       
   597             }
       
   598         }
       
   599     
       
   600     // Here note launch + query if this is video call and we
       
   601     // are not in 3G network.
       
   602    
       
   603     if ( createCall )
       
   604         {
       
   605         if ( ( iDialData->CallType() == EPhCltVideo ) ||
       
   606              ( iDialData->CallType() == EPhCltForcedVideo ) ||
       
   607              ( iDialData->CallType() == EPhCltCallVoIP ) )
       
   608             {
       
   609                 createCall = EFalse;
       
   610                 error = KErrNotSupported;
       
   611             }
       
   612             
       
   613         }
       
   614     if ( createCall )
       
   615         {
       
   616         iPhCltDialer->DialL( *iDialData );
       
   617         }
       
   618     else 
       
   619         {        
       
   620         //User cancelled. Need to inform client.
       
   621         if ( error != KErrNone ) // Emergency call does not need to inform client. 
       
   622             {
       
   623             HandleDialL( error );
       
   624             }
       
   625          }
       
   626     }
       
   627 
       
   628 // ---------------------------------------------------------
       
   629 //  CCaUiEngine::IsEmergencyNumber()
       
   630 // ---------------------------------------------------------
       
   631 //
       
   632 TBool CCaUiEngine::IsEmergencyNumber()
       
   633     {
       
   634     TBool isEmergencyNumber( EFalse );
       
   635     
       
   636     // get phonenumber from iDialData and heck number using phoneclient
       
   637     // emergencycall api
       
   638     TInt result = iEmergencyCall->IsEmergencyPhoneNumber(
       
   639         iDialData->TelephoneNumber(), 
       
   640         isEmergencyNumber );
       
   641    
       
   642     return isEmergencyNumber;
       
   643     }
       
   644 
       
   645 // -----------------------------------------------------------------------------
       
   646 // CCaUiEngine::IsVoIPProfiles()
       
   647 // 
       
   648 // 
       
   649 // -----------------------------------------------------------------------------
       
   650 //
       
   651 TBool CCaUiEngine::IsVoIPProfiles()
       
   652     {  
       
   653     return EFalse; 
       
   654     }
       
   655 
       
   656 // End of file