diff -r 15bc28c9dd51 -r d58987eac7e8 filemanager/src/filemanager/src/components/fmmessagebox.cpp --- a/filemanager/src/filemanager/src/components/fmmessagebox.cpp Tue Aug 24 10:24:14 2010 +0800 +++ b/filemanager/src/filemanager/src/components/fmmessagebox.cpp Wed Sep 29 10:37:03 2010 +0800 @@ -23,11 +23,14 @@ This is a convenience function for showing an information dialog with \a informationText */ void FmMessageBox::information( const QString &informationText, - HbMessageBox::StandardButtons buttons ) -{ - HbMessageBox::information ( informationText, + HbMessageBox::StandardButtons buttons, bool isBlocking ) +{ + HbMessageBox::information( informationText, this, SLOT(dialogClosed(HbAction*)), buttons ); - mEventLoop.exec(); + if ( isBlocking ) { + mEventLoop.exec(); + } + } /*! @@ -36,12 +39,25 @@ bool FmMessageBox::question( const QString &questionText, HbMessageBox::StandardButtons buttons ) { - HbMessageBox::question ( questionText, + HbMessageBox::question( questionText, this, SLOT(dialogClosed(HbAction*)), buttons ); mEventLoop.exec(); return mRet; } +/*! + This is a convenience function for showing a warning dialog with \a warningText +*/ +void FmMessageBox::warning( const QString &warningText, + HbMessageBox::StandardButtons buttons, bool isBlocking ) +{ + HbMessageBox::warning( warningText, + this, SLOT(dialogClosed(HbAction*)), buttons ); + if ( isBlocking ) { + mEventLoop.exec(); + } +} + void FmMessageBox::dialogClosed(HbAction *action) { HbMessageBox *dlg = static_cast(sender());