Debugger: Make DebuggerEngine internal

Expose less of debugger internals to the device plugins.

Change-Id: Ie78756b033fae3fe02bff92eadf26b7319990605
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-12-12 15:33:16 +01:00
parent 8f7bd19600
commit aff13fdf27
40 changed files with 216 additions and 225 deletions

View File

@@ -40,7 +40,10 @@ namespace ProjectExplorer { class Kit; }
namespace Debugger {
class DebuggerEngine;
class RemoteSetupResult;
namespace Internal { class DebuggerEngine; }
class DebuggerStartParameters;
class DEBUGGER_EXPORT DebuggerRunControl
@@ -59,20 +62,32 @@ public:
QString displayName() const;
void startFailed();
void notifyEngineRemoteServerRunning(const QByteArray &msg, int pid);
void notifyEngineRemoteSetupFinished(const RemoteSetupResult &result);
void notifyInferiorIll();
Q_SLOT void notifyInferiorExited();
void quitDebugger();
void abortDebugger();
void debuggingFinished();
DebuggerEngine *engine();
void showMessage(const QString &msg, int channel = LogDebug);
DebuggerStartParameters &startParameters();
signals:
void engineRequestSetup();
void requestRemoteSetup();
void aboutToNotifyInferiorSetupOk();
void stateChanged(Debugger::DebuggerState state);
private slots:
void handleFinished();
private:
friend class DebuggerRunControlFactory;
DebuggerRunControl(ProjectExplorer::RunConfiguration *runConfiguration, DebuggerEngine *engine);
DebuggerRunControl(ProjectExplorer::RunConfiguration *runConfiguration,
Internal::DebuggerEngine *engine);
DebuggerEngine *m_engine;
Internal::DebuggerEngine *m_engine;
bool m_running;
};
@@ -91,7 +106,7 @@ public:
bool canRun(ProjectExplorer::RunConfiguration *runConfiguration,
ProjectExplorer::RunMode mode) const;
static DebuggerEngine *createEngine(DebuggerEngineType et,
static Internal::DebuggerEngine *createEngine(DebuggerEngineType et,
const DebuggerStartParameters &sp,
QString *errorMessage);