• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

interfaces

KScriptInterface Class Reference

This class is the base for all script engines. More...

#include <scriptinterface.h>

Inheritance diagram for KScriptInterface:

Inheritance graph
[legend]

List of all members.


Public Member Functions

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

Public Attributes

KScriptClientInterface * ScriptClientInterface

Detailed Description

This class is the base for all script engines.

Author:
Ian Reinhart Geiser <geiseri@kde.org>

Definition at line 47 of file scriptinterface.h.


Member Function Documentation

virtual void KScriptInterface::kill (  )  [pure virtual]

Abort the scripts run.

Implemented in ShellScript.

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

Implemented in ShellScript.

virtual QString KScriptInterface::script (  )  const [pure virtual]

Return the current script code data.

Returns:
QString containing the currenly runable code

Implemented in ShellScript.

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

Implemented in ShellScript.

virtual void KScriptInterface::setScript ( const QString &  scriptFile  )  [pure virtual]

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

Implemented in ShellScript.


Member Data Documentation

KScriptClientInterface* KScriptInterface::ScriptClientInterface

This is the method for sending feedback to applications.

example of how this works:

        ScriptClientInterface->error( message_to_send_back_to_the_main_application );
Will send the error message back to the main application.

Definition at line 85 of file scriptinterface.h.


The documentation for this class was generated from the following file:
  • scriptinterface.h

interfaces

Skip menu "interfaces"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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