diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-06-26 11:04:10 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-06-26 11:04:10 (GMT) |
commit | 0f71f6dd993194dafd0385d4697ced38839e2b37 (patch) | |
tree | 50a869e48dc9e46713db2d1918955df13311acca /src/script/api/qscriptengine_p.h | |
parent | 811c1d7e6de03ec16c9bdaec20ab66332b92cd7c (diff) | |
download | Qt-0f71f6dd993194dafd0385d4697ced38839e2b37.zip Qt-0f71f6dd993194dafd0385d4697ced38839e2b37.tar.gz Qt-0f71f6dd993194dafd0385d4697ced38839e2b37.tar.bz2 |
implement QMetaObject bindings
Diffstat (limited to 'src/script/api/qscriptengine_p.h')
-rw-r--r-- | src/script/api/qscriptengine_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/script/api/qscriptengine_p.h b/src/script/api/qscriptengine_p.h index 218e063..f6c12f1 100644 --- a/src/script/api/qscriptengine_p.h +++ b/src/script/api/qscriptengine_p.h @@ -46,6 +46,7 @@ namespace JSC namespace QScript { class QObjectPrototype; + class QMetaObjectPrototype; class QVariantPrototype; #ifndef QT_NO_QOBJECT class QObjectData; @@ -101,6 +102,8 @@ public: JSC::JSValue newQObject(QObject *object, QScriptEngine::ValueOwnership ownership = QScriptEngine::QtOwnership, const QScriptEngine:: QObjectWrapOptions &options = 0); + JSC::JSValue newQMetaObject(const QMetaObject *metaObject, + JSC::JSValue ctor); static bool convertToNativeQObject(const QScriptValue &value, const QByteArray &targetType, @@ -135,6 +138,8 @@ public: QScript::QObjectPrototype *qobjectPrototype; WTF::RefPtr<JSC::Structure> qobjectWrapperObjectStructure; + QScript::QMetaObjectPrototype *qmetaobjectPrototype; + WTF::RefPtr<JSC::Structure> qmetaobjectWrapperObjectStructure; QScript::QVariantPrototype *variantPrototype; WTF::RefPtr<JSC::Structure> variantWrapperObjectStructure; |