Changed: operationFinish() not useful

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

View file

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

View file

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

View file

@ -457,7 +457,6 @@ bool CFilesExtractor::extract7z()
if (m_listener) if (m_listener)
{ {
m_listener->operationSuccess(totalUncompressed); m_listener->operationSuccess(totalUncompressed);
m_listener->operationFinish();
} }
return true; return true;
@ -563,7 +562,6 @@ bool CFilesExtractor::extractZip()
if (m_listener) if (m_listener)
{ {
m_listener->operationSuccess(totalSize); m_listener->operationSuccess(totalSize);
m_listener->operationFinish();
} }
return true; return true;
@ -594,7 +592,6 @@ bool CFilesExtractor::progress(const std::string &filename, uint32 currentSize,
if (m_listener) if (m_listener)
{ {
m_listener->operationSuccess((qint64)totalSize); 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 operationProgress(qint64 current, const QString &filename) =0;
virtual void operationSuccess(qint64 total) =0; virtual void operationSuccess(qint64 total) =0;
virtual void operationFail(const QString &error) =0; virtual void operationFail(const QString &error) =0;
virtual void operationFinish() =0;
virtual bool operationShouldStop() =0; virtual bool operationShouldStop() =0;
}; };

View file

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

View file

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