Changed: operationFinish() not useful

This commit is contained in:
kervala 2016-05-16 14:48:01 +02:00
parent badb4ed031
commit 0b3c441079
6 changed files with 1 additions and 12 deletions

View file

@ -73,7 +73,7 @@ bool CFilesCleaner::exec()
dir.removeRecursively();
}
if (m_listener) m_listener->operationFinish();
if (m_listener) m_listener->operationSuccess(files.size());
return true;
}

View file

@ -181,7 +181,6 @@ bool CFilesCopier::copyFiles(const FilesToCopy &files)
if (m_listener)
{
m_listener->operationSuccess(totalSize);
m_listener->operationFinish();
}
return true;

View file

@ -457,7 +457,6 @@ bool CFilesExtractor::extract7z()
if (m_listener)
{
m_listener->operationSuccess(totalUncompressed);
m_listener->operationFinish();
}
return true;
@ -563,7 +562,6 @@ bool CFilesExtractor::extractZip()
if (m_listener)
{
m_listener->operationSuccess(totalSize);
m_listener->operationFinish();
}
return true;
@ -594,7 +592,6 @@ bool CFilesExtractor::progress(const std::string &filename, uint32 currentSize,
if (m_listener)
{
m_listener->operationSuccess((qint64)totalSize);
m_listener->operationFinish();
}
}

View file

@ -29,7 +29,6 @@ public:
virtual void operationProgress(qint64 current, const QString &filename) =0;
virtual void operationSuccess(qint64 total) =0;
virtual void operationFail(const QString &error) =0;
virtual void operationFinish() =0;
virtual bool operationShouldStop() =0;
};

View file

@ -382,11 +382,6 @@ void COperationDialog::operationFail(const QString &error)
emit fail(error);
}
void COperationDialog::operationFinish()
{
emit done();
}
bool COperationDialog::operationShouldStop()
{
QMutexLocker locker(&m_abortingMutex);

View file

@ -97,7 +97,6 @@ protected:
virtual void operationProgress(qint64 current, const QString &filename);
virtual void operationSuccess(qint64 total);
virtual void operationFail(const QString &error);
virtual void operationFinish();
virtual bool operationShouldStop();