class KSessionManaged

# class KSessionManaged | Highlevel access to session management. More...
Definition | `#include <kapplication.h>`
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KSessionManaged ()
- virtual ~KSessionManaged ()
- virtual bool saveState ( QSessionManager& sm )
- virtual bool commitData ( QSessionManager& sm )

#### Protected Methods

- virtual void virtual_hook ( int id, void* data )

## Detailed Description

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.

KSessionManaged () | ### KSessionManaged

~KSessionManaged () | ### ~KSessionManaged

[virtual]

bool saveState ( QSessionManager& sm ) | ### saveState

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

bool commitData ( QSessionManager& sm ) | ### commitData

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

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

- Author: Matthias Ettrich
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:15 2003, using kdoc 2.0a54.