/***************************************************************************
                            KProcessRunner.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 watches a process launched by KRun.
 It sends a notification when the process exits (for the taskbar)
 and it will show an error message if necessary (e.g. "program not found").
 
 See {@link KProcessRunnerSignals} for signals emitted by KProcessRunner.

 See {@link KProcessRunnerEventHandling} for event handlers to override in subclasses of KProcessRunner.

 @short 

*/
public class KProcessRunner extends QObject  {
	protected KProcessRunner(Class dummy){super((Class) null);}

	protected native void finalize() throws InternalError;
	public native void dispose();
	public native boolean isDisposed();
	public native long pid();
	public static native long run( KProcess arg1, String binName);
	public static native long run( KProcess arg1, String binName, KStartupInfoId identifier);
	protected native void slotProcessExited( KProcess arg1);
}
