Remove unused function argument in startCopyBlocks.
This commit is contained in:
parent
00d47c6417
commit
06139c85ac
|
@ -45,7 +45,7 @@ bool Job::copyBlocks(Report& report, CopyTarget& target, CopySource& source)
|
||||||
ExternalCommand copyCmd(source, target, QProcess::SeparateChannels);
|
ExternalCommand copyCmd(source, target, QProcess::SeparateChannels);
|
||||||
connect(©Cmd, &ExternalCommand::progress, this, &Job::progress, Qt::QueuedConnection);
|
connect(©Cmd, &ExternalCommand::progress, this, &Job::progress, Qt::QueuedConnection);
|
||||||
connect(©Cmd, &ExternalCommand::reportSignal, this, &Job::updateReport, Qt::QueuedConnection);
|
connect(©Cmd, &ExternalCommand::reportSignal, this, &Job::updateReport, Qt::QueuedConnection);
|
||||||
return copyCmd.startCopyBlocks(-1);
|
return copyCmd.startCopyBlocks();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Job::rollbackCopyBlocks(Report& report, CopyTarget& origTarget, CopySource& origSource)
|
bool Job::rollbackCopyBlocks(Report& report, CopyTarget& origTarget, CopySource& origSource)
|
||||||
|
|
|
@ -48,10 +48,8 @@ ExternalCommand::ExternalCommand(CopySource& source, CopyTarget& target,const QP
|
||||||
|
|
||||||
|
|
||||||
/** Starts copyBlocks command.
|
/** Starts copyBlocks command.
|
||||||
@param timeout timeout to wait for the process to start
|
|
||||||
@return true on success
|
|
||||||
*/
|
*/
|
||||||
bool ExternalCommand::startCopyBlocks(int timeout)
|
bool ExternalCommand::startCopyBlocks()
|
||||||
{
|
{
|
||||||
this->moveToThread(CoreBackendManager::self()->kauthThread());
|
this->moveToThread(CoreBackendManager::self()->kauthThread());
|
||||||
QTimer::singleShot(0, this, &ExternalCommand::copyBlocks);
|
QTimer::singleShot(0, this, &ExternalCommand::copyBlocks);
|
||||||
|
|
|
@ -61,7 +61,7 @@ public:
|
||||||
void setArgs(const QStringList& args) { m_Args = args; } /**< @param args the new arguments */
|
void setArgs(const QStringList& args) { m_Args = args; } /**< @param args the new arguments */
|
||||||
bool write(const QByteArray& input); /**< @param input the input for the program */
|
bool write(const QByteArray& input); /**< @param input the input for the program */
|
||||||
|
|
||||||
bool startCopyBlocks(int timeout =30000);
|
bool startCopyBlocks();
|
||||||
bool start(int timeout = 30000);
|
bool start(int timeout = 30000);
|
||||||
bool waitFor(int timeout = 30000);
|
bool waitFor(int timeout = 30000);
|
||||||
bool run(int timeout = 30000);
|
bool run(int timeout = 30000);
|
||||||
|
|
Loading…
Reference in New Issue