phoneengine/audiohandling/src/cpeaudioinbandtoneplayer.cpp
branchRCL_3
changeset 14 24062c24fe38
parent 0 5f000ab63145
child 61 41a7f70b3818
--- a/phoneengine/audiohandling/src/cpeaudioinbandtoneplayer.cpp	Fri Feb 19 22:50:26 2010 +0200
+++ b/phoneengine/audiohandling/src/cpeaudioinbandtoneplayer.cpp	Fri Mar 12 15:42:40 2010 +0200
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies). 
+* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). 
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -27,6 +27,7 @@
 #include    <barsread.h>
 #include    <data_caging_path_literals.hrh> 
 #include    <defaultbeep.rsg>           
+#include    <featmgr.h>
 #include    <pepanic.pan>
 #include    <talogger.h>    
 
@@ -147,7 +148,18 @@
     HBufC8* resourceSpecial = resourceFile.AllocReadL( R_NET_SPECIAL_INFORMATION );
     HBufC8* resourceRadioPath = resourceFile.AllocReadL( R_NET_RADIO_NOT_AVAILABLE );
     HBufC8* resourceRingGoing = resourceFile.AllocReadL( R_NET_RING_GOING );
-    HBufC8* resourceCallWaiting = resourceFile.AllocReadL( R_NET_CALL_WAITING );
+    
+    HBufC8* resourceCallWaiting;
+    
+    if ( FeatureManager::FeatureSupported( KFeatureIdFfAlternativeCallWaitingTone ) )
+        {
+        resourceCallWaiting = resourceFile.AllocReadL( R_NET_CALL_WAITING_ALTERNATIVE_TONE );
+        }
+    else
+        {
+        resourceCallWaiting = resourceFile.AllocReadL( R_NET_CALL_WAITING );
+        }  
+        
     HBufC8* dataCallTone = resourceFile.AllocReadL( R_DATA_CALL_TONE );
     HBufC8* noSoundSequence = resourceFile.AllocReadL( R_NO_SOUND_SEQUENCE );
     HBufC8* beepSequence = resourceFile.AllocReadL( R_BEEP_SEQUENCE );