aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ios/iosrunfactories.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2017-07-18 15:23:29 +0200
committerEike Ziller <eike.ziller@qt.io>2017-07-18 15:23:29 +0200
commit361fdad3be3421496be4dab014a8bee369687387 (patch)
tree4412737d90b20953064b8f53817c014ddc9714c3 /src/plugins/ios/iosrunfactories.cpp
parent5e38bdbfd8bef6c3bdcede9fe0be11f34e9a0f7c (diff)
parent41ae823bda7cc1bad4b85861d9b0e3087c130e4a (diff)
Merge remote-tracking branch 'origin/4.4'
Diffstat (limited to 'src/plugins/ios/iosrunfactories.cpp')
-rw-r--r--src/plugins/ios/iosrunfactories.cpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/plugins/ios/iosrunfactories.cpp b/src/plugins/ios/iosrunfactories.cpp
index b2d42b671b..c41dcb8263 100644
--- a/src/plugins/ios/iosrunfactories.cpp
+++ b/src/plugins/ios/iosrunfactories.cpp
@@ -27,7 +27,6 @@
#include "iosconstants.h"
#include "iosrunconfiguration.h"
-#include "iosrunner.h"
#include "iosmanager.h"
#include <debugger/analyzer/analyzermanager.h>
@@ -143,53 +142,5 @@ RunConfiguration *IosRunConfigurationFactory::doRestore(Target *parent, const QV
return new IosRunConfiguration(parent, id, pathFromId(id));
}
-IosRunControlFactory::IosRunControlFactory(QObject *parent)
- : IRunControlFactory(parent)
-{
-}
-
-bool IosRunControlFactory::canRun(RunConfiguration *runConfiguration,
- Core::Id mode) const
-{
- if (mode != ProjectExplorer::Constants::NORMAL_RUN_MODE
- && mode != ProjectExplorer::Constants::DEBUG_RUN_MODE
- && mode != ProjectExplorer::Constants::QML_PROFILER_RUN_MODE) {
- return false;
- }
-
- return qobject_cast<IosRunConfiguration *>(runConfiguration);
-}
-
-RunControl *IosRunControlFactory::create(RunConfiguration *runConfig,
- Core::Id mode, QString *errorMessage)
-{
- Q_UNUSED(errorMessage);
- Q_ASSERT(canRun(runConfig, mode));
- IosRunConfiguration *rc = qobject_cast<IosRunConfiguration *>(runConfig);
- Q_ASSERT(rc);
- Target *target = runConfig->target();
- QTC_ASSERT(target, return 0);
-
- Core::Id devId = DeviceKitInformation::deviceId(rc->target()->kit());
- // The device can only run an application at a time, if an app is running stop it.
- if (m_activeRunControls.contains(devId)) {
- if (QPointer<RunControl> activeRunControl = m_activeRunControls[devId])
- activeRunControl->initiateStop();
- m_activeRunControls.remove(devId);
- }
- auto runControl = new RunControl(runConfig, mode);
- if (mode == ProjectExplorer::Constants::NORMAL_RUN_MODE) {
- (void) new Ios::Internal::IosRunSupport(runControl);
- } else if (mode == ProjectExplorer::Constants::QML_PROFILER_RUN_MODE) {
- (void) new IosQmlProfilerSupport(runControl);
- } else {
- (void) new IosDebugSupport(runControl);
- }
-
- if (devId.isValid())
- m_activeRunControls[devId] = runControl;
- return runControl;
-}
-
} // namespace Internal
} // namespace Ios