1
//This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
3
// AcetoneISO2 is free software: you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation, either version 3 of the License, or
6
// (at your option) any later version.
8
// AcetoneISO2 is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU General Public License for more details.
13
// You should have received a copy of the GNU General Public License
14
// along with AcetoneISO2. If not, see <http://www.gnu.org/licenses/>.
17
void acetoneiso::umountcheck()
19
/*//mi prendo i tre numeri tipo 0,1,0 che ci dice la periferica
20
QString device = deviceID();
21
if( device.isEmpty( ) ) {
22
QMessageBox::critical(this, "AcetoneISO2",tr("Unable to unmount the CD/DVD device.\nPlease insert an empty CD/DVD media in device.") );
26
//QMessageBox::warning(this, "AcetoneISO2::Warning!", device);
27
UCheck.start("umount",QStringList() << device );
33
void acetoneiso::printOutucheck(int, QProcess::ExitStatus)
35
int valore_uscita = UCheck.exitCode();
36
if(valore_uscita == 1)
37
QMessageBox::critical(this, "AcetoneISO2",tr("Unable to unmount the CD/DVD device.\nBe sure there is no process that is locking the device.\nPlease click on Cancel button in the next dialog.") );