19 #ifndef __shellscript_h__
20 #define __shellscript_h__
22 #include <scriptinterface.h>
23 #include <tqvariant.h>
25 #include <tdeprocess.h>
32 virtual ~ShellScript();
34 void setScript(
const TQString &scriptFile );
35 void setScript(
const TQString &scriptLibFile,
const TQString &method );
36 void run(TQObject *context = 0,
const TQVariant &arg = 0);
40 void stdErr(
TDEProcess *proc,
char *buffer,
int buflen);
41 void stdOut(
TDEProcess *proc,
char *buffer,
int buflen);
45 TQString m_scriptName;
This class is used for allowing feedback to the main system.
This class is the base for all script engines.
virtual void run(TQObject *context=0, const TQVariant &arg=0)=0
Run the actual script code This can both take a context object that will be shared between the main a...
virtual TQString script() const =0
Return the current script code data.
virtual void kill()=0
Abort the scripts run.
KScriptClientInterface * ScriptClientInterface
This is the method for sending feedback to applications.
virtual void setScript(const TQString &scriptFile)=0
Sets the path to the script library that we are going to embed.