summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptengine_p.h
diff options
context:
space:
mode:
authorJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-07-08 12:19:29 (GMT)
committerJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-07-08 14:48:20 (GMT)
commit09303c005c1a41e0fb6bbf8375cdd72d46346a34 (patch)
tree69562bd202c92dd1730096d37564aa2b396922b2 /src/script/api/qscriptengine_p.h
parentc4c23b83d9ce6635b06fb570c30500c5da014111 (diff)
downloadQt-09303c005c1a41e0fb6bbf8375cdd72d46346a34.zip
Qt-09303c005c1a41e0fb6bbf8375cdd72d46346a34.tar.gz
Qt-09303c005c1a41e0fb6bbf8375cdd72d46346a34.tar.bz2
Fix engineDelete autotest.
Diffstat (limited to 'src/script/api/qscriptengine_p.h')
-rw-r--r--src/script/api/qscriptengine_p.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/script/api/qscriptengine_p.h b/src/script/api/qscriptengine_p.h
index 666aeff..b3aab9b 100644
--- a/src/script/api/qscriptengine_p.h
+++ b/src/script/api/qscriptengine_p.h
@@ -59,6 +59,7 @@ class QString;
class QStringList;
class QScriptContext;
class QScriptValue;
+class QScriptValuePrivate;
class QScriptTypeInfo;
class QScriptEngineAgent;
@@ -135,6 +136,18 @@ public:
bool scriptDisconnect(JSC::JSValue signal, JSC::JSValue receiver,
JSC::JSValue function);
+ void registerScriptValue(QScriptValuePrivate *value)
+ {
+ attachedScriptValues.insert(value);
+ }
+
+ void unregisterScriptValue(QScriptValuePrivate *value)
+ {
+ attachedScriptValues.remove(value);
+ }
+
+ void detachAllRegisteredScriptValues();
+
// private slots
void _q_objectDestroyed(QObject *);
#endif
@@ -163,6 +176,8 @@ public:
QSet<QString> importedExtensions;
QSet<QString> extensionsBeingImported;
+ QSet<QScriptValuePrivate*> attachedScriptValues;
+
#ifndef QT_NO_QOBJECT
QHash<QObject*, QScript::QObjectData*> m_qobjectData;
#endif