#include <jsobjectproxy.h>
Inheritance diagram for KJSEmbed::JSObjectProxy::
Public Methods | |
JSObjectProxy (KJS::Interpreter *js, QObject *target) | |
JSObjectProxy (KJS::Interpreter *js, QObject *target, QObject *root) | |
JSObjectProxy (KJS::Interpreter *js, QObject *target, QObject *root, const JSSecurityPolicy *sp) | |
~JSObjectProxy () | |
virtual void | addBindings (KJS::ExecState *state, KJS::Object &object) |
KJS::Object | createSubProxy (QObject *target, KJS::ExecState *state=0) const |
KJS::Interpreter * | jscript () const |
QObject * | rootObject () const |
QObject * | object () const |
const JSSecurityPolicy * | securityPolicy () const |
void | setSecurityPolicy (const JSSecurityPolicy *sp) |
virtual KJS::Value | get (KJS::ExecState *state, const KJS::UString &p) const |
virtual void | put (KJS::ExecState *state, const KJS::UString &p, const KJS::Value &v, int attr=KJS::None) |
virtual KJS::UString | toString (KJS::ExecState *exec) const |
int | findSignature (const QString &sig) const |
QLineEdit *edit = new QLineEdit(); KJSEmbed::JSObjectProxy *proxy = new KJSEmbed::JSObjectProxy( js, edit ); jsparent.put( js->globalExec(), "edit", proxy );
|
Create a JS binding to the target object. The binding will allow scripts to access any QObject that is descended the target and no others. |
|
Create a JS binding to the target object. The binding will allow scripts to access any QObject that is descended from the specified root. If the specified root is 0 then access is granted to all objects. |
|
Create a JS binding to the target object. The binding will allow scripts to access any QObject that is descended from the specified root, according to the specified JSSecurityPolicy . If the specified root is 0 then access is granted to all objects. |
|
Adds methods for traversing the QObject tree to the specified KJS::Object . Only QObjects descended from the root specified in the constructor can be reached through JS proxies created with these bindings. |
|
Returns the interpreter in which this proxy lives.
|
|
Returns the root object that defines the limit of the scope of this proxy.
|
|
Returns the QObject the proxy is attached to.
|
|
Returns the JSSecurityPolicy of the proxy.
|
|
Specifies the JSSecurityPolicy that should be applied to this proxy. Setting the policy to 0 restores the default policy. |
|
Reimplemented to return the value of the specified property if present.
|
|
Reimplemented to set the value of the specified property if possible.
|
|
Reimplemented to return the name and class of the target.
|