Kross
Kross::EcmaObject Class Reference
The EcmaObject implements QScriptClass and Kross::Object to provide custom behavior to QtScript objects. More...
#include <values_p.h>
Inheritance diagram for Kross::EcmaObject:

Public Member Functions | |
| EcmaObject (QScriptEngine *engine, const QScriptValue &object=QScriptValue()) | |
| virtual | ~EcmaObject () |
| virtual QVariant | callMethod (const QString &name, const QVariantList &args=QVariantList()) |
| virtual QStringList | methodNames () |
| virtual QString | name () const |
| virtual QScriptValue | prototype () const |
Detailed Description
The EcmaObject implements QScriptClass and Kross::Object to provide custom behavior to QtScript objects.
Definition at line 54 of file values_p.h.
Constructor & Destructor Documentation
| Kross::EcmaObject::EcmaObject | ( | QScriptEngine * | engine, |
| const QScriptValue & | object = QScriptValue() |
||
| ) | [inline, explicit] |
Definition at line 57 of file values_p.h.
| virtual Kross::EcmaObject::~EcmaObject | ( | ) | [inline, virtual] |
Definition at line 59 of file values_p.h.
Member Function Documentation
| virtual QVariant Kross::EcmaObject::callMethod | ( | const QString & | name, |
| const QVariantList & | args = QVariantList() |
||
| ) | [inline, virtual] |
Pass a call to the object and evaluated it.
- Parameters:
-
name Each call has a name that says what should be called. args The optional list of arguments passed to the call.
- Returns:
- The call-result as QVariant.
Reimplemented from Kross::Object.
Definition at line 63 of file values_p.h.
| virtual QStringList Kross::EcmaObject::methodNames | ( | ) | [inline, virtual] |
Return a list of supported callable objects.
- Returns:
- List of supported calls.
Reimplemented from Kross::Object.
Definition at line 79 of file values_p.h.
| virtual QString Kross::EcmaObject::name | ( | ) | const [inline, virtual] |
Definition at line 60 of file values_p.h.
| virtual QScriptValue Kross::EcmaObject::prototype | ( | ) | const [inline, virtual] |
Definition at line 61 of file values_p.h.
The documentation for this class was generated from the following file:
KDE 4.6 API Reference