aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-12-15 13:38:46 +0100
committerUlf Hermann <ulf.hermann@theqtcompany.com>2016-01-11 09:46:41 +0000
commitdd37ea85809db58abd3b45d3f55020b240baca28 (patch)
tree44904021f37320ac7eb92a30d0b98a23e55aa325 /src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h
parentb6ca444408e351d1ddcaddc66071c27aa011ea6b (diff)
V4 Debugger: Move all the jobs into one place
This makes the code more readable and allows us to keep the data collector as value, rather than pointer, in QV4Debugger. Change-Id: I2939c2b2f551111139f1dc34704a6029e87a66bf Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h')
-rw-r--r--src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h99
1 files changed, 1 insertions, 98 deletions
diff --git a/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h b/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h
index d1ff98f9b0..e57747fbc1 100644
--- a/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h
+++ b/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h
@@ -34,7 +34,6 @@
#ifndef QV4DATACOLLECTOR_H
#define QV4DATACOLLECTOR_H
-#include "qv4debugger.h"
#include <private/qv4engine_p.h>
#include <private/qv4persistent_p.h>
@@ -43,6 +42,7 @@
QT_BEGIN_NAMESPACE
+class QV4Debugger;
class QV4DataCollector
{
public:
@@ -86,103 +86,6 @@ private:
SpecialRefs m_specialRefs;
};
-class ValueLookupJob: public QV4Debugger::Job
-{
- QV4DataCollector *collector;
- const QJsonArray handles;
- QJsonObject result;
- QJsonArray collectedRefs;
- QString exception;
-
-public:
- ValueLookupJob(const QJsonArray &handles, QV4DataCollector *collector) :
- collector(collector), handles(handles) {}
- void run();
- const QString &exceptionMessage() const;
- const QJsonObject &returnValue() const;
- const QJsonArray &refs() const;
-};
-
-class ExpressionEvalJob: public QV4Debugger::JavaScriptJob
-{
- QV4DataCollector *collector;
- QString exception;
- QJsonObject result;
- QJsonArray collectedRefs;
-
-public:
- ExpressionEvalJob(QV4::ExecutionEngine *engine, int frameNr, const QString &expression,
- QV4DataCollector *collector);
- virtual void handleResult(QV4::ScopedValue &value);
- const QString &exceptionMessage() const;
- const QJsonObject &returnValue() const;
- const QJsonArray &refs() const;
-};
-
-class GatherSourcesJob: public QV4Debugger::Job
-{
- QV4::ExecutionEngine *engine;
- QStringList sources;
-
-public:
- GatherSourcesJob(QV4::ExecutionEngine *engine);
- void run();
- const QStringList &result() const;
-};
-
-class ArgumentCollectJob: public QV4Debugger::Job
-{
- QV4::ExecutionEngine *engine;
- QV4DataCollector *collector;
- QStringList *names;
- int frameNr;
- int scopeNr;
-
-public:
- ArgumentCollectJob(QV4::ExecutionEngine *engine, QV4DataCollector *collector,
- QStringList *names, int frameNr, int scopeNr);
- void run();
-};
-
-class LocalCollectJob: public QV4Debugger::Job
-{
- QV4::ExecutionEngine *engine;
- QV4DataCollector *collector;
- QStringList *names;
- int frameNr;
- int scopeNr;
-
-public:
- LocalCollectJob(QV4::ExecutionEngine *engine, QV4DataCollector *collector, QStringList *names,
- int frameNr, int scopeNr);
- void run();
-};
-
-class ThisCollectJob: public QV4Debugger::Job
-{
- QV4::ExecutionEngine *engine;
- QV4DataCollector *collector;
- int frameNr;
- QV4DataCollector::Ref thisRef;
-
-public:
- ThisCollectJob(QV4::ExecutionEngine *engine, QV4DataCollector *collector, int frameNr);
- void run();
- QV4DataCollector::Ref foundRef() const;
-};
-
-class ExceptionCollectJob: public QV4Debugger::Job
-{
- QV4::ExecutionEngine *engine;
- QV4DataCollector *collector;
- QV4DataCollector::Ref exception;
-
-public:
- ExceptionCollectJob(QV4::ExecutionEngine *engine, QV4DataCollector *collector);
- void run();
- QV4DataCollector::Ref exceptionValue() const;
-};
-
QT_END_NAMESPACE
#endif // QV4DATACOLLECTOR_H