lib

Kross::Api::EventScript Class Reference

#include <eventscript.h>

Inheritance diagram for Kross::Api::EventScript:

Kross::Api::Event< T > Kross::Api::Callable Kross::Api::Object

List of all members.


Detailed Description

Todo:
implement EventScript ?!

Definition at line 33 of file eventscript.h.


Public Types

typedef KSharedPtr< EventScriptPtr

Public Member Functions

 EventScript (const QString &name)
virtual ~EventScript ()
virtual const QString getClassName () const
virtual Object::Ptr call (const QString &name, KSharedPtr< List > arguments)

Member Typedef Documentation

Shared pointer to implement reference-counting.

Reimplemented from Kross::Api::Callable.

Definition at line 41 of file eventscript.h.


Constructor & Destructor Documentation

EventScript::EventScript ( const QString &  name  ) 

Constructor.

Definition at line 27 of file eventscript.cpp.

EventScript::~EventScript (  )  [virtual]

Destructor.

Definition at line 32 of file eventscript.cpp.


Member Function Documentation

const QString EventScript::getClassName (  )  const [virtual]

Return the class name.

This could be something like "Kross::Api::Callable" for this object. The value is mainly used for display purposes.

Returns:
The name of this class.

Reimplemented from Kross::Api::Callable.

Definition at line 36 of file eventscript.cpp.

Object::Ptr EventScript::call ( const QString &  name,
KSharedPtr< List arguments 
) [virtual]

Pass a call to the object and evaluated it recursive down the object-hierachy.

Objects like Class are able to handle call's by just implementing this function. If the call is done the called() method will be executed recursive from bottom up the call hierachy.

Exceptions:
TypeException if the object or the name is not callable.
Parameters:
name Each call has a name that says what should be called. In the case of a Class the name is the functionname.
arguments The list of arguments passed to the call.
Returns:
The call-result as Object::Ptr instance or NULL if the call has no result.

Reimplemented from Kross::Api::Object.

Definition at line 41 of file eventscript.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys