diff -r 11b6825f0862 -r 3a6b55c6390c radioengine/utils/src/radioengineutils.cpp --- a/radioengine/utils/src/radioengineutils.cpp Tue Jul 06 14:16:27 2010 +0300 +++ b/radioengine/utils/src/radioengineutils.cpp Wed Aug 18 09:49:03 2010 +0300 @@ -17,7 +17,6 @@ // System includes #include -#include // User includes #include "radioengineutils.h" @@ -59,56 +58,3 @@ { return CRadioEngineTls::Instance().FsSession(); } - -// --------------------------------------------------------------------------- -// Utility method for frequency formatting. -// Frequency is assumed to be in kilohertz format. -// --------------------------------------------------------------------------- -// -EXPORT_C HBufC* RadioEngineUtils::ReadFrequencyStringLC( TUint32 aFreq, - TInt aDecimalCount, - TInt aResourceId ) - { - TBuf freqText; - freqText.AppendNum( static_cast( aFreq ) / 1000.0f, TRealFormat( KDefaultRealWidth, aDecimalCount ) ); // Converts kilohertz to megahertz. - - // Converts the numbers to the proper display mode. - - HBufC* channelFreq = NULL; - - if ( aResourceId == KErrNotFound ) // No resource string. - { - channelFreq = freqText.AllocLC(); - } - else - { - channelFreq = StringLoader::LoadLC( aResourceId, freqText ); - } - - return channelFreq; - } - -// --------------------------------------------------------------------------- -// -// --------------------------------------------------------------------------- -// -EXPORT_C void RadioEngineUtils::FormatFrequencyString( TDes& aDest, - TUint32 aFreq, - TInt aDecimalCount, - TDesC& aFormat ) - { - TBuf freqText; - freqText.AppendNum( static_cast( aFreq ) / 1000.0f, TRealFormat( KDefaultRealWidth, aDecimalCount ) ); // Converts kilohertz to megahertz. - - // Converts the numbers to the proper display mode. - - if ( aFormat.Length() <= 0 || freqText.Length() > aDest.MaxLength() ) // No format. - { - aDest.Copy( freqText.Left( aDest.Length() ) ); - } - else - { - StringLoader::Format( aDest, aFormat, KErrNotFound, freqText ); - } - } -