org.kde.koala
Class KSessionManaged

java.lang.Object
  extended by org.kde.koala.KSessionManaged
All Implemented Interfaces:
org.kde.qt.QtSupport

public class KSessionManaged
extends java.lang.Object
implements org.kde.qt.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

Constructor Summary
  KSessionManaged()
           
protected KSessionManaged(java.lang.Class dummy)
           
 
Method Summary
 boolean commitData(org.kde.qt.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(org.kde.qt.QSessionManager sm)
          See QApplication.saveState() for documentation.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KSessionManaged

protected KSessionManaged(java.lang.Class dummy)

KSessionManaged

public KSessionManaged()
Method Detail

saveState

public boolean saveState(org.kde.qt.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() ).


commitData

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


finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.InternalError

dispose

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


isDisposed

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