diff -r af3740e3753f -r c5b304f4d89b mpviewplugins/mpplaybackviewplugin/src/mpplaybackview.cpp --- a/mpviewplugins/mpplaybackviewplugin/src/mpplaybackview.cpp Wed Aug 18 09:46:20 2010 +0300 +++ b/mpviewplugins/mpplaybackviewplugin/src/mpplaybackview.cpp Thu Sep 02 20:24:03 2010 +0300 @@ -24,6 +24,7 @@ #include #include #include +#include #include "mpplaybackview.h" #include "mpplaybackwidget.h" @@ -102,6 +103,7 @@ connect( mSoftKeyBack, SIGNAL( triggered() ), this, SLOT( back() ) ); mMpEngine = MpEngineFactory::sharedEngine(); + connect( mMpEngine, SIGNAL( corruptedStop() ), this, SLOT(showCorruptedNote() )); mPlaybackData = mMpEngine->playbackData(); connect( mPlaybackData, SIGNAL( playbackStateChanged() ), this, SLOT( playbackStateChanged() ) ); @@ -563,6 +565,19 @@ } /*! + Slot to be called to show corrupted message box. + */ +void MpPlaybackView::showCorruptedNote() +{ + mMpEngine->stop(); + HbMessageBox *messageBox = new HbMessageBox( hbTrId( "txt_mus_info_unable_to_play_selection" ), HbMessageBox::MessageTypeWarning ); + messageBox->setAttribute( Qt::WA_DeleteOnClose ); + messageBox->setIcon( HbIcon( QString("qtg_small_fail") ) ); + connect (messageBox, SIGNAL( aboutToClose() ), this, SLOT( back() ) ); + messageBox->show(); +} + +/*! Slot to be called to activate equalizer dialog. */ void MpPlaybackView::showEqualizerDialog()