ProjectExplorer: Make the DesktopDevice responsible for local accesses

Change-Id: I92337d9acec25e6e72d367c14ca0d85827c570c2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2021-04-29 07:58:34 +02:00
parent 9285b1e7c9
commit 19600b12c4
2 changed files with 6 additions and 0 deletions

View File

@@ -173,4 +173,9 @@ QUrl DesktopDevice::toolControlChannel(const ControlChannelHint &) const
return url; return url;
} }
bool DesktopDevice::handlesFile(const FilePath &filePath) const
{
return !filePath.needsDevice();
}
} // namespace ProjectExplorer } // namespace ProjectExplorer

View File

@@ -54,6 +54,7 @@ public:
DeviceProcessSignalOperation::Ptr signalOperation() const override; DeviceProcessSignalOperation::Ptr signalOperation() const override;
DeviceEnvironmentFetcher::Ptr environmentFetcher() const override; DeviceEnvironmentFetcher::Ptr environmentFetcher() const override;
QUrl toolControlChannel(const ControlChannelHint &) const override; QUrl toolControlChannel(const ControlChannelHint &) const override;
bool handlesFile(const Utils::FilePath &filePath) const override;
protected: protected:
DesktopDevice(); DesktopDevice();