kjsembed
qobject_binding.h
Go to the documentation of this file.
136 void put(KJS::ExecState *exec, const KJS::Identifier &propertyName, KJS::JSValue *value, int attr=KJS::None);
147 bool getOwnPropertySlot( KJS::ExecState *exec, const KJS::Identifier &propertyName, KJS::PropertySlot &slot );
152 static KJS::JSValue *propertyGetter( KJS::ExecState *exec, KJS::JSObject*, const KJS::Identifier& name, const KJS::PropertySlot& );
198 KJS::JSValue *callAsFunction( KJS::ExecState *exec, KJS::JSObject *self, const KJS::List &args );
230KJSEMBED_EXPORT KJS::JSObject *createQObject(KJS::ExecState *exec, QObject *value, KJSEmbed::ObjectBinding::Ownership owner = KJSEmbed::ObjectBinding::JSOwned);
Filters events for a QObject and forwards them to a JS handler.
Definition eventproxy.h:45
ObjectBinding(KJS::ExecState *exec, const char *typeName, T *ptr)
Definition object_binding.h:101
QObjectBinding(KJS::ExecState *exec, QObject *object)
Definition qobject_binding.cpp:229
Access
Enumeration of access-flags that could be OR-combined to define what parts of the QObject should be p...
Definition qobject_binding.h:94
@ NonScriptableSignals
Publish signals that don't have Q_SCRIPTABLE defined.
Definition qobject_binding.h:105
@ ChildObjects
Provide access to the child QObject's the QObject has.
Definition qobject_binding.h:117
@ NonScriptableSlots
Publish slots that don't have Q_SCRIPTABLE defined.
Definition qobject_binding.h:98
@ ScriptableProperties
Publish properties that have Q_SCRIPTABLE defined.
Definition qobject_binding.h:111
@ NonScriptableProperties
Publish properties that don't have Q_SCRIPTABLE defined.
Definition qobject_binding.h:112
@ GetParentObject
Provide access to the parent QObject the QObject has.
Definition qobject_binding.h:115
static void publishQObject(KJS::ExecState *exec, KJS::JSObject *target, QObject *object)
Definition qobject_binding.cpp:174
bool implementsConstruct() const
Definition qobject_binding.h:200
SlotBinding(KJS::ExecState *exec, const QMetaMethod &memberName)
Definition qobject_binding.cpp:725
KJS::JSValue * callAsFunction(KJS::ExecState *exec, KJS::JSObject *self, const KJS::List &args)
Definition qobject_binding.cpp:619
Definition application.h:33
KJSEMBED_EXPORT KJS::JSObject * createQObject(KJS::ExecState *exec, QObject *value, KJSEmbed::ObjectBinding::Ownership owner=KJSEmbed::ObjectBinding::JSOwned)
Returns a binding object for the specified QObject.
Definition qobject_binding.cpp:735
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.