diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-06-24 16:07:23 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-06-24 16:07:23 (GMT) |
commit | f4bc67386bc77aae33469c01d0ac0fd09aa438c3 (patch) | |
tree | ec2984e8bf943b75d10e1774cf6d93cd04ac3493 /src/script/api/qscriptengine_p.h | |
parent | e9d1f93c5a2c8a0d800dd83190fd3060abe4850b (diff) | |
download | Qt-f4bc67386bc77aae33469c01d0ac0fd09aa438c3.zip Qt-f4bc67386bc77aae33469c01d0ac0fd09aa438c3.tar.gz Qt-f4bc67386bc77aae33469c01d0ac0fd09aa438c3.tar.bz2 |
work on signal bindings (connect, disconnect, signal emission)
Diffstat (limited to 'src/script/api/qscriptengine_p.h')
-rw-r--r-- | src/script/api/qscriptengine_p.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/script/api/qscriptengine_p.h b/src/script/api/qscriptengine_p.h index 7596aef..218e063 100644 --- a/src/script/api/qscriptengine_p.h +++ b/src/script/api/qscriptengine_p.h @@ -110,6 +110,22 @@ public: void disposeQObject(QObject *object); void emitSignalHandlerException(); + bool scriptConnect(QObject *sender, const char *signal, + JSC::JSValue receiver, JSC::JSValue function); + bool scriptDisconnect(QObject *sender, const char *signal, + JSC::JSValue receiver, JSC::JSValue function); + + bool scriptConnect(QObject *sender, int index, + JSC::JSValue receiver, JSC::JSValue function, + JSC::JSValue senderWrapper = 0); + bool scriptDisconnect(QObject *sender, int index, + JSC::JSValue receiver, JSC::JSValue function); + + bool scriptConnect(JSC::JSValue signal, JSC::JSValue receiver, + JSC::JSValue function); + bool scriptDisconnect(JSC::JSValue signal, JSC::JSValue receiver, + JSC::JSValue function); + // private slots void _q_objectDestroyed(QObject *); #endif |