summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KSessionManaged.java
blob: 8e0c6a93c0357ed9358343ed89591e17822e60c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QtSupport;
import org.kde.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. KMainWindow internally makes use of this.
   You don't need to do anything with this class when using
   KMainWindow. Instead, use KMainWindow.saveProperties(),
 KMainWindow.readProperties(), KMainWindow.queryClose(),
 KMainWindow.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();
}