• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

Public Member Functions | Protected Member Functions | List of all members
KSessionManaged Class Reference

#include <tdeapplication.h>

Public Member Functions

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

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 TQApplication::commitData() and TQApplication::saveState(), without subclassing TDEApplication. TDEMainWindow internally makes use of this.

You don't need to do anything with this class when using TDEMainWindow. Instead, use TDEMainWindow::saveProperties(), TDEMainWindow::readProperties(), TDEMainWindow::queryClose(), TDEMainWindow::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 1611 of file tdeapplication.h.

Constructor & Destructor Documentation

◆ KSessionManaged()

KSessionManaged::KSessionManaged ( )

Definition at line 1261 of file tdeapplication.cpp.

◆ ~KSessionManaged()

KSessionManaged::~KSessionManaged ( )
virtual

Definition at line 1267 of file tdeapplication.cpp.

Member Function Documentation

◆ commitData()

bool KSessionManaged::commitData ( TQSessionManager &  sm)
virtual

See TQApplication::commitData() for documentation.

This function is just a convenience version to avoid subclassing TDEApplication.

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 1277 of file tdeapplication.cpp.

◆ saveState()

bool KSessionManaged::saveState ( TQSessionManager &  sm)
virtual

See TQApplication::saveState() for documentation.

This function is just a convenience version to avoid subclassing TDEApplication.

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 1272 of file tdeapplication.cpp.

◆ virtual_hook()

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

Definition at line 3729 of file tdeapplication.cpp.


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

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.