• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDECore

KSessionManaged Class Reference

Provides highlevel access to session management on a per-object base. More...

#include <kapplication.h>

List of all members.


Public Member Functions

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

Protected Member Functions

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.

Highlevel access to session management.

Author:
Matthias Ettrich <ettrich@kde.org>

Definition at line 1441 of file kapplication.h.


Constructor & Destructor Documentation

KSessionManaged::KSessionManaged (  ) 

Definition at line 1055 of file kapplication.cpp.

KSessionManaged::~KSessionManaged (  )  [virtual]

Definition at line 1061 of file kapplication.cpp.


Member Function Documentation

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

Definition at line 1071 of file kapplication.cpp.

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

Definition at line 1066 of file kapplication.cpp.

void KSessionManaged::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Definition at line 3269 of file kapplication.cpp.


The documentation for this class was generated from the following files:
  • kapplication.h
  • kapplication.cpp

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal