Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KSessionManaged Class Reference

Highlevel access to session management. More...

#include <kapplication.h>

List of all members.

Public Methods

virtual bool saveState (QSessionManager &sm)
virtual bool commitData (QSessionManager &sm)


Detailed Description

Highlevel access to session management.

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>

Definition at line 1140 of file kapplication.h.


Member Function Documentation

virtual bool KSessionManaged::commitData QSessionManager &    sm [virtual]
 

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() ).

virtual bool KSessionManaged::saveState QSessionManager &    sm [virtual]
 

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() ).


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:24 2003 for kdelibs by doxygen1.2.18