aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ios/iosrunconfiguration.h
diff options
context:
space:
mode:
authorFawzi Mohamed <[email protected]>2014-03-28 19:05:35 +0100
committerFawzi Mohamed <[email protected]>2014-03-31 14:19:20 +0200
commit88f85896f130e0d2e54d758047cb69fb5805b299 (patch)
tree794d0c2872b6d26844ac6e323b2fa13003e0a740 /src/plugins/ios/iosrunconfiguration.h
parentb0f5fbc866e73dfcb4234e8943f48a7b9be5e515 (diff)
ios: make device simulated configurable in runconfiguration
Change-Id: I54bcbd7f2142ab95618005f1f108a122bfe18d32 Reviewed-by: Fawzi Mohamed <[email protected]>
Diffstat (limited to 'src/plugins/ios/iosrunconfiguration.h')
-rw-r--r--src/plugins/ios/iosrunconfiguration.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/ios/iosrunconfiguration.h b/src/plugins/ios/iosrunconfiguration.h
index 73fbe80a156..e7956d36a66 100644
--- a/src/plugins/ios/iosrunconfiguration.h
+++ b/src/plugins/ios/iosrunconfiguration.h
@@ -43,6 +43,16 @@ class QmakeProFileNode;
namespace Ios {
namespace Internal {
+enum { nSimulatedDevices = 4 };
+static const IosDeviceType::Enum simulatedDevices[nSimulatedDevices] = {
+ // skip iPhone as it does not support iOS7
+ // TODO: clean solution would be to check also sdk version or make it configurable
+ IosDeviceType::SimulatedIphoneRetina3_5Inch,
+ IosDeviceType::SimulatedIphoneRetina4Inch,
+ IosDeviceType::SimulatedIpad,
+ IosDeviceType::SimulatedIpadRetina
+};
+
class IosDeployStep;
class IosRunConfigurationFactory;
class IosRunConfigurationWidget;
@@ -66,6 +76,8 @@ public:
Utils::FileName exePath() const;
bool isEnabled() const;
QString disabledReason() const;
+ IosDeviceType::Enum deviceType() const;
+ void setDeviceType(IosDeviceType::Enum deviceType);
bool fromMap(const QVariantMap &map) QTC_OVERRIDE;
QVariantMap toMap() const QTC_OVERRIDE;
@@ -88,6 +100,7 @@ private:
bool m_lastIsEnabled;
bool m_parseInProgress;
bool m_parseSuccess;
+ IosDeviceType::Enum m_deviceType;
};
} // namespace Internal