Add adapters for FileTransfer and DeviceUsedPortsGatherer

Change-Id: I2ead2129625ae54919cf75e517e9b2180bb4bc47
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2022-10-21 19:29:21 +02:00
parent 5d4667e682
commit 3a1f94ec28
5 changed files with 103 additions and 19 deletions

View File

@@ -14,6 +14,7 @@
#include <utils/processinterface.h>
#include <utils/qtcassert.h>
#include <utils/qtcprocess.h>
#include <utils/tasktree.h>
using namespace ProjectExplorer;
using namespace Utils;
@@ -203,7 +204,8 @@ void GenericLinuxDeviceTester::testPortsGatherer()
d->state = TestingPorts;
emit progressMessage(Tr::tr("Checking if specified ports are available..."));
d->portsGatherer.start(d->device);
d->portsGatherer.setDevice(d->device);
d->portsGatherer.start();
}
void GenericLinuxDeviceTester::handlePortsGathererError(const QString &message)
@@ -242,7 +244,8 @@ void GenericLinuxDeviceTester::testFileTransfer(FileTransferMethod method)
.arg(FileTransfer::transferMethodName(method)));
d->fileTransfer.setTransferMethod(method);
d->fileTransfer.test(d->device);
d->fileTransfer.setTestDevice(d->device);
d->fileTransfer.test();
}
void GenericLinuxDeviceTester::handleFileTransferDone(const ProcessResultData &resultData)