diff -r 22e202702210 -r 1bebd60c0f00 filemanager/src/filemanager/src/fmdriverlistwidget.cpp --- a/filemanager/src/filemanager/src/fmdriverlistwidget.cpp Fri Sep 17 08:27:42 2010 +0300 +++ b/filemanager/src/filemanager/src/fmdriverlistwidget.cpp Mon Oct 04 00:06:46 2010 +0300 @@ -248,7 +248,7 @@ FmDriverInfo driverInfo = FmUtils::queryDriverInfo( diskName ); if ( state & FmDriverInfo::EDriveWriteProtected ){ - FmDlgUtils::information( hbTrId( "Unable to perform operation. Memory card is read only." ) ); + FmDlgUtils::warning( hbTrId( "Unable to perform operation. Memory card is read only." ) ); return; } @@ -267,13 +267,13 @@ } int err = FmUtils::renameDrive( diskName, volumeName ); if ( err == FmErrNone ) { - FmDlgUtils::information( hbTrId( "The name has been changed!" ) ); + FmDlgUtils::information( hbTrId( "The name has been changed!" ), HbMessageBox::Ok, true ); mModel->refresh(); break; } else if( err == FmErrBadName ) { - FmDlgUtils::information( hbTrId( "Illegal characters! Use only letters and numbers." ) ); + FmDlgUtils::warning( hbTrId( "Illegal characters! Use only letters and numbers." ), HbMessageBox::Ok, true ); } else{ - FmDlgUtils::information( hbTrId( "Error occurred, operation cancelled!" ) ); + FmDlgUtils::warning( hbTrId( "Error occurred, operation cancelled!" ) ); break; } } @@ -299,10 +299,10 @@ QString associatedDrives( FmUtils::getDriveLetterFromPath( diskName ) ); if( FmDlgUtils::showMultiPasswordQuery( firstLabel, secondLabel, newPwd, FmMaxLengthofDrivePassword, associatedDrives ) ) { if ( FmUtils::setDrivePwd( diskName, oldPwd, newPwd ) == 0 ){ - FmDlgUtils::information( hbTrId( "The password has been set!" ) ); + FmDlgUtils::information( hbTrId( "The password has been set!" ), HbMessageBox::Ok, true ); } else{ - FmDlgUtils::information( hbTrId( "Error occurred, operation cancelled!" ) ); + FmDlgUtils::warning( hbTrId( "Error occurred, operation cancelled!" ) ); } } } @@ -325,7 +325,7 @@ if ( FmUtils::setDrivePwd( diskName, oldPwd, newPwd ) == 0 ){ FmDlgUtils::information( hbTrId( "The password has been changed!" ) ); } else { - FmDlgUtils::information( hbTrId( "Error occurred, operation cancelled!" ) ); + FmDlgUtils::warning( hbTrId( "Error occurred, operation cancelled!" ) ); } break; } else { @@ -354,12 +354,12 @@ FmDlgUtils::information( hbTrId( "The password has been removed!" ) ); } else{ - FmDlgUtils::information( hbTrId( "Error occurred, operation cancelled!" ) ); + FmDlgUtils::warning( hbTrId( "Error occurred, operation cancelled!" ) ); } break; } else { - FmDlgUtils::information( hbTrId( "The password is incorrect, try again!" ) ); + FmDlgUtils::warning( hbTrId( "The password is incorrect, try again!" ), HbMessageBox::Ok, true ); } } @@ -378,18 +378,18 @@ while( FmDlgUtils::showSinglePasswordQuery( title, oldPwd, FmMaxLengthofDrivePassword ) ) { int err = FmUtils::unlockDrive( diskName, oldPwd ); if( err == FmErrNone ) { - FmDlgUtils::information( hbTrId( "The memory is unlocked!" ) ); + FmDlgUtils::warning( hbTrId( "The memory is unlocked!" ) ); break; } else if ( err == FmErrAccessDenied ) { - FmDlgUtils::information( hbTrId( "The password is incorrect, try again!" ) ); + FmDlgUtils::warning( hbTrId( "The password is incorrect, try again!" ), HbMessageBox::Ok, true ); } else if (err == FmErrAlreadyExists ) { FmDlgUtils::information( hbTrId( "The disk has already been unlocked!" ) ); break; } else if( err == FmErrNotSupported ) { - FmDlgUtils::information( hbTrId( "The media does not support password locking!" ) ); + FmDlgUtils::warning( hbTrId( "The media does not support password locking!" ) ); break; } else { - FmDlgUtils::information( hbTrId( "Error occurred, operation cancelled!" ) ); + FmDlgUtils::warning( hbTrId( "Error occurred, operation cancelled!" ) ); break; } }