• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

Kross

  • Kross
  • EcmaObject
Public Member Functions

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:
Inheritance graph
[legend]

List of all members.

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:
nameEach call has a name that says what should be called.
argsThe 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:
  • values_p.h

Kross

Skip menu "Kross"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal