IDevice: Add rootPath() method

May be useful for constructing other remote paths.

Change-Id: I83b647f657565bf99e507a1821cf1c3c49a100bb
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-03-25 12:21:02 +01:00
parent 4022ed547d
commit dcc61b854a
2 changed files with 11 additions and 0 deletions

View File

@@ -773,6 +773,15 @@ void IDevice::setMachineType(MachineType machineType)
d->machineType = machineType; d->machineType = machineType;
} }
FilePath IDevice::rootPath() const
{
FilePath root;
root.setScheme("device");
root.setHost(id().toString());
root.setPath("/");
return root;
}
FilePath IDevice::debugServerPath() const FilePath IDevice::debugServerPath() const
{ {
return d->debugServerPath; return d->debugServerPath;

View File

@@ -208,6 +208,8 @@ public:
MachineType machineType() const; MachineType machineType() const;
void setMachineType(MachineType machineType); void setMachineType(MachineType machineType);
Utils::FilePath rootPath() const;
Utils::FilePath debugServerPath() const; Utils::FilePath debugServerPath() const;
void setDebugServerPath(const Utils::FilePath &path); void setDebugServerPath(const Utils::FilePath &path);