\section{KNotify\-Client::Instance Class Reference}
\label{classKNotifyClient_1_1Instance}\index{KNotifyClient::Instance@{KNotifyClient::Instance}}
Makes it possible to use {\bf KNotify\-Client}{\rm (p.\,\pageref{namespaceKNotifyClient})} with a {\bf KInstance}{\rm (p.\,\pageref{classKInstance})} that is not the application. Enables {\bf KNotify\-Client}{\rm (p.\,\pageref{namespaceKNotifyClient})} to use a different {\bf KInstance}{\rm (p.\,\pageref{classKInstance})}.  


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

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Instance} ({\bf KInstance} $\ast$instance)
\begin{CompactList}\small\item\em Constructs a {\bf KNotify\-Client::Instance}{\rm (p.\,\pageref{classKNotifyClient_1_1Instance})} to make {\bf KNotify\-Client}{\rm (p.\,\pageref{namespaceKNotifyClient})} use the specified {\bf KInstance}{\rm (p.\,\pageref{classKInstance})} for the event configuration. \item\end{CompactList}\item 
{\bf $\sim$Instance} ()
\begin{CompactList}\small\item\em Destructs the KNotify\-Client::Instance and resets {\bf KNotify\-Client}{\rm (p.\,\pageref{namespaceKNotifyClient})} to the previously used {\bf KInstance}{\rm (p.\,\pageref{classKInstance})}. \item\end{CompactList}\item 
bool {\bf use\-System\-Bell} () const 
\begin{CompactList}\small\item\em Checks whether the system bell should be used. \item\end{CompactList}\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KInstance} $\ast$ {\bf current} ()
\begin{CompactList}\small\item\em Returns the currently active {\bf KInstance}{\rm (p.\,\pageref{classKInstance})}. \item\end{CompactList}\item 
{\bf Instance} $\ast$ {\bf current\-Instance} ()
\begin{CompactList}\small\item\em Returns the current KNotify\-Client::Instance (not the {\bf KInstance}{\rm (p.\,\pageref{classKInstance})}). \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Makes it possible to use {\bf KNotify\-Client}{\rm (p.\,\pageref{namespaceKNotifyClient})} with a {\bf KInstance}{\rm (p.\,\pageref{classKInstance})} that is not the application. Enables {\bf KNotify\-Client}{\rm (p.\,\pageref{namespaceKNotifyClient})} to use a different {\bf KInstance}{\rm (p.\,\pageref{classKInstance})}. 

Use like this: \small\begin{alltt}
 KNotifyClient::Instance(myInstance);
 {\bf KNotifyClient::event}{\rm (p.\,\pageref{namespaceKNotifyClient_a18})}("MyEvent");
 \end{alltt}\normalsize 




Definition at line 90 of file knotifyclient.h.

\subsection{Constructor \& Destructor Documentation}
\index{KNotifyClient::Instance@{KNotify\-Client::Instance}!Instance@{Instance}}
\index{Instance@{Instance}!KNotifyClient::Instance@{KNotify\-Client::Instance}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KNotify\-Client::Instance::Instance ({\bf KInstance} $\ast$ {\em instance})}\label{classKNotifyClient_1_1Instance_a0}


Constructs a {\bf KNotify\-Client::Instance}{\rm (p.\,\pageref{classKNotifyClient_1_1Instance})} to make {\bf KNotify\-Client}{\rm (p.\,\pageref{namespaceKNotifyClient})} use the specified {\bf KInstance}{\rm (p.\,\pageref{classKInstance})} for the event configuration. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em instance}]the instance for the event configuration \end{description}
\end{Desc}


Definition at line 268 of file knotifyclient.cpp.

References KInstance::config(), KNotify\-Client::instance(), and KConfig\-Base::read\-Bool\-Entry().\index{KNotifyClient::Instance@{KNotify\-Client::Instance}!~Instance@{$\sim$Instance}}
\index{~Instance@{$\sim$Instance}!KNotifyClient::Instance@{KNotify\-Client::Instance}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KNotify\-Client::Instance::$\sim${\bf Instance} ()}\label{classKNotifyClient_1_1Instance_a1}


Destructs the KNotify\-Client::Instance and resets {\bf KNotify\-Client}{\rm (p.\,\pageref{namespaceKNotifyClient})} to the previously used {\bf KInstance}{\rm (p.\,\pageref{classKInstance})}. 



Definition at line 279 of file knotifyclient.cpp.

\subsection{Member Function Documentation}
\index{KNotifyClient::Instance@{KNotify\-Client::Instance}!useSystemBell@{useSystemBell}}
\index{useSystemBell@{useSystemBell}!KNotifyClient::Instance@{KNotify\-Client::Instance}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNotify\-Client::Instance::use\-System\-Bell () const}\label{classKNotifyClient_1_1Instance_a2}


Checks whether the system bell should be used. 

\begin{Desc}
\item[Returns:]true if this instance should use the System bell instead of KNotify.\end{Desc}


Definition at line 293 of file knotifyclient.cpp.

Referenced by KNotify\-Client::beep().\index{KNotifyClient::Instance@{KNotify\-Client::Instance}!current@{current}}
\index{current@{current}!KNotifyClient::Instance@{KNotify\-Client::Instance}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KInstance} $\ast$ KNotify\-Client::Instance::current ()\hspace{0.3cm}{\tt  [static]}}\label{classKNotifyClient_1_1Instance_e0}


Returns the currently active {\bf KInstance}{\rm (p.\,\pageref{classKInstance})}. 

\begin{Desc}
\item[Returns:]the active {\bf KInstance}{\rm (p.\,\pageref{classKInstance})} \end{Desc}


Definition at line 312 of file knotifyclient.cpp.

References current\-Instance(), and d.

Referenced by KNotify\-Client::instance().\index{KNotifyClient::Instance@{KNotify\-Client::Instance}!currentInstance@{currentInstance}}
\index{currentInstance@{currentInstance}!KNotifyClient::Instance@{KNotify\-Client::Instance}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KNotify\-Client::Instance} $\ast$ KNotify\-Client::Instance::current\-Instance ()\hspace{0.3cm}{\tt  [static]}}\label{classKNotifyClient_1_1Instance_e1}


Returns the current KNotify\-Client::Instance (not the {\bf KInstance}{\rm (p.\,\pageref{classKInstance})}). 

\begin{Desc}
\item[Returns:]the active {\bf Instance}{\rm (p.\,\pageref{classKNotifyClient_1_1Instance})}\end{Desc}


Definition at line 307 of file knotifyclient.cpp.

Referenced by KNotify\-Client::beep(), and current().

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