/***************************************************************************
                            KNamedCommand.java -  description
                             -------------------
    begin                : Fri Nov 15 11:45:52 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Fri Nov 15 11:45:52 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library 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;

/**

 A command which stores its name.
 This class mostly exists for compatibility with KDE-2.x
 It is more memory-efficient to use KCommand and to implement the name() method.
 
 @short *
 A command which stores its name.
*/
public class KNamedCommand extends KCommand  {
	protected KNamedCommand(Class dummy){super((Class) null);}


/** 

*/
	public native String name();

/** 
 Updates the name of this command.
 Rarely necessary.
     
*/
	public native void setName( String name);
	private native void newKNamedCommand( String name);

/** 
 Creates a command.

*/
	public KNamedCommand( String name) {
		super((Class) null);
		newKNamedCommand( name);
	}
	protected native void virtual_hook( int identifier, int data);
}
