• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
KSessionManager Class Reference

#include <ksessionmanager.h>

Inherited by KMWSessionManager.

Public Member Functions

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

Static Public Member Functions

static QList< KSessionManager * > & sessionClients ()
 

Protected Member Functions

virtual void virtual_hook (int id, void *data)
 

Detailed Description

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

KSessionManager 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 ettri.nosp@m.ch@k.nosp@m.de.or.nosp@m.g

Definition at line 45 of file ksessionmanager.h.

Constructor & Destructor Documentation

KSessionManager::KSessionManager ( )

Definition at line 23 of file ksessionmanager.cpp.

KSessionManager::~KSessionManager ( )
virtual

Definition at line 30 of file ksessionmanager.cpp.

Member Function Documentation

bool KSessionManager::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 40 of file ksessionmanager.cpp.

bool KSessionManager::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 35 of file ksessionmanager.cpp.

QList< KSessionManager * > & KSessionManager::sessionClients ( )
static

Definition at line 45 of file ksessionmanager.cpp.

void KSessionManager::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Virtual hook, used to add new "virtual" functions while maintaining binary compatibility.

Unused in this class.

Definition at line 51 of file ksessionmanager.cpp.


The documentation for this class was generated from the following files:
  • ksessionmanager.h
  • ksessionmanager.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal