From 5460a0d5f6a229aefc0e75ef0ea75c77db6c6dce Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Thu, 19 Oct 2023 16:11:31 +0300 Subject: [PATCH] boot2qt: QDB devices support rsync and sftp Users don't add QDB device themselves and therefore device test isn't run. This means neither rsync or sftp is available with GenericUpload deployment. Ideally, we should run the device test in the background but that would require larger code refactoring to support it. For now, set all QDB devices with support for both rsync and sftp. Host's support will still determine if either one can be used. Change-Id: I1f73508b9255e0984ca48c763dcaf49b931e0e21 Reviewed-by: hjk Reviewed-by: Ari Parkkila Reviewed-by: Christian Kandeler --- src/plugins/boot2qt/device-detection/devicedetector.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/boot2qt/device-detection/devicedetector.cpp b/src/plugins/boot2qt/device-detection/devicedetector.cpp index 10faa4fb3ca..abe06bc566b 100644 --- a/src/plugins/boot2qt/device-detection/devicedetector.cpp +++ b/src/plugins/boot2qt/device-detection/devicedetector.cpp @@ -9,6 +9,7 @@ #include "../qdbutils.h" #include +#include #include @@ -85,6 +86,8 @@ void DeviceDetector::handleDeviceEvent(QdbDeviceTracker::DeviceEventType eventTy device->settings()->displayName.setValue(name); device->setType(Qdb::Constants::QdbLinuxOsType); device->setMachineType(IDevice::Hardware); + device->setExtraData(ProjectExplorer::Constants::SUPPORTS_RSYNC, true); + device->setExtraData(ProjectExplorer::Constants::SUPPORTS_SFTP, true); const QString ipAddress = info["ipAddress"]; device->setupDefaultNetworkSettings(ipAddress);