#include <jsobjectproxy.h>
Inheritance diagram for KJSEmbed::JSObjectProxy:

Public Methods | |
| JSObjectProxy (KJSEmbedPart *part, QObject *target) | |
| JSObjectProxy (KJSEmbedPart *part, QObject *target, QObject *root) | |
| JSObjectProxy (KJSEmbedPart *part, QObject *target, QObject *root, const JSSecurityPolicy *sp) | |
| virtual | ~JSObjectProxy () |
| KJSEmbedPart * | part () const |
| KJS::Interpreter * | interpreter () const |
| QObject * | rootObject () const |
| QObject * | object () const |
| QWidget * | widget () const |
| const JSSecurityPolicy * | securityPolicy () const |
| void | setSecurityPolicy (const JSSecurityPolicy *sp) |
| virtual KJS::Value | get (KJS::ExecState *exec, const KJS::Identifier &p) const |
| virtual void | put (KJS::ExecState *exec, const KJS::Identifier &p, const KJS::Value &v, int attr=KJS::None) |
| virtual KJS::UString | toString (KJS::ExecState *exec) const |
| virtual void | addBindings (KJS::ExecState *exec, KJS::Object &object) |
Protected Methods | |
| void | addBindingsClass (KJS::ExecState *exec, KJS::Object &object) |
| void | addBindingsEnum (KJS::ExecState *exec, KJS::Object &object) |
| void | addBindingsSlots (KJS::ExecState *exec, KJS::Object &object) |
Friends | |
| class | Bindings::JSObjectProxyImp |
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.
|
|
||||||||||||
|
|
|
||||||||||||
|
Adds bindings for the constants defined by enums of the target.
|
|
||||||||||||
|
Adds bindings for slots defined by the target of the proxy.
|
|
||||||||||||
|
Reimplemented to return the value of the specified property if present.
|
|
|
Returns the interpreter in which this proxy lives.
|
|
|
Returns the QObject the proxy is attached to.
|
|
|
Returns the KJSEmbedPart in which this proxy lives.
|
|
||||||||||||||||||||
|
Reimplemented to set the value of the specified property if possible.
|
|
|
Returns the root object that defines the limit of the scope of this proxy.
|
|
|
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 name and class of the target.
|
|
|
Returns the associated QWidget, or 0 if the object is not a widget.
|
|
|
|
1.2.18