class KScriptInterface

# class KScriptInterface | This class is the base for all script engines. More...
Contains pure virtuals
Definition | `#include <scriptinterface.h>`
Inherits | QObject (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- virtual QString script () const
- virtual void setScript ( const QString &scriptFile )
- virtual void setScript ( const QString &scriptLibFile, const QString &method )
- virtual void run (QObject *context = 0, const QVariant &arg = 0)
- virtual void kill ()

#### Public Members

- KScriptClientInterface *ScriptClientInterface

## Detailed Description

This class is the base for all script engines.

QString script () | ### script

[const pure virtual]

Return the current script code data

Returns: QString containing the currenly runable code

void setScript ( const QString &scriptFile ) | ### setScript

[pure virtual]

Sets the path to the script library that we are going to embed.

void setScript ( const QString &scriptLibFile, const QString &method ) | ### setScript

[pure virtual]

Sets the path to the script library that we are going to embed. The second argument is the function from the script library that we wish to call.

void run (QObject *context = 0, const QVariant &arg = 0) | ### run

[pure virtual]

Run the actual script code This can both take a context object that will be shared between the main application and a variant that will contain the arguments.

void kill () | ### kill

[pure virtual]

Abort the scripts run

KScriptClientInterface * ScriptClientInterface | ### ScriptClientInterface

- Author: Ian Reinhart Geiser
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:38:11 2003, using kdoc 2.0a54.