ShellScript Class Reference

Inheritance diagram for ShellScript:

KScriptInterface QObject List of all members.

Detailed Description

Definition at line 27 of file shellscript.h.


Public Member Functions

 ShellScript (KScriptClientInterface *parent, const char *name, const QStringList &args)
virtual ~ShellScript ()
QString script () const
void setScript (const QString &scriptFile)
void setScript (const QString &scriptLibFile, const QString &method)
void run (QObject *context=0, const QVariant &arg=0)
void kill ()

Member Function Documentation

void ShellScript::kill (  )  [virtual]

Abort the scripts run.

Implements KScriptInterface.

Definition at line 65 of file shellscript.cpp.

void ShellScript::run ( QObject context = 0,
const QVariant arg = 0 
) [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.

Implements KScriptInterface.

Definition at line 61 of file shellscript.cpp.

QString ShellScript::script (  )  const [virtual]

Return the current script code data.

Returns:
QString containing the currenly runable code

Implements KScriptInterface.

Definition at line 45 of file shellscript.cpp.

void ShellScript::setScript ( const QString scriptLibFile,
const QString method 
) [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.

Implements KScriptInterface.

Definition at line 56 of file shellscript.cpp.

void ShellScript::setScript ( const QString scriptFile  )  [virtual]

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

Implements KScriptInterface.

Definition at line 50 of file shellscript.cpp.


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