kjsembed
value_binding.h
Go to the documentation of this file.
46 KJSEmbed::ValueBinding *imp = KJSEmbed::extractBindingImp<KJSEmbed::ValueBinding>(exec, self ); \
184 T extractValue( KJS::ExecState *exec, const KJS::List &args, int idx, const T &defaultValue = T())
208 KJS::throwError(exec, KJS::TypeError, toUString(QString("Created failed to cast to %1 failed").arg(toQString(className))));
214 KJS::throwError(exec, KJS::TypeError, toUString(QString("Could not construct a %1").arg(toQString(className) )));
Definition: binding_support.h:248
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
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
ValueBinding(KJS::ExecState *exec, const char *typeName, T val)
Definition: value_binding.h:107
static T castValue(ValueBinding *imp)
Definition: value_binding.h:144
KJS::UString toString(KJS::ExecState *exec) const
Definition: value_binding.cpp:66
static const Method ValueMethods[]
Definition: value_binding.h:96
Definition: application.h:33
T extractValue(KJS::ExecState *exec, KJS::JSValue *arg, const T &defaultValue)
Extracts a pointer based type from an ObjectBinding object.
Definition: value_binding.h:167
KJS::JSValue * createValue(KJS::ExecState *exec, const KJS::UString &className, const T &value)
Definition: value_binding.h:195
JSObject * throwError(ExecState *e, ErrorType t, const QString &m)
Definition: binding_support.h:241
Definition: pointer.h:32
virtual void * voidStar()=0
Definition: pointer.h:74
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.