/***************************************************************************
                            KScriptClientInterface.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 used for allowing feedback to the main system.

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

 @short 
	This class is used for allowing feedback to the main system.
*/
public class  KScriptClientInterface implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected KScriptClientInterface(Class dummy){}


/** 
	This function will allow the main application of any errors
	that have occured during processing of the script.
		
*/
	public native void error( String msg);

/** 
	This function will allow the main application of any warnings
	that have occured during the processing of the script.
		
*/
	public native void warning( String msg);

/** 
	This function will allow the main application of any normal
	output that has occured during the processing of the script.
		
*/
	public native void output( String msg);

/** 
	This function will allow feedback to any progress bars in the main
	application as to how far along the script is.  This is very useful when
	a script is processing files or doing some long operation that is of a
	known duration.
		
*/
	public native void progress( int percent);

/** 
	This function will allow feedback on completion of the script.
	It turns the result as a {@link KScriptInteface#Result}, and a return
	value as a {@link QVariant}
		
*/
	public native void done( int result, QVariant returned);
	public static final int ResultSuccess = 0;
	public static final int ResultFailure = 1;
	public static final int ResultContinue = 2;
	public static final int ResultBreak = 3;
}
