/***************************************************************************
                            KScriptInterface.java -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.koala;

import org.kde.qt.*;
import java.util.*;
import java.lang.Error;

/**

	This class is the base for all script engines.

 @author Ian Reinhart Geiser <geiseri@kde.org>

 @short 
	This class is the base for all script engines.
*/
public class KScriptInterface extends QObject  {
	protected KScriptInterface(Class dummy){super((Class) null);}


/** 
	Return the current script code data

*/
	public native String script();

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

*/
	public native void setScript( String scriptFile);

/** 
	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.

*/
	public native void setScript( String scriptLibFile, String method);

/** 
	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.

*/
	public native void run( QObject context, QVariant arg);
	public native void run();

/** 
	Abort the scripts run

*/
	public native void kill();
}
