/***************************************************************************
                            KShellCompletion.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 does shell-like completion of file names.
 A string passed to makeCompletion() will be interpreted as a shell 
 command line. Completion will be done on the last argument on the line. 
 Returned matches consist of the first arguments (uncompleted) plus the 
 completed last argument.

 See {@link KShellCompletionSignals} for signals emitted by KShellCompletion.

 See {@link KShellCompletionEventHandling} for event handlers to override in subclasses of KShellCompletion.

 @author David Smith <dsmith@algonet.se>

 @version $Id:
 
 @short Shell-like completion of file names.
*/
public class KShellCompletion extends KURLCompletion  {
	protected KShellCompletion(Class dummy){super((Class) null);}

	private native void newKShellCompletion();

/** 
 Constructs a KShellCompletion object.
         
*/
	public KShellCompletion() {
		super((Class) null);
		newKShellCompletion();
	}

/** 
 Finds completions to the given text.
 The first match is returned and emitted in the signal match() 
	 
*/
	public native String makeCompletion( String arg1);
	protected native void postProcessMatch( String match);
	protected native void postProcessMatches( String[] matches);
//	protected native void postProcessMatches( KCompletionMatches matches);
}
