phoneengine/audiohandling/src/cpeaudioinbandtoneplayer.cpp
branchRCL_3
changeset 14 24062c24fe38
parent 0 5f000ab63145
child 61 41a7f70b3818
equal deleted inserted replaced
9:8871b09be73b 14:24062c24fe38
     1 /*
     1 /*
     2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    25 #include    <AudioPreference.h> 
    25 #include    <AudioPreference.h> 
    26 #include    <barsc.h> 
    26 #include    <barsc.h> 
    27 #include    <barsread.h>
    27 #include    <barsread.h>
    28 #include    <data_caging_path_literals.hrh> 
    28 #include    <data_caging_path_literals.hrh> 
    29 #include    <defaultbeep.rsg>           
    29 #include    <defaultbeep.rsg>           
       
    30 #include    <featmgr.h>
    30 #include    <pepanic.pan>
    31 #include    <pepanic.pan>
    31 #include    <talogger.h>    
    32 #include    <talogger.h>    
    32 
    33 
    33 
    34 
    34 // EXTERNAL DATA STRUCTURES
    35 // EXTERNAL DATA STRUCTURES
   145     HBufC8* resourceReorder = resourceFile.AllocReadL( R_NET_REORDER );
   146     HBufC8* resourceReorder = resourceFile.AllocReadL( R_NET_REORDER );
   146     HBufC8* resourceCongestion = resourceFile.AllocReadL( R_NET_CONGESTION );
   147     HBufC8* resourceCongestion = resourceFile.AllocReadL( R_NET_CONGESTION );
   147     HBufC8* resourceSpecial = resourceFile.AllocReadL( R_NET_SPECIAL_INFORMATION );
   148     HBufC8* resourceSpecial = resourceFile.AllocReadL( R_NET_SPECIAL_INFORMATION );
   148     HBufC8* resourceRadioPath = resourceFile.AllocReadL( R_NET_RADIO_NOT_AVAILABLE );
   149     HBufC8* resourceRadioPath = resourceFile.AllocReadL( R_NET_RADIO_NOT_AVAILABLE );
   149     HBufC8* resourceRingGoing = resourceFile.AllocReadL( R_NET_RING_GOING );
   150     HBufC8* resourceRingGoing = resourceFile.AllocReadL( R_NET_RING_GOING );
   150     HBufC8* resourceCallWaiting = resourceFile.AllocReadL( R_NET_CALL_WAITING );
   151     
       
   152     HBufC8* resourceCallWaiting;
       
   153     
       
   154     if ( FeatureManager::FeatureSupported( KFeatureIdFfAlternativeCallWaitingTone ) )
       
   155         {
       
   156         resourceCallWaiting = resourceFile.AllocReadL( R_NET_CALL_WAITING_ALTERNATIVE_TONE );
       
   157         }
       
   158     else
       
   159         {
       
   160         resourceCallWaiting = resourceFile.AllocReadL( R_NET_CALL_WAITING );
       
   161         }  
       
   162         
   151     HBufC8* dataCallTone = resourceFile.AllocReadL( R_DATA_CALL_TONE );
   163     HBufC8* dataCallTone = resourceFile.AllocReadL( R_DATA_CALL_TONE );
   152     HBufC8* noSoundSequence = resourceFile.AllocReadL( R_NO_SOUND_SEQUENCE );
   164     HBufC8* noSoundSequence = resourceFile.AllocReadL( R_NO_SOUND_SEQUENCE );
   153     HBufC8* beepSequence = resourceFile.AllocReadL( R_BEEP_SEQUENCE );
   165     HBufC8* beepSequence = resourceFile.AllocReadL( R_BEEP_SEQUENCE );
   154     
   166     
   155     CleanupStack::PopAndDestroy( &resourceFile );
   167     CleanupStack::PopAndDestroy( &resourceFile );