profilesservices/ProfileEngine/WrapperSrc/CProEngToneHandler.cpp
changeset 18 e3554c9069b6
parent 0 8c5d936e5675
child 54 7e0eff37aedb
child 61 33e86ecbfdb4
child 68 13e71d907dc3
--- a/profilesservices/ProfileEngine/WrapperSrc/CProEngToneHandler.cpp	Tue Feb 02 00:22:03 2010 +0200
+++ b/profilesservices/ProfileEngine/WrapperSrc/CProEngToneHandler.cpp	Fri Mar 19 09:34:30 2010 +0200
@@ -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 );
     }