diff -r 40a3f856b14d -r 41a7f70b3818 phoneengine/audiohandling/src/cpeaudioinbandtoneplayer.cpp --- a/phoneengine/audiohandling/src/cpeaudioinbandtoneplayer.cpp Thu Aug 19 09:54:27 2010 +0300 +++ b/phoneengine/audiohandling/src/cpeaudioinbandtoneplayer.cpp Tue Aug 31 15:14:29 2010 +0300 @@ -22,12 +22,12 @@ #include "cpeaudioinbandtoneplayer.h" #include "cpeaudiofactory.h" #include "cpeaudiotoneutility.h" -#include +#include #include #include #include -#include -#include +#include +#include #include #include @@ -149,9 +149,10 @@ HBufC8* resourceRadioPath = resourceFile.AllocReadL( R_NET_RADIO_NOT_AVAILABLE ); HBufC8* resourceRingGoing = resourceFile.AllocReadL( R_NET_RING_GOING ); + HBufC8* resourceCallWaiting; - - if ( FeatureManager::FeatureSupported( KFeatureIdFfAlternativeCallWaitingTone ) ) + + if ( CFeatureDiscovery::IsFeatureSupportedL( KFeatureIdFfAlternativeCallWaitingTone ) ) { resourceCallWaiting = resourceFile.AllocReadL( R_NET_CALL_WAITING_ALTERNATIVE_TONE ); } @@ -159,7 +160,8 @@ { 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 ); @@ -364,7 +366,7 @@ TEFLOGSTRING2( KTAINT, "AUD CPEAudioInbandTonePlayer::PlayInbandTone: No InbandTone defined to play with: %d", aTone ); __ASSERT_DEBUG( EFalse, Panic( EPEPanicNotCompleted ) ); break; - } + } } // ----------------------------------------------------------------------------- @@ -425,7 +427,7 @@ break; case ECCPToneRadioPathNotAvailable: iCurrent->SetRepeats( - KPhoneInbandToneRepeatOnce, + KPhoneInbandToneRepeatOnce, TTimeIntervalMicroSeconds( KPhoneInbandToneZero ) ); iCurrent->SetPriority( KAudioPriorityNetMsg, @@ -465,7 +467,7 @@ break; case ECCPCallWaiting: iCurrent->SetRepeats( - KPhoneInbandToneNoRepeat, + KPhoneInbandToneNoRepeat, TTimeIntervalMicroSeconds( KPhoneInbandToneZero ) ); iCurrent->SetPriority( KAudioPriorityNetMsg, @@ -493,7 +495,7 @@ if ( iRingingType == EProfileRingingTypeRingingOnce ) { iCurrent->SetRepeats( - KPhoneInbandToneNoRepeat, + KPhoneInbandToneNoRepeat, TTimeIntervalMicroSeconds( KPhoneInbandToneZero ) ); } break; @@ -506,8 +508,8 @@ KAudioPriorityPhoneCall, static_cast < TMdaPriorityPreference > ( KAudioPrefIncomingCall ) ); iCurrent->SetRepeats( - KPhoneInbandToneNoRepeat, - TTimeIntervalMicroSeconds( KPhoneInbandToneZero ) ); + KPhoneInbandToneNoRepeat, + TTimeIntervalMicroSeconds( KPhoneInbandToneZero ) ); iCurrent->SetVolumeRamp( TTimeIntervalMicroSeconds( KPhoneInbandToneZero ) ); break; default: