FilePath: Integrate FileStreamerManager for async i-face

Change-Id: I3371471e3c23b86a62b5e4056b343941ab46e191
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2023-03-03 01:04:45 +01:00
parent ae2690e4b1
commit 69fa8f3f3c
9 changed files with 27 additions and 183 deletions

View File

@@ -12,6 +12,7 @@
#include <debugger/analyzer/analyzermanager.h>
#include <utils/filepath.h>
#include <utils/filestreamermanager.h>
#include <utils/qtcassert.h>
#include <utils/qtcprocess.h>
#include <utils/temporaryfile.h>
@@ -261,7 +262,9 @@ void CallgrindToolRunner::triggerParse()
showStatusMessage(Tr::tr("Parsing Profile Data..."));
m_parser.parse(m_hostOutputFile);
};
m_valgrindOutputFile.asyncCopyFile(afterCopy, m_hostOutputFile);
// TODO: Store the handle and cancel on CallgrindToolRunner destructor?
// TODO: Should d'tor of context object cancel the running task?
FileStreamerManager::copy(m_valgrindOutputFile, m_hostOutputFile, this, afterCopy);
}
void CallgrindToolRunner::cleanupTempFile()