\section{KSession\-Managed Class Reference}
\label{classKSessionManaged}\index{KSessionManaged@{KSessionManaged}}
Provides highlevel access to session management on a per-object base. Highlevel access to session management.  


{\tt \#include $<$kapplication.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual bool {\bf save\-State} ({\bf QSession\-Manager} \&sm)
\item 
virtual bool {\bf commit\-Data} ({\bf QSession\-Manager} \&sm)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKSessionManaged_b0}

\end{CompactItemize}


\subsection{Detailed Description}
Provides highlevel access to session management on a per-object base. Highlevel access to session management. 

KSession\-Managed makes it possible to provide implementations for {\bf QApplication::commit\-Data()} and {\bf QApplication::save\-State()}, without subclassing {\bf KApplication}{\rm (p.\,\pageref{classKApplication})}. {\bf KMain\-Window} internally makes use of this.

You don't need to do anything with this class when using {\bf KMain\-Window}. Instead, use {\bf KMain\-Window::save\-Properties()}, {\bf KMain\-Window::read\-Properties()}, {\bf KMain\-Window::query\-Close()}, {\bf KMain\-Window::query\-Exit()} and friends.

\begin{Desc}
\item[Author:]Matthias Ettrich $<${\tt ettrich@kde.org}$>$ \end{Desc}




Definition at line 1424 of file kapplication.h.

\subsection{Member Function Documentation}
\index{KSessionManaged@{KSession\-Managed}!saveState@{saveState}}
\index{saveState@{saveState}!KSessionManaged@{KSession\-Managed}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KSession\-Managed::save\-State ({\bf QSession\-Manager} \& {\em sm})\hspace{0.3cm}{\tt  [virtual]}}\label{classKSessionManaged_a2}


See {\bf QApplication::save\-State()} for documentation. 

This function is just a convenience version to avoid subclassing {\bf KApplication}{\rm (p.\,\pageref{classKApplication})}.

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 1070 of file kapplication.cpp.\index{KSessionManaged@{KSession\-Managed}!commitData@{commitData}}
\index{commitData@{commitData}!KSessionManaged@{KSession\-Managed}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KSession\-Managed::commit\-Data ({\bf QSession\-Manager} \& {\em sm})\hspace{0.3cm}{\tt  [virtual]}}\label{classKSessionManaged_a3}


See {\bf QApplication::commit\-Data()} for documentation. 

This function is just a convenience version to avoid subclassing {\bf KApplication}{\rm (p.\,\pageref{classKApplication})}.

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 1075 of file kapplication.cpp.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kapplication.h\item 
kapplication.cpp\end{CompactItemize}
