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

Kross

  • Kross
  • EcmaObject
Public Member Functions | List of all members
Kross::EcmaObject Class Reference

#include <values_p.h>

Inheritance diagram for Kross::EcmaObject:
Inheritance graph
[legend]

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
 
- Public Member Functions inherited from Kross::Object
 Object ()
 
 Object (const Object &other)
 
virtual ~Object ()
 
virtual void virtual_hook (int id, void *ptr)
 
- Public Member Functions inherited from Kross::ErrorInterface
 ErrorInterface ()
 
void clearError ()
 
long errorLineNo () const
 
const QString errorMessage () const
 
const QString errorTrace () const
 
bool hadError () const
 
void setError (const QString &errormessage, const QString &tracemessage=QString(), long lineno=-1)
 
void setError (ErrorInterface *error)
 

Additional Inherited Members

- Public Types inherited from Kross::Object
typedef KSharedPtr< Object > Ptr
 

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() 
)
inlineexplicit

Definition at line 57 of file values_p.h.

virtual Kross::EcmaObject::~EcmaObject ( )
inlinevirtual

Definition at line 59 of file values_p.h.

Member Function Documentation

virtual QVariant Kross::EcmaObject::callMethod ( const QString &  name,
const QVariantList &  args = QVariantList() 
)
inlinevirtual

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 ( )
inlinevirtual

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
inlinevirtual

Definition at line 60 of file values_p.h.

virtual QScriptValue Kross::EcmaObject::prototype ( ) const
inlinevirtual

Definition at line 61 of file values_p.h.


The documentation for this class was generated from the following file:
  • values_p.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kross

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal