forked from qt-creator/qt-creator
ios: improve run handling
disabling running when running is not possible with message explaining it: * device is not available (and tell user if another device is available) * profile parsings Change-Id: I8a2e8e4486555b09de2ac4ceab89997286c81454 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
This commit is contained in:
@@ -36,6 +36,10 @@
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/qtcoverride.h>
|
||||
|
||||
namespace QmakeProjectManager {
|
||||
class QmakeProFileNode;
|
||||
}
|
||||
|
||||
namespace Ios {
|
||||
namespace Internal {
|
||||
|
||||
@@ -60,6 +64,8 @@ public:
|
||||
QString appName() const;
|
||||
Utils::FileName bundleDir() const;
|
||||
Utils::FileName exePath() const;
|
||||
bool isEnabled() const;
|
||||
QString disabledReason() const;
|
||||
|
||||
bool fromMap(const QVariantMap &map) QTC_OVERRIDE;
|
||||
QVariantMap toMap() const QTC_OVERRIDE;
|
||||
@@ -68,12 +74,20 @@ protected:
|
||||
IosRunConfiguration(ProjectExplorer::Target *parent, IosRunConfiguration *source);
|
||||
QString defaultDisplayName();
|
||||
|
||||
private slots:
|
||||
void proFileUpdated(QmakeProjectManager::QmakeProFileNode *pro, bool success, bool parseInProgress);
|
||||
void deviceChanges();
|
||||
private:
|
||||
void init();
|
||||
void enabledCheck();
|
||||
friend class IosRunConfigurationWidget;
|
||||
|
||||
QString m_profilePath;
|
||||
QStringList m_arguments;
|
||||
QString m_lastDisabledReason;
|
||||
bool m_lastIsEnabled;
|
||||
bool m_parseInProgress;
|
||||
bool m_parseSuccess;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user