~ubuntu-branches/ubuntu/saucy/acetoneiso/saucy

« back to all changes in this revision

Viewing changes to acetoneiso/sources/umount_check.h

  • Committer: Bazaar Package Importer
  • Author(s): Nick Andrik
  • Date: 2010-01-19 20:16:15 UTC
  • Revision ID: james.westby@ubuntu.com-20100119201615-bdokwbbqhn1fo1iq
Tags: upstream-2.2.1
ImportĀ upstreamĀ versionĀ 2.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//This file is part of AcetoneISO. Copyright 2006,2007,2008,2009 Marco Di Antonio and Fabrizio Di Marco (acetoneiso@gmail.com)
 
2
//
 
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.
 
7
//
 
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.
 
12
//
 
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/>.
 
15
 
 
16
 
 
17
void acetoneiso::umountcheck()
 
18
{
 
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.") );
 
23
}
 
24
else
 
25
{
 
26
//QMessageBox::warning(this, "AcetoneISO2::Warning!", device);
 
27
UCheck.start("umount",QStringList()   << device  );
 
28
}*/
 
29
}
 
30
 
 
31
 
 
32
 
 
33
void acetoneiso::printOutucheck(int, QProcess::ExitStatus)
 
34
        {
 
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.") );
 
38
        
 
39
        }
 
40
 
 
41
 
 
42