//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QObject;

/**

 This class helps applications implement support for KDataTool.
 The steps to follow are simple:

	<li>
	query for the available tools using KDataToolInfo.query
	</li>
	
	<li>
	pass the result to KDataToolAction.dataToolActionList (with a slot)
	</li>
	
	<li>
	plug the resulting actions, either using KXMLGUIClient.plugActionList, or by hand.
	</li>
	 The slot defined for step 2 is called when the action is activated, and
 that's where the tool should be created and run.
  See {@link KDataToolActionSignals} for signals emitted by KDataToolAction
		@short    This class helps applications implement support for KDataTool.

*/
public class KDataToolAction extends KAction  {
	protected KDataToolAction(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	/**	
		 Constructs a new KDataToolAction.
			@param text The text that will be displayed.
			@param info the corresponding KDataToolInfo
			@param command the command of the action
			@param parent This action's parent.
			@param name An internal name for this action.
		     		@short    Constructs a new KDataToolAction.
	*/
	public KDataToolAction(String text, KDataToolInfo info, String command, QObject parent, String name) {
		super((Class) null);
		newKDataToolAction(text,info,command,parent,name);
	}
	private native void newKDataToolAction(String text, KDataToolInfo info, String command, QObject parent, String name);
	public KDataToolAction(String text, KDataToolInfo info, String command, QObject parent) {
		super((Class) null);
		newKDataToolAction(text,info,command,parent);
	}
	private native void newKDataToolAction(String text, KDataToolInfo info, String command, QObject parent);
	public KDataToolAction(String text, KDataToolInfo info, String command) {
		super((Class) null);
		newKDataToolAction(text,info,command);
	}
	private native void newKDataToolAction(String text, KDataToolInfo info, String command);
	/**	
		 Creates a list of actions from a list of information about data-tools.
		 The slot must have a signature corresponding to the toolActivated signal.
			 Note that it's the caller's responsibility to delete the actions when they're not needed anymore.
			@param tools the list of data tool descriptions
			@param receiver the receiver for toolActivated() signals
			@param slot the slot that will receive the toolActivated() signals
				@return the KActions
     
		@short    Creates a list of actions from a list of information about data-tools.
	*/
	// QPtrList<KAction> dataToolActionList(const QValueList<KDataToolInfo>& arg1,const QObject* arg2,const char* arg3); >>>> NOT CONVERTED
	protected native void slotActivated();
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}
