//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;

/**

  A class for internal use by KProcess only. -- Exactly one instance
  of this class is created by KApplication.
 This class takes care of the actual (UNX) signal handling.
 		@author Christian Czezatke <e9025461@student.tuwien.ac.at>

		@short Used internally by KProcess.

*/
public class KProcessController extends QObject  {
	protected KProcessController(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	/**	
		 Wait for any process to exit and handle their exit without
		 starting an event loop.
		 This function may cause KProcess to emit any of its signals.
			@param timeout the timeout in seconds. -1 means no timeout.
				@return true if a process exited, false
         if no process exited within <code>timeout</code> seconds.

		@short    Wait for any process to exit and handle their exit without  starting an event loop.
	*/
	public native boolean waitForProcessExit(int timeout);
	/**	
		 Call this function to defer processing of the data that became available
		 on notifierFd().
				@short    Call this function to defer processing of the data that became available  on notifierFd().
	*/
	public native void unscheduleCheck();
	/**	
		 This function <b>must</b> be called at some point after calling
		 unscheduleCheck().
				@short    This function @em must be called at some point after calling  unscheduleCheck().
	*/
	public native void rescheduleCheck();
	public native int notifierFd();
	/**	
			   		@short
	*/
	public native void addKProcess(KProcess arg1);
	/**	
			   		@short
	*/
	public native void removeKProcess(KProcess arg1);
	/**	
			   		@short
	*/
	public native void addProcess(int pid);
	/**	
		 Create an instance if none exists yet.
		 Called by KApplication.KApplication()
		   		@short    Create an instance if none exists yet.
	*/
	public static native void ref();
	/**	
		 Destroy the instance if one exists and it is not referenced any more.
		 Called by KApplication.~KApplication()
		   		@short    Destroy the instance if one exists and it is not referenced any more.
	*/
	public static native void deref();
	/**	
		 Automatically called upon SIGCHLD. Never call it directly.
		 If your application (or some library it uses) redirects SIGCHLD,
		 the new signal handler (and only it) should call the old handler
		 returned by sigaction().
			   		@short    Automatically called upon SIGCHLD.
	*/
	public static native void theSigCHLDHandler(int signal);
}
