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

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQSessionManager;

/**

   Provides highlevel access to session management on a per-object
   base.
   KSessionManaged makes it possible to provide implementations for
 TQApplication.commitData() and TQApplication.saveState(), without
   subclassing TDEApplication. TDEMainWindow internally makes use of this.
   You don't need to do anything with this class when using
   TDEMainWindow. Instead, use TDEMainWindow.saveProperties(),
 TDEMainWindow.readProperties(), TDEMainWindow.queryClose(),
 TDEMainWindow.queryExit() and friends.
		@author Matthias Ettrich <ettrich@kde.org>

		@short Highlevel access to session management.

*/
public class KSessionManaged implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected KSessionManaged(Class dummy){}

	public KSessionManaged() {
		newKSessionManaged();
	}
	private native void newKSessionManaged();
	/**
		       See TQApplication.saveState() for documentation.
			       This function is just a convenience version to avoid subclassing TDEApplication.
			       Return true to indicate a successful state save or false to
		       indicate a problem and to halt the shutdown process (will
		       implicitly call sm.cancel() ).
		     		@short          See TQApplication.saveState() for documentation.
	*/
	public native boolean saveState(TQSessionManager sm);
	/**
		       See TQApplication.commitData() for documentation.
			       This function is just a convenience version to avoid subclassing TDEApplication.
			       Return true to indicate a successful commit of data or false to
		       indicate a problem and to halt the shutdown process (will
		       implicitly call sm.cancel() ).
		     		@short          See TQApplication.commitData() for documentation.
	*/
	public native boolean commitData(TQSessionManager sm);
	/** 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();
}
