Debugger: Move more RunControl setup to factory

Reasons mentioning S60DebugControl do not apply anymore.

Change-Id: Id7686ab90f2c25492685eb655403ed369bf99ee4
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
hjk
2014-10-17 12:37:30 +02:00
parent 1bb2f04d4d
commit 4f242d3382
2 changed files with 50 additions and 79 deletions

View File

@@ -36,18 +36,12 @@
#include <projectexplorer/runconfiguration.h>
namespace Utils { class Environment; }
namespace Debugger {
class DebuggerEngine;
class DebuggerRunControl;
class DebuggerStartParameters;
namespace Internal {
class DebuggerRunControlPrivate;
class DebuggerRunControlFactory;
} // namespace Internal
namespace Internal { class DebuggerRunControlFactory; }
class DEBUGGER_EXPORT DebuggerRunControl
: public ProjectExplorer::RunControl
@@ -55,8 +49,6 @@ class DEBUGGER_EXPORT DebuggerRunControl
Q_OBJECT
public:
DebuggerRunControl(ProjectExplorer::RunConfiguration *runConfiguration,
const DebuggerStartParameters &sp);
~DebuggerRunControl();
// ProjectExplorer::RunControl
@@ -80,8 +72,12 @@ private slots:
void handleFinished();
private:
//friend class Internal::DebuggerRunControlFactory;
Internal::DebuggerRunControlPrivate *d;
friend class Internal::DebuggerRunControlFactory;
DebuggerRunControl(ProjectExplorer::RunConfiguration *runConfiguration, DebuggerEngine *engine);
DebuggerEngine *m_engine;
const QPointer<ProjectExplorer::RunConfiguration> m_runConfiguration;
bool m_running;
};
} // namespace Debugger