KJsEmbed
kjsembed.cpp
182 KJS::JSObject *Engine::addObject(QObject *obj, KJS::JSObject *parent, const KJS::UString &name) const
KJS::Completion completion() const
Returns the Completion object for the last script executed.
Definition: kjsembed.cpp:197
ReadOnly
virtual bool open(QIODevice::OpenMode mode) override
int size() const
const QChar * unicode() const const
KJS::JSValue * callMethod(const KJS::UString &methodName, const KJS::List &args=KJS::List())
Execute a method at the global scope of the javascript interpreter.
Definition: kjsembed.cpp:265
KJS::JSObject * addObject(QObject *obj, const KJS::UString &name=KJS::UString()) const
publishes a QObject to the global context of the javascript interpereter.
Definition: kjsembed.cpp:192
bool hadException() const
ExitStatus runFile(const KJS::UString &file)
Execute the file with the specified name using the current interpreter.
Definition: kjsembed.cpp:233
QString i18n(const char *text, const TYPE &arg...)
bool atEnd() const const
static KJS::JSObject * add(KJS::ExecState *exec, KJS::JSObject *object, const Constructor *constructor)
Add the constructor to an object.
Definition: static_binding.cpp:94
UString()
bool isEmpty() const const
int length() const const
QString readLine(qint64 maxlen)
QCoreApplication * instance()
KJS::JSObject * construct(KJS::ExecState *exec, const KJS::List &args) override
Calls the callback that will in turn create a new instance of this object with the arguments passed i...
Definition: static_binding.cpp:77
virtual void close() override
static void publish(KJS::ExecState *exec, KJS::JSObject *object, const Method *methods)
Publishes an array of Methods to an object.
Definition: static_binding.cpp:59
const UChar * data() const
const UChar * data() const
Completion evaluate(const UString &sourceURL, int startingLineNumber, const UChar *code, int codeLength, JSValue *thisV=nullptr)
ExitStatus execute(const KJS::UString &code)
Execute a code string using the current interpreter.
Definition: kjsembed.cpp:246
objectName
KJS::JSObject * construct(const KJS::UString &className, const KJS::List &args=KJS::List()) const
Create a new instance of an object that the Javascript engine knows about.
Definition: kjsembed.cpp:258
int size() const
JSValue * exception() const
bool isBindingsEnabled() const
Returns true if the Engine was created with the bindings enabled.
Definition: kjsembed.cpp:177
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Dec 7 2023 04:05:14 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Dec 7 2023 04:05:14 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.