--- 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 <StringLoader.h>
-#include <utf.h>
// 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<KDefaultRealWidth> freqText;
- freqText.AppendNum( static_cast<TReal>( 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<KDefaultRealWidth> freqText;
- freqText.AppendNum( static_cast<TReal>( 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 );
- }
- }
-