RemoteLinux: Rename AbstractRemoteLinuxDeployService::profile()

... to kit().

Change-Id: I2ec33fce01c44d7d9da66b6b642068cbb7943758
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2022-04-13 18:15:56 +02:00
parent ec4fb84f8d
commit 160dc16921
2 changed files with 6 additions and 6 deletions

View File

@@ -81,7 +81,7 @@ const Target *AbstractRemoteLinuxDeployService::target() const
return d->target; return d->target;
} }
const Kit *AbstractRemoteLinuxDeployService::profile() const const Kit *AbstractRemoteLinuxDeployService::kit() const
{ {
return d->target ? d->target->kit() : nullptr; return d->target ? d->target->kit() : nullptr;
} }
@@ -99,25 +99,25 @@ SshConnection *AbstractRemoteLinuxDeployService::connection() const
void AbstractRemoteLinuxDeployService::saveDeploymentTimeStamp(const DeployableFile &deployableFile, void AbstractRemoteLinuxDeployService::saveDeploymentTimeStamp(const DeployableFile &deployableFile,
const QDateTime &remoteTimestamp) const QDateTime &remoteTimestamp)
{ {
d->deployTimes.saveDeploymentTimeStamp(deployableFile, profile(), remoteTimestamp); d->deployTimes.saveDeploymentTimeStamp(deployableFile, kit(), remoteTimestamp);
} }
bool AbstractRemoteLinuxDeployService::hasLocalFileChanged( bool AbstractRemoteLinuxDeployService::hasLocalFileChanged(
const DeployableFile &deployableFile) const const DeployableFile &deployableFile) const
{ {
return d->deployTimes.hasLocalFileChanged(deployableFile, profile()); return d->deployTimes.hasLocalFileChanged(deployableFile, kit());
} }
bool AbstractRemoteLinuxDeployService::hasRemoteFileChanged( bool AbstractRemoteLinuxDeployService::hasRemoteFileChanged(
const DeployableFile &deployableFile, const QDateTime &remoteTimestamp) const const DeployableFile &deployableFile, const QDateTime &remoteTimestamp) const
{ {
return d->deployTimes.hasRemoteFileChanged(deployableFile, profile(), remoteTimestamp); return d->deployTimes.hasRemoteFileChanged(deployableFile, kit(), remoteTimestamp);
} }
void AbstractRemoteLinuxDeployService::setTarget(Target *target) void AbstractRemoteLinuxDeployService::setTarget(Target *target)
{ {
d->target = target; d->target = target;
d->deviceConfiguration = DeviceKitAspect::device(profile()); d->deviceConfiguration = DeviceKitAspect::device(kit());
} }
void AbstractRemoteLinuxDeployService::setDevice(const IDevice::ConstPtr &device) void AbstractRemoteLinuxDeployService::setDevice(const IDevice::ConstPtr &device)

View File

@@ -88,7 +88,7 @@ signals:
protected: protected:
const ProjectExplorer::Target *target() const; const ProjectExplorer::Target *target() const;
const ProjectExplorer::Kit *profile() const; const ProjectExplorer::Kit *kit() const;
ProjectExplorer::IDeviceConstPtr deviceConfiguration() const; ProjectExplorer::IDeviceConstPtr deviceConfiguration() const;
QSsh::SshConnection *connection() const; QSsh::SshConnection *connection() const;