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

@@ -50,7 +50,6 @@ namespace Core { class IOptionsPage; }
namespace Debugger {
class DebuggerEnginePrivate;
class DebuggerRunControl;
class DebuggerStartParameters;
@@ -59,6 +58,7 @@ DEBUGGER_EXPORT QDebug operator<<(QDebug str, DebuggerState state);
namespace Internal {
class DebuggerEnginePrivate;
class DebuggerPluginPrivate;
class DisassemblerAgent;
class MemoryAgent;
@@ -129,11 +129,7 @@ public:
quint64 address;
};
} // namespace Internal
// FIXME: DEBUGGER_EXPORT?
class DEBUGGER_EXPORT DebuggerEngine : public QObject
class DebuggerEngine : public QObject
{
Q_OBJECT
@@ -282,6 +278,7 @@ signals:
* a server start script should be used, but none is given.
*/
void requestRemoteSetup();
void aboutToNotifyInferiorSetupOk();
protected:
// The base notify*() function implementation should be sufficient
@@ -315,7 +312,9 @@ protected:
virtual void notifyInferiorStopOk();
virtual void notifyInferiorSpontaneousStop();
virtual void notifyInferiorStopFailed();
Q_SLOT virtual void notifyInferiorExited();
public:
virtual void notifyInferiorExited();
protected:
virtual void notifyInferiorShutdownOk();
@@ -392,9 +391,9 @@ protected:
private:
// Wrapper engine needs access to state of its subengines.
friend class Internal::QmlCppEngine;
friend class Internal::DebuggerPluginPrivate;
friend class Internal::QmlAdapter;
friend class QmlCppEngine;
friend class DebuggerPluginPrivate;
friend class QmlAdapter;
virtual void setState(DebuggerState state, bool forced = false);
@@ -402,6 +401,7 @@ private:
DebuggerEnginePrivate *d;
};
} // namespace Internal
} // namespace Debugger
Q_DECLARE_METATYPE(Debugger::Internal::ContextData)