iOS: Extend the information cached for simulator

Change-Id: Ia2bc421b2af7d1e82d48bbd9d7914f177fef30d0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Vikas Pachdha
2017-01-24 16:30:26 +01:00
parent c888989a41
commit b2a33d3118
3 changed files with 93 additions and 93 deletions

View File

@@ -37,9 +37,22 @@ QT_END_NAMESPACE
namespace Ios {
namespace Internal {
class IosDeviceType;
class SimulatorControlPrivate;
class SimulatorInfo {
public:
bool isBooted() const { return state.compare(QStringLiteral("Booted")) == 0; }
bool available;
QString state;
QString runtimeName;
QString name;
QString identifier;
bool operator <(const SimulatorInfo &o) const
{
return name < o.name;
}
};
class SimulatorControl : public QObject
{
Q_OBJECT
@@ -59,7 +72,7 @@ public:
~SimulatorControl();
public:
static QList<IosDeviceType> availableSimulators();
static QList<SimulatorInfo> availableSimulators();
static void updateAvailableSimulators();
static bool isSimulatorRunning(const QString &simUdid);
static QString bundleIdentifier(const Utils::FileName &bundlePath);
@@ -78,3 +91,5 @@ private:
};
} // namespace Internal
} // namespace Ios
Q_DECLARE_METATYPE(Ios::Internal::SimulatorInfo)