forked from qt-creator/qt-creator
ProjectExplorer: Introduce a Utils::OsType IDevice::osType() function
E.g. for easier construction of command lines in situations like
if (isLocal())
runnable.commandLineArguments = argumentString(Utils::HostOsInfo::hostOs());
else
runnable.commandLineArguments = argumentString(Utils::OsTypeLinux);
Change-Id: I5a35304e5d1b5a042952201f39f4134a5cd0ce24
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -213,6 +213,11 @@ bool IosDevice::canAutoDetectPorts() const
|
||||
return true;
|
||||
}
|
||||
|
||||
Utils::OsType IosDevice::osType() const
|
||||
{
|
||||
return Utils::OsTypeMac;
|
||||
}
|
||||
|
||||
|
||||
// IosDeviceManager
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ public:
|
||||
QString osVersion() const;
|
||||
Utils::Port nextPort() const;
|
||||
bool canAutoDetectPorts() const override;
|
||||
Utils::OsType osType() const override;
|
||||
|
||||
static QString name();
|
||||
|
||||
|
||||
@@ -154,6 +154,11 @@ bool IosSimulator::canAutoDetectPorts() const
|
||||
return true;
|
||||
}
|
||||
|
||||
Utils::OsType IosSimulator::osType() const
|
||||
{
|
||||
return Utils::OsTypeMac;
|
||||
}
|
||||
|
||||
IosSimulator::ConstPtr IosKitInformation::simulator(Kit *kit)
|
||||
{
|
||||
if (!kit)
|
||||
|
||||
@@ -77,6 +77,7 @@ public:
|
||||
QVariantMap toMap() const override;
|
||||
Utils::Port nextPort() const;
|
||||
bool canAutoDetectPorts() const override;
|
||||
Utils::OsType osType() const override;
|
||||
|
||||
ProjectExplorer::IDevice::Ptr clone() const override;
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user