forked from qt-creator/qt-creator
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:
@@ -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;
|
||||||
|
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user