aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/utils.qbs
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-10-10 17:32:56 +0200
committerhjk <hjk@qt.io>2022-10-13 10:38:35 +0000
commit1fa32552425f0c3fd98ae20bfd26b8b85bfda3e0 (patch)
treea41b22ee65643fdb166e5ee4f4f79da658bd8f73 /src/libs/utils/utils.qbs
parente0832ce7fca490ec1656933ce5bedb6d6da969cd (diff)
Utils: Split off file access interface from IDevice
The file accessing functions form now a class hierarchy by themselves, the devices return a suitable point. The previous implementation was mildly confusing by the special handling of the DesktopDevice, fallbacks and remote cases in the same function leading to unnecessary boilerplate when adding new functions and codepaths that sometimes passed the FilePath API twice. Implemented are a "DesktopDeviceFileAccess" taking care of the previous !needsDevice() branches and a "UnixDeviceFileAccess" covering the current docker and RL uses. As a side-effect this unifies to a large degree the current docker and RL code paths with were occasionally deviating from each other while they shouldn't. Change-Id: I4ff59d4be2a07d13e2ca5e9ace26a84160a87c9d Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/libs/utils/utils.qbs')
-rw-r--r--src/libs/utils/utils.qbs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/utils/utils.qbs b/src/libs/utils/utils.qbs
index b5da80bbc5f..4cc71591c35 100644
--- a/src/libs/utils/utils.qbs
+++ b/src/libs/utils/utils.qbs
@@ -83,6 +83,8 @@ Project {
"detailsbutton.h",
"detailswidget.cpp",
"detailswidget.h",
+ "devicefileaccess.cpp",
+ "devicefileaccess.h",
"deviceshell.cpp",
"deviceshell.h",
"differ.cpp",