aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/debugger/qv8debugservice_p.h
diff options
context:
space:
mode:
authorAurindam Jana <aurindam.jana@nokia.com>2011-12-02 14:52:21 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-14 18:48:21 +0100
commit4e2924fbc30905a136cc54f229f1906b11602c3e (patch)
tree85025c8f0c450ddf8f8e38fc19fc19cdf01638bc /src/declarative/debugger/qv8debugservice_p.h
parentd8e13b08c67439e4e6695ef72d1a9bb0317e97ff (diff)
QV8DebugService: Simplify the service code
Removed all parsing functionality. The service only acts as a delegate to v8 debugger. Apart from that, it calls the v8 debug static APIs when requested by client. Change-Id: I2917c2d080e5b409a4b5f39d386279c33634cade Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'src/declarative/debugger/qv8debugservice_p.h')
-rw-r--r--src/declarative/debugger/qv8debugservice_p.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/declarative/debugger/qv8debugservice_p.h b/src/declarative/debugger/qv8debugservice_p.h
index 754ae53324..9430f95965 100644
--- a/src/declarative/debugger/qv8debugservice_p.h
+++ b/src/declarative/debugger/qv8debugservice_p.h
@@ -54,7 +54,6 @@
//
#include "qdeclarativedebugservice_p.h"
-#include <private/qv8_p.h>
QT_BEGIN_HEADER
@@ -62,7 +61,7 @@ QT_BEGIN_NAMESPACE
QT_MODULE(Declarative)
-class QDeclarativeEngine;
+class QV8Engine;
class QV8DebugServicePrivate;
class QV8DebugService : public QDeclarativeDebugService
@@ -73,24 +72,28 @@ public:
~QV8DebugService();
static QV8DebugService *instance();
- static void initialize();
+ static void initialize(const QV8Engine *engine);
- void debugMessageHandler(const QString &message, bool willStartRunning);
-
- void appendSourcePath(const v8::Handle<v8::Object> &eventData);
+ void debugMessageHandler(const QString &message);
void signalEmitted(const QString &signal);
+public slots:
+ void processDebugMessages();
+
private slots:
- void scheduledDebugBreak();
- void cancelDebugBreak();
- void initialize(bool);
+ void scheduledDebugBreak(bool schedule);
+ void sendDebugMessage(const QString &message);
+ void init();
protected:
void statusChanged(Status newStatus);
void messageReceived(const QByteArray &);
private:
+ void setEngine(const QV8Engine *engine);
+
+private:
Q_DISABLE_COPY(QV8DebugService)
Q_DECLARE_PRIVATE(QV8DebugService)
};