\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)
\item 
{\bf $\sim$Instance} ()
\item 
bool {\bf use\-System\-Bell} () const 
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf KInstance} $\ast$ {\bf current} ()
\item 
static {\bf Instance} $\ast$ {\bf current\-Instance} ()
\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: 

\footnotesize\begin{verbatim} KNotifyClient::Instance(myInstance);
 KNotifyClient::event("MyEvent");
\end{verbatim}
\normalsize




Definition at line 96 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 KNotify\-Client::Instance 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 316 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 327 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 341 of file knotifyclient.cpp.\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 360 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 355 of file knotifyclient.cpp.

Referenced by current().

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