forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user