profilesservices/ProfileEngine/WrapperSrc/CProEngToneHandler.cpp
branchRCL_3
changeset 24 8ee96d21d9bf
parent 0 8c5d936e5675
child 25 7e0eff37aedb
--- a/profilesservices/ProfileEngine/WrapperSrc/CProEngToneHandler.cpp	Thu Aug 19 10:12:30 2010 +0300
+++ b/profilesservices/ProfileEngine/WrapperSrc/CProEngToneHandler.cpp	Tue Aug 31 15:29:50 2010 +0300
@@ -19,12 +19,11 @@
 
 // INCLUDE FILES
 #include    "CProEngToneHandler.h"
+#include    "CProEngMediaVariation.h"
 #include    <bautils.h> // BaflUtils
-#include    <AknGlobalNote.h> // CAknGlobalNote
 #include    <barsread.h>  // TResourceReader
 #include    <barsc.h>  // RResourceFile
 #include    <e32const.h> // KKilo
-#include    "CProEngMediaVariation.h"
 #include 	<centralrepository.h>
 #include    <ProfileEngineDomainCRKeys.h> // KProEngRingingToneMaxSize
 #include    <ProfileEng.hrh>
@@ -210,29 +209,8 @@
 // CProEngToneHandler::ShowErrorNoteL
 // -----------------------------------------------------------------------------
 //
-void CProEngToneHandler::ShowErrorNoteL( TInt aResourceId )
+void CProEngToneHandler::ShowErrorNoteL( TInt /*aResourceId*/ )
     {
-	TParse* fp = new(ELeave) TParse();
-	fp->Set(KProEngResourceFileName, &KDC_RESOURCE_FILES_DIR, NULL);
-	TFileName localizedFileName( fp->FullName() );
-	delete fp;
-
-    BaflUtils::NearestLanguageFile( iFs, localizedFileName );
-
-    RResourceFile resourceFile;
-    resourceFile.OpenL( iFs, localizedFileName );
-    CleanupClosePushL( resourceFile );
-    resourceFile.ConfirmSignatureL();
-
-    HBufC8* resBuf = resourceFile.AllocReadLC( aResourceId );
-    TResourceReader reader;
-    reader.SetBuffer( resBuf );
-    TPtrC errorText( reader.ReadTPtrC() );
-
-    CAknGlobalNote* note = CAknGlobalNote::NewLC();
-    note->ShowNoteL( EAknGlobalInformationNote, errorText );
-
-	CleanupStack::PopAndDestroy( 3, &resourceFile );
     }