org.kde.koala

Class KSessionManaged

public class KSessionManaged extends Object implements QtSupport

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

UNKNOWN: Highlevel access to session management.

Constructor Summary
protected KSessionManaged(Class dummy)
KSessionManaged()
Method Summary
booleancommitData(QSessionManager sm)
See QApplication.commitData() for documentation.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleansaveState(QSessionManager sm)
See QApplication.saveState() for documentation.

Constructor Detail

KSessionManaged

protected KSessionManaged(Class dummy)

KSessionManaged

public KSessionManaged()

Method Detail

commitData

public boolean commitData(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() ).

UNKNOWN: See QApplication.commitData() for documentation.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

saveState

public boolean saveState(QSessionManager sm)
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() ).

UNKNOWN: See QApplication.saveState() for documentation.