Debugger: Use DebuggerCommand in QML engine

... instead of manually set up JSON. It's more concise, and paves the
way to use per-command callbacks as in the other engines.

Change-Id: Ib5cf9c9b882ec0ec87acd7c1ceb938d3ee60346b
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-07-10 11:06:27 +02:00
parent 90985d18c0
commit 92f4ea3f79
3 changed files with 116 additions and 176 deletions

View File

@@ -32,6 +32,7 @@
#define DEBUGGER_PROTOCOL_H
#include <QByteArray>
#include <QList>
#include <QString>
#include <functional>
@@ -64,10 +65,13 @@ public:
void arg(const char *name, const QString &value);
void arg(const char *name, const QByteArray &value);
void arg(const char *name, const char *value);
void arg(const char *name, const QList<int> &list);
void beginList(const char *name = 0);
void endList();
void beginGroup(const char *name = 0);
void endGroup();
QByteArray arguments() const;
QByteArray function;
QByteArray args;