forked from qt-creator/qt-creator
iOS: Move towards more aspect use
Put the remaining device related pieces into a new IosDeviceTypeAspect. Change-Id: Ia1ce2002edebedc2d409edc1144ade0ffe24a084 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
This commit is contained in:
@@ -36,8 +36,7 @@ namespace Ios {
|
||||
namespace Internal {
|
||||
|
||||
class IosDeployStep;
|
||||
class IosRunConfigurationFactory;
|
||||
class IosRunConfigurationWidget;
|
||||
class IosDeviceTypeAspect;
|
||||
|
||||
class IosRunConfiguration : public ProjectExplorer::RunConfiguration
|
||||
{
|
||||
@@ -46,7 +45,6 @@ class IosRunConfiguration : public ProjectExplorer::RunConfiguration
|
||||
public:
|
||||
IosRunConfiguration(ProjectExplorer::Target *target, Core::Id id);
|
||||
|
||||
QWidget *createConfigurationWidget() override;
|
||||
IosDeployStep *deployStep() const;
|
||||
|
||||
Utils::FileName profilePath() const;
|
||||
@@ -55,21 +53,16 @@ public:
|
||||
Utils::FileName localExecutable() const;
|
||||
QString disabledReason() const override;
|
||||
IosDeviceType deviceType() const;
|
||||
void setDeviceType(const IosDeviceType &deviceType);
|
||||
|
||||
void doAdditionalSetup(const ProjectExplorer::RunConfigurationCreationInfo &) override;
|
||||
bool fromMap(const QVariantMap &map) override;
|
||||
QVariantMap toMap() const override;
|
||||
|
||||
private:
|
||||
void deviceChanges();
|
||||
friend class IosRunConfigurationWidget;
|
||||
void updateDeviceType();
|
||||
friend class IosDeviceTypeAspect;
|
||||
void updateDisplayNames();
|
||||
void updateEnabledState() final;
|
||||
bool canRunForNode(const ProjectExplorer::Node *node) const final;
|
||||
|
||||
IosDeviceType m_deviceType;
|
||||
IosDeviceTypeAspect *m_deviceTypeAspect = nullptr;
|
||||
};
|
||||
|
||||
class IosRunConfigurationFactory : public ProjectExplorer::RunConfigurationFactory
|
||||
|
||||
Reference in New Issue
Block a user