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.
Method Summary |
boolean | commitData(QSessionManager sm)
See QApplication.commitData() for documentation.
|
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | saveState(QSessionManager sm)
See QApplication.saveState() for documentation.
|
protected KSessionManaged(Class dummy)
public KSessionManaged()
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.
public void dispose()
Delete the wrapped C++ instance ahead of finalize()
protected void finalize()
Deletes the wrapped C++ instance
public boolean isDisposed()
Has the wrapped C++ instance been deleted?
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.