aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmltooling/qmldbg_debugger/qv4debugservice.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-07-22 18:50:34 +0200
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-08-10 10:05:14 +0000
commita2ccdd33888cb0eb4516089d3418dd01c8cca25c (patch)
tree400d8d1de2223812f9b8c0106e69c6ef9656c0a3 /src/plugins/qmltooling/qmldbg_debugger/qv4debugservice.h
parentbf5db2bbc1da83a9930832e628e65ec64cd4b831 (diff)
Move DataCollector into debugger plugin
The data collector and all the jobs it uses to interact with the engine are only used from the debugger plugin. We can as well move them there. Change-Id: Ia48251f08b48c7e1e607b8ae2a3d1de29f80f742 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmltooling/qmldbg_debugger/qv4debugservice.h')
-rw-r--r--src/plugins/qmltooling/qmldbg_debugger/qv4debugservice.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/plugins/qmltooling/qmldbg_debugger/qv4debugservice.h b/src/plugins/qmltooling/qmldbg_debugger/qv4debugservice.h
index 6e5113600d..c80ad78cc8 100644
--- a/src/plugins/qmltooling/qmldbg_debugger/qv4debugservice.h
+++ b/src/plugins/qmltooling/qmldbg_debugger/qv4debugservice.h
@@ -47,6 +47,7 @@
#include "qqmlconfigurabledebugservice.h"
#include "qv4debuggeragent.h"
+#include "qv4datacollector.h"
#include <private/qqmldebugserviceinterfaces_p.h>
#include <private/qv4debugging_p.h>
@@ -77,8 +78,8 @@ public:
QJsonObject buildScope(int frameNr, int scopeNr, QV4::Debugging::Debugger *debugger);
QJsonArray buildRefs();
- QJsonValue lookup(QV4::Debugging::DataCollector::Ref refId);
- QJsonValue toRef(QV4::Debugging::DataCollector::Ref ref);
+ QJsonValue lookup(QV4DataCollector::Ref refId);
+ QJsonValue toRef(QV4DataCollector::Ref ref);
QJsonObject buildFrame(const QV4::StackFrame &stackFrame, int frameNr,
QV4::Debugging::Debugger *debugger);
@@ -87,7 +88,7 @@ public:
void clearHandles(QV4::ExecutionEngine *engine);
- QV4::Debugging::DataCollector *collector() const;
+ QV4DataCollector *collector() const;
QV4DebuggerAgent debuggerAgent;
protected:
@@ -109,9 +110,9 @@ private:
static int debuggerIndex;
static int sequence;
const int version;
- QV4::Debugging::DataCollector::Refs collectedRefs;
+ QV4DataCollector::Refs collectedRefs;
- QScopedPointer<QV4::Debugging::DataCollector> theCollector;
+ QScopedPointer<QV4DataCollector> theCollector;
int theSelectedFrame;
void addHandler(V8CommandHandler* handler);