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