phoneengine/audiohandling/src/cpeaudioinbandtoneplayer.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 21 92ab7f8d0eab
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
     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".
    24 #include    "cpeaudiotoneutility.h"
    24 #include    "cpeaudiotoneutility.h"
    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    <featdiscovery.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     
       
   153     HBufC8* resourceCallWaiting;
       
   154 
       
   155     if ( CFeatureDiscovery::IsFeatureSupportedL( KFeatureIdFfAlternativeCallWaitingTone ) )
       
   156         {
       
   157         resourceCallWaiting = resourceFile.AllocReadL( R_NET_CALL_WAITING_ALTERNATIVE_TONE );
       
   158         }
       
   159     else
       
   160         {
       
   161         resourceCallWaiting = resourceFile.AllocReadL( R_NET_CALL_WAITING );
       
   162         }  
       
   163     
       
   164     
   151     HBufC8* dataCallTone = resourceFile.AllocReadL( R_DATA_CALL_TONE );
   165     HBufC8* dataCallTone = resourceFile.AllocReadL( R_DATA_CALL_TONE );
   152     HBufC8* noSoundSequence = resourceFile.AllocReadL( R_NO_SOUND_SEQUENCE );
   166     HBufC8* noSoundSequence = resourceFile.AllocReadL( R_NO_SOUND_SEQUENCE );
   153     HBufC8* beepSequence = resourceFile.AllocReadL( R_BEEP_SEQUENCE );
   167     HBufC8* beepSequence = resourceFile.AllocReadL( R_BEEP_SEQUENCE );
   154     
   168     
   155     CleanupStack::PopAndDestroy( &resourceFile );
   169     CleanupStack::PopAndDestroy( &resourceFile );