forked from qt-creator/qt-creator
RemoteLinux: Use a RemoteLinux.SupportsRSync key
... into the Device::extraData map instead of dedicated accessors. This weakens the compile time dependencies of the RSyncBuildStep, LinuxDevice, and GenericLinuxDeviceTester at the price of weaker, local typesafety for one bool value. Potentially this could go into the direction of re-using bits of "device feature" discovery and use. Nothing planned, though. Change-Id: I9aa6dce8066b82d344f64f38707f17416e273957 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -280,16 +280,6 @@ DeviceEnvironmentFetcher::Ptr LinuxDevice::environmentFetcher() const
|
||||
return DeviceEnvironmentFetcher::Ptr(new LinuxDeviceEnvironmentFetcher(sharedFromThis()));
|
||||
}
|
||||
|
||||
void LinuxDevice::setSupportsRsync(bool supportsRsync)
|
||||
{
|
||||
setExtraData("RemoteLinux.SupportsRSync", supportsRsync);
|
||||
}
|
||||
|
||||
bool LinuxDevice::supportsRSync() const
|
||||
{
|
||||
return extraData("RemoteLinux.SupportsRSync").toBool();
|
||||
}
|
||||
|
||||
namespace Internal {
|
||||
|
||||
// Factory
|
||||
|
||||
Reference in New Issue
Block a user