mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-29 03:40:55 +00:00
Changed: operationFinish() not useful
This commit is contained in:
parent
8021da0efc
commit
6fcee0c951
6 changed files with 1 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -181,7 +181,6 @@ bool CFilesCopier::copyFiles(const FilesToCopy &files)
|
|||
if (m_listener)
|
||||
{
|
||||
m_listener->operationSuccess(totalSize);
|
||||
m_listener->operationFinish();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue