| 1 | /* |
| 2 | * File: Dasdcopy.cpp |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: Aug 7, 2009 |
| 6 | * |
| 7 | * Copyright (c) 2009-2013 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * This program is free software: you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation, either version 3 of the License, or |
| 13 | * (at your option) any later version. |
| 14 | * |
| 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 22 | * |
| 23 | */ |
| 24 | |
| 25 | #include "Dasdcopy.h"cxx . . $ `<file>/HercUtilities/Dasdcopy.h`/ |
| 26 | #include "HerculesStudio.h"cxx . . $ `<file>/HercStudio/HerculesStudio.h`/ |
| 27 | #include "UtilityExecutor.h"cxx . . $ `<file>/HercUtilities/UtilityExecutor.h`/ |
| 28 | #include "UtilityRunner.h"cxx . . $ `<file>/HercUtilities/UtilityRunner.h`/ |
| 29 | #include "Preferences.h"cxx . . $ `<file>/HercStudio/Preferences.h`/ |
| 30 | |
| 31 | |
| 32 | #include <QFileDialog> |
| 33 | #include <QMessageBox> |
| 34 | |
| 35 | #include <csignal> |
| 36 | |
| 37 | Dasdcopycxx . . $ Dasdcopy#::Dasdcopycxx . . $ Dasdcopy#Dasdcopy(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent) |
| 38 | : GenericUtilitycxx . . $ GenericUtility#("dasdcopy"cxx . . $ QString#QString(e1217c004a86c950).,parent) |
| 39 | { |
| 40 | uicxx . . $ Dasdcopy#ui..setupUicxx . . $ Ui_DasdcopyClass#setupUi(d194de0c0f68c28b).(this); |
| 41 | |
| 42 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Dasdcopy#ui..runButtoncxx . . $ Ui_DasdcopyClass#runButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(runClicked())); |
| 43 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Dasdcopy#ui..exitButtoncxx . . $ Ui_DasdcopyClass#exitButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(exitClicked())); |
| 44 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Dasdcopy#ui..browseFileButtoncxx . . $ Ui_DasdcopyClass#browseFileButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(browseFileClicked())); |
| 45 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Dasdcopy#ui..browseSfButtoncxx . . $ Ui_DasdcopyClass#browseSfButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(browseShadowClicked())); |
| 46 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Dasdcopy#ui..browseOutButtoncxx . . $ Ui_DasdcopyClass#browseOutButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(browseOutClicked())); |
| 47 | } |
| 48 | |
| 49 | Dasdcopycxx . . $ Dasdcopy#::~cxx . . $ Dasdcopy#`~Dasdcopy`(49f6e7a06ebc5aa8).Dasdcopycxx . . $ Dasdcopy#() |
| 50 | { |
| 51 | |
| 52 | } |
| 53 | |
| 54 | void Dasdcopycxx . . $ Dasdcopy#::runClickedcxx . . $ Dasdcopy#runClicked(49f6e7a06ebc5aa8).() |
| 55 | { |
| 56 | if (!runOrStopClickedcxx . . $ GenericUtility#runOrStopClicked(c9857a73d68e59ba).()) |
| 57 | { |
| 58 | uicxx . . $ Dasdcopy#ui..runButtoncxx . . $ Ui_DasdcopyClass#runButton.->setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).("Run"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 59 | return; |
| 60 | } |
| 61 | if (uicxx . . $ Dasdcopy#ui..infilecxx . . $ Ui_DasdcopyClass#infile.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) |
| 62 | { |
| 63 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(21b6fd1dd558cc82).(this, "dasdcopy"cxx . . $ QString#QString(85c52e162fed56f9)., "Please specify input file to convert"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 64 | QMessageBoxcxx . . $ QMessageBox#::Okcxx . . $ QMessageBox#Ok., QMessageBoxcxx . . $ QMessageBox#::NoButtoncxx . . $ QMessageBox#NoButton.); |
| 65 | return; |
| 66 | } |
| 67 | if (!QFilecxx . . $ QFile#::existscxx . . $ QFile#exists(e1defb592416720d).(uicxx . . $ Dasdcopy#ui..infilecxx . . $ Ui_DasdcopyClass#infile.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).())) |
| 68 | { |
| 69 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(21b6fd1dd558cc82).(this, "dasdcopy"cxx . . $ QString#QString(85c52e162fed56f9)., "Input file does not exist"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 70 | QMessageBoxcxx . . $ QMessageBox#::Okcxx . . $ QMessageBox#Ok., QMessageBoxcxx . . $ QMessageBox#::NoButtoncxx . . $ QMessageBox#NoButton.); |
| 71 | return; |
| 72 | |
| 73 | } |
| 74 | if (uicxx . . $ Dasdcopy#ui..filenamecxx . . $ Ui_DasdcopyClass#filename.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) |
| 75 | { |
| 76 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(21b6fd1dd558cc82).(this, "dasdcopy"cxx . . $ QString#QString(85c52e162fed56f9)., "Please specify ckd file to create"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 77 | QMessageBoxcxx . . $ QMessageBox#::Okcxx . . $ QMessageBox#Ok., QMessageBoxcxx . . $ QMessageBox#::NoButtoncxx . . $ QMessageBox#NoButton.); |
| 78 | return; |
| 79 | } |
| 80 | if (uicxx . . $ Dasdcopy#ui..pathcxx . . $ Ui_DasdcopyClass#path.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) |
| 81 | { |
| 82 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(21b6fd1dd558cc82).(this, "dasdcopy"cxx . . $ QString#QString(85c52e162fed56f9)., "Please specify output directory"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 83 | QMessageBoxcxx . . $ QMessageBox#::Okcxx . . $ QMessageBox#Ok., QMessageBoxcxx . . $ QMessageBox#::NoButtoncxx . . $ QMessageBox#NoButton.); |
| 84 | return; |
| 85 | } |
| 86 | if (!QFilecxx . . $ QFile#::existscxx . . $ QFile#exists(e1defb592416720d).(uicxx . . $ Dasdcopy#ui..pathcxx . . $ Ui_DasdcopyClass#path.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).())) |
| 87 | { |
| 88 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(21b6fd1dd558cc82).(this, "dasdcopy"cxx . . $ QString#QString(85c52e162fed56f9)., "Output directory does not exist"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 89 | QMessageBoxcxx . . $ QMessageBox#::Okcxx . . $ QMessageBox#Ok., QMessageBoxcxx . . $ QMessageBox#::NoButtoncxx . . $ QMessageBox#NoButton.); |
| 90 | return; |
| 91 | } |
| 92 | QFileInfocxx . . $ QFileInfo# dirInfocxx . . $ QFileInfo#QFileInfo(3520e46b33348bf6).(uicxx . . $ Dasdcopy#ui..pathcxx . . $ Ui_DasdcopyClass#path.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()); |
| 93 | if (!dirInfo.isDircxx . . $ QFileInfo#isDir(50ce9a9e25b4a850).()) |
| 94 | { |
| 95 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(21b6fd1dd558cc82).(this, "dasdcopy"cxx . . $ QString#QString(85c52e162fed56f9)., "Output path is not a directory"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 96 | QMessageBoxcxx . . $ QMessageBox#::Okcxx . . $ QMessageBox#Ok., QMessageBoxcxx . . $ QMessageBox#::NoButtoncxx . . $ QMessageBox#NoButton.); |
| 97 | return; |
| 98 | } |
| 99 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> parameterscxx . . $ std/vector#vector(49f6e7a06ebc5aa8).; |
| 100 | |
| 101 | if (uicxx . . $ Dasdcopy#ui..replaceCheckboxcxx . . $ Ui_DasdcopyClass#replaceCheckbox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 102 | parameters.push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).("-r"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).); |
| 103 | if (uicxx . . $ Dasdcopy#ui..lfsCheckboxcxx . . $ Ui_DasdcopyClass#lfsCheckbox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 104 | parameters.push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).("-lfs"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).); |
| 105 | switch (uicxx . . $ Dasdcopy#ui..compressionComboBoxcxx . . $ Ui_DasdcopyClass#compressionComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).()) |
| 106 | { |
| 107 | case 1: |
| 108 | parameters.push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).("-z"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).); |
| 109 | break; |
| 110 | case 2: |
| 111 | parameters.push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).("-bz2"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).); |
| 112 | break; |
| 113 | default: |
| 114 | break; |
| 115 | } |
| 116 | |
| 117 | |
| 118 | parameters.push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).(uicxx . . $ Dasdcopy#ui..infilecxx . . $ Ui_DasdcopyClass#infile.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).()); |
| 119 | |
| 120 | stdcxx . . $ std/::stringcxx . . $ std/string# fullPathcxx . . $ std/__cxx11/basic_string#basic_string(49f6e7a06ebc5aa8).; |
| 121 | if (uicxx . . $ Dasdcopy#ui..pathcxx . . $ Ui_DasdcopyClass#path.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) |
| 122 | { |
| 123 | fullPath =cxx . . $ std/__cxx11/basic_string#`operator=`(706c69e8c742c906). uicxx . . $ Dasdcopy#ui..pathcxx . . $ Ui_DasdcopyClass#path.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 124 | fullPath +=cxx . . $ std/__cxx11/basic_string#`operator+=`(978ca1133b5f6e74). "/"; |
| 125 | } |
| 126 | fullPath +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). uicxx . . $ Dasdcopy#ui..filenamecxx . . $ Ui_DasdcopyClass#filename.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 127 | |
| 128 | parameters.push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).(fullPath); |
| 129 | stdcxx . . $ std/::stringcxx . . $ std/string# commandcxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f). = "dasdcopy"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).; |
| 130 | |
| 131 | stdcxx . . $ std/::stringcxx . . $ std/string# path = Preferencescxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f).::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().hercDircxx . . $ Preferences#hercDir(219584694fe2b248).(); |
| 132 | executecxx . . $ GenericUtility#execute(e5618828c763ae1e).(command, path, parameters); |
| 133 | mFirstEndReceivedcxx . . $ Dasdcopy#mFirstEndReceived. = false; |
| 134 | |
| 135 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(mRunnercxx . . $ GenericUtility#mRunner., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(valueChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(runnerValueChanged(int))); |
| 136 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(mRunnercxx . . $ GenericUtility#mRunner., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(maximumChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(runnerMaximumChanged(int))); |
| 137 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(mErrorRunnercxx . . $ GenericUtility#mErrorRunner., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(valueChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(runnerValueChanged(int))); |
| 138 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(mErrorRunnercxx . . $ GenericUtility#mErrorRunner., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(maximumChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(runnerMaximumChanged(int))); |
| 139 | uicxx . . $ Dasdcopy#ui..runButtoncxx . . $ Ui_DasdcopyClass#runButton.->setTextcxx . . $ QAbstractButton#setText(3520e46b33348bf6).("Stop"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 140 | } |
| 141 | |
| 142 | void Dasdcopycxx . . $ Dasdcopy#::exitClickedcxx . . $ Dasdcopy#exitClicked(49f6e7a06ebc5aa8).() |
| 143 | { |
| 144 | deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 145 | } |
| 146 | |
| 147 | void Dasdcopycxx . . $ Dasdcopy#::browseFileClickedcxx . . $ Dasdcopy#browseFileClicked(49f6e7a06ebc5aa8).() |
| 148 | { |
| 149 | QStringcxx . . $ QString# s = QFileDialogcxx . . $ QString#QString(e1217c004a86c950).::getOpenFileNamecxx . . $ QFileDialog#getOpenFileName(a6b29be4bec65236).(this,"Browse for input disk"cxx . . $ QString#QString(85c52e162fed56f9).,uicxx . . $ Dasdcopy#ui..infilecxx . . $ Ui_DasdcopyClass#infile.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()); |
| 150 | uicxx . . $ Dasdcopy#ui..infilecxx . . $ Ui_DasdcopyClass#infile.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(s); |
| 151 | if (uicxx . . $ Dasdcopy#ui..pathcxx . . $ Ui_DasdcopyClass#path.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) |
| 152 | { |
| 153 | QDircxx . . $ QDir# dcxx . . $ QDir#QDir(3520e46b33348bf6).("/"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 154 | stdcxx . . $ std/::stringcxx . . $ std/string# path = dcxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f)..absoluteFilePathcxx . . $ QDir#absoluteFilePath(5555d9024dcf93fb).(s).toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 155 | int lastSlash = s.toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().find_last_ofcxx . . $ std/__cxx11/basic_string#find_last_of(625b4b37461b5dfd).('/'); |
| 156 | uicxx . . $ Dasdcopy#ui..pathcxx . . $ Ui_DasdcopyClass#path.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(pathcxx . . $ QString#QString(85c52e162fed56f9)..substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(0,lastSlash).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 157 | } |
| 158 | |
| 159 | } |
| 160 | |
| 161 | void Dasdcopycxx . . $ Dasdcopy#::browseShadowClickedcxx . . $ Dasdcopy#browseShadowClicked(49f6e7a06ebc5aa8).() |
| 162 | { |
| 163 | QStringcxx . . $ QString# s = QFileDialogcxx . . $ QString#QString(e1217c004a86c950).::getOpenFileNamecxx . . $ QFileDialog#getOpenFileName(a6b29be4bec65236).(this,"Browse for input disk"cxx . . $ QString#QString(85c52e162fed56f9).,uicxx . . $ Dasdcopy#ui..shadowFilecxx . . $ Ui_DasdcopyClass#shadowFile.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()); |
| 164 | uicxx . . $ Dasdcopy#ui..shadowFilecxx . . $ Ui_DasdcopyClass#shadowFile.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(s); |
| 165 | } |
| 166 | |
| 167 | void Dasdcopycxx . . $ Dasdcopy#::browseOutClickedcxx . . $ Dasdcopy#browseOutClicked(49f6e7a06ebc5aa8).() |
| 168 | { |
| 169 | QStringcxx . . $ QString# s = QFileDialogcxx . . $ QString#QString(e1217c004a86c950).::getExistingDirectorycxx . . $ QFileDialog#getExistingDirectory(a1339ef2a1b3555a).(this,"Browse for output file path"cxx . . $ QString#QString(85c52e162fed56f9).,uicxx . . $ Dasdcopy#ui..pathcxx . . $ Ui_DasdcopyClass#path.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()); |
| 170 | uicxx . . $ Dasdcopy#ui..pathcxx . . $ Ui_DasdcopyClass#path.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(s); |
| 171 | } |
| 172 | |
| 173 | void Dasdcopycxx . . $ Dasdcopy#::runnerMaximumChangedcxx . . $ Dasdcopy#runnerMaximumChanged(d4f767463ce0a6b3).(int maximum) |
| 174 | { |
| 175 | uicxx . . $ Dasdcopy#ui..progressBarcxx . . $ Ui_DasdcopyClass#progressBar.->setMaximumcxx . . $ QProgressBar#setMaximum(d4f767463ce0a6b3).(maximum); |
| 176 | } |
| 177 | |
| 178 | void Dasdcopycxx . . $ Dasdcopy#::runnerValueChangedcxx . . $ Dasdcopy#runnerValueChanged(d4f767463ce0a6b3).(int value) |
| 179 | { |
| 180 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(3, "dasdcopy got value changed " << value); |
| 181 | if (value >= 0) |
| 182 | uicxx . . $ Dasdcopy#ui..progressBarcxx . . $ Ui_DasdcopyClass#progressBar.->setValuecxx . . $ QProgressBar#setValue(d4f767463ce0a6b3).(value); |
| 183 | else |
| 184 | { |
| 185 | if (!mFirstEndReceivedcxx . . $ Dasdcopy#mFirstEndReceived.) |
| 186 | { |
| 187 | mFirstEndReceivedcxx . . $ Dasdcopy#mFirstEndReceived. = true; |
| 188 | } |
| 189 | else if (mExecutorcxx . . $ GenericUtility#mExecutor. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) |
| 190 | { |
| 191 | mExecutorcxx . . $ GenericUtility#mExecutor. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 192 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(21b6fd1dd558cc82).(this, "dasdcopy"cxx . . $ QString#QString(85c52e162fed56f9)., "Disk copy failed"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 193 | QMessageBoxcxx . . $ QMessageBox#::Okcxx . . $ QMessageBox#Ok., |
| 194 | QMessageBoxcxx . . $ QMessageBox#::NoButtoncxx . . $ QMessageBox#NoButton.); |
| 195 | } |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | void Dasdcopycxx . . $ Dasdcopy#::finishedSlotcxx . . $ Dasdcopy#finishedSlot(49f6e7a06ebc5aa8).() |
| 200 | { |
| 201 | if (mStartedcxx . . $ GenericUtility#mStarted. && mFinishedcxx . . $ GenericUtility#mFinished. && mFinishedOKcxx . . $ GenericUtility#mFinishedOK.) |
| 202 | { |
| 203 | uicxx . . $ Dasdcopy#ui..progressBarcxx . . $ Ui_DasdcopyClass#progressBar.->setValuecxx . . $ QProgressBar#setValue(d4f767463ce0a6b3).(uicxx . . $ Dasdcopy#ui..progressBarcxx . . $ Ui_DasdcopyClass#progressBar.->maximumcxx . . $ QProgressBar#maximum(455f465bc33b4cdf).()); |
| 204 | QMessageBoxcxx . . $ QMessageBox#::informationcxx . . $ QMessageBox#information(dea435d67faf38b3).(this, "dasdcopy"cxx . . $ QString#QString(85c52e162fed56f9)., "Disk was successfully copied"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 205 | QMessageBoxcxx . . $ QMessageBox#::Okcxx . . $ QMessageBox#Ok., |
| 206 | QMessageBoxcxx . . $ QMessageBox#::NoButtoncxx . . $ QMessageBox#NoButton.); |
| 207 | } |
| 208 | deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 209 | } |