aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/debugger/qdeclarativeenginedebugservice_p.h
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2011-11-23 12:09:15 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-28 07:45:43 +0100
commitf892f806124ea254449ee7bba75f5629d60559a8 (patch)
tree18f1c41d2f36d1d811281a61786a3da4262853eb /src/declarative/debugger/qdeclarativeenginedebugservice_p.h
parent00909a4262671c685dc4f5f004746d39fdcf29ad (diff)
qml debugger: Create abstraction for State management
State and PropertyChanges aren't part of the core qml types. The (general-purpose) qml debugger shouldn't have to know those types; they are only relevant when QtQuick (2.0) has been imported. Introduce a delegate interface that performs State processing. Implement a delegate for QtQuick 2, and install it when the QtQuick 2 module is imported. Change-Id: I8af1157346ca9365eb0f7b99ccb71744d17fcebc Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Diffstat (limited to 'src/declarative/debugger/qdeclarativeenginedebugservice_p.h')
-rw-r--r--src/declarative/debugger/qdeclarativeenginedebugservice_p.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/declarative/debugger/qdeclarativeenginedebugservice_p.h b/src/declarative/debugger/qdeclarativeenginedebugservice_p.h
index d3e5c79297..7c74c63801 100644
--- a/src/declarative/debugger/qdeclarativeenginedebugservice_p.h
+++ b/src/declarative/debugger/qdeclarativeenginedebugservice_p.h
@@ -57,7 +57,6 @@
#include <QtCore/qurl.h>
#include <QtCore/qvariant.h>
-#include <QWeakPointer>
QT_BEGIN_NAMESPACE
@@ -65,13 +64,14 @@ class QDeclarativeEngine;
class QDeclarativeContext;
class QDeclarativeWatcher;
class QDataStream;
-class QDeclarativeState;
+class QDeclarativeDebugStatesDelegate;
class QDeclarativeEngineDebugService : public QDeclarativeDebugService
{
Q_OBJECT
public:
QDeclarativeEngineDebugService(QObject * = 0);
+ ~QDeclarativeEngineDebugService();
struct QDeclarativeObjectData {
QUrl url;
@@ -98,6 +98,8 @@ public:
void remEngine(QDeclarativeEngine *);
void objectCreated(QDeclarativeEngine *, QObject *);
+ void setStatesDelegate(QDeclarativeDebugStatesDelegate *);
+
static QDeclarativeEngineDebugService *instance();
protected:
@@ -112,7 +114,6 @@ private:
void buildObjectList(QDataStream &, QDeclarativeContext *);
void buildObjectDump(QDataStream &, QObject *, bool, bool);
void buildStatesList(QDeclarativeContext *, bool);
- void buildStatesList(QObject *obj);
QDeclarativeObjectData objectData(QObject *);
QDeclarativeObjectProperty propertyData(QObject *, int);
QVariant valueContents(const QVariant &defaultValue) const;
@@ -122,7 +123,7 @@ private:
QList<QDeclarativeEngine *> m_engines;
QDeclarativeWatcher *m_watch;
- QList<QWeakPointer<QDeclarativeState> > m_allStates;
+ QDeclarativeDebugStatesDelegate *m_statesDelegate;
};
Q_DECLARATIVE_PRIVATE_EXPORT QDataStream &operator<<(QDataStream &, const QDeclarativeEngineDebugService::QDeclarativeObjectData &);
Q_DECLARATIVE_PRIVATE_EXPORT QDataStream &operator>>(QDataStream &, QDeclarativeEngineDebugService::QDeclarativeObjectData &);