kjsembed
object_binding.h
Go to the documentation of this file.
47 KJSEmbed::ObjectBinding *imp = KJSEmbed::extractBindingImp<KJSEmbed::ObjectBinding>(exec, self ); \
165 KJSEmbed::ObjectBinding *imp = KJSEmbed::extractBindingImp<KJSEmbed::ObjectBinding>(exec, arg );
200 KJS::JSValue *createObject(KJS::ExecState *exec, const KJS::UString &className, const T *value, KJSEmbed::ObjectBinding::Ownership owner = KJSEmbed::ObjectBinding::JSOwned )
static void publish(KJS::ExecState *exec, KJS::JSObject *object, const Method *methods)
Publishes an array of Methods to an object.
Definition: static_binding.cpp:60
END_METHOD_LUT setOwnership(CPPOwned)
Definition: binding_support.h:247
Definition: pointer.h:42
ObjectBinding(KJS::ExecState *exec, const char *typeName, T *ptr)
Definition: object_binding.h:101
KJS::JSObject * construct(KJS::ExecState *exec, const KJS::List &args)
Calls the callback that will in turn create a new instance of this object with the arguments passed i...
Definition: static_binding.cpp:79
bool KJSEMBED_EXPORT extractBool(KJS::ExecState *exec, const KJS::List &args, int idx, bool defaultValue=false)
Extracts a bool from an argument list.
Definition: binding_support.cpp:149
int KJSEMBED_EXPORT extractInt(KJS::ExecState *exec, const KJS::List &args, int idx, int defaultValue=0)
Extracts an integer from an argument list.
Definition: binding_support.cpp:72
Definition: pointer.h:31
Definition: object_binding.h:88
Definition: object_binding.h:81
void setOwnership(Ownership owner)
Definition: object_binding.cpp:70
Definition: variant_binding.cpp:130
T * extractObject(KJS::ExecState *exec, KJS::JSValue *arg, T *defaultValue)
Extracts a pointer based type from an ObjectBinding object.
Definition: object_binding.h:158
KJS::JSValue * createObject(KJS::ExecState *exec, const KJS::UString &className, const T *value, KJSEmbed::ObjectBinding::Ownership owner=KJSEmbed::ObjectBinding::JSOwned)
Can create any known KJSEmbed::ObjectBinding object and set the value.
Definition: object_binding.h:200
JSObject * throwError(ExecState *e, ErrorType t, const QString &m)
Definition: binding_support.h:241
T extractParameter(KJS::ExecState *exec, KJS::JSValue *arg, const T &defaultValue)
Definition: object_binding.h:234
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.