You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/kdejava/koala/org/kde/koala/KSessionManaged.java

58 lines
2.2 KiB

//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.QSessionManager;
/**
Provides highlevel access to session management on a per-object
base.
KSessionManaged makes it possible to provide implementations for
QApplication.commitData() and QApplication.saveState(), without
subclassing KApplication. 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 QApplication.saveState() for documentation.
This function is just a convenience version to avoid subclassing KApplication.
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 QApplication.saveState() for documentation.
*/
public native boolean saveState(QSessionManager sm);
/**
See QApplication.commitData() for documentation.
This function is just a convenience version to avoid subclassing KApplication.
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 QApplication.commitData() for documentation.
*/
public native boolean commitData(QSessionManager 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();
}