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

@@ -380,29 +380,6 @@ std::optional<FilePath> DeviceFileAccess::refersToExecutableFile(
return {};
}
void DeviceFileAccess::asyncFileContents(const FilePath &filePath,
const Continuation<expected_str<QByteArray>> &cont,
qint64 limit,
qint64 offset) const
{
cont(fileContents(filePath, limit, offset));
}
void DeviceFileAccess::asyncWriteFileContents(const FilePath &filePath,
const Continuation<expected_str<qint64>> &cont,
const QByteArray &data,
qint64 offset) const
{
cont(writeFileContents(filePath, data, offset));
}
void DeviceFileAccess::asyncCopyFile(const FilePath &filePath,
const Continuation<expected_str<void>> &cont,
const FilePath &target) const
{
cont(copyFile(filePath, target));
}
expected_str<FilePath> DeviceFileAccess::createTempFile(const FilePath &filePath)
{
Q_UNUSED(filePath)