\section{KArts\-Dispatcher Class Reference}
\label{classKArtsDispatcher}\index{KArtsDispatcher@{KArtsDispatcher}}
KArts\-Dispatcher ensures that an instance of Arts::Dispatcher using an Arts::QIOManager exists.  


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

Inheritance diagram for KArts\-Dispatcher:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=62pt]{classKArtsDispatcher__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KArts\-Dispatcher:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=62pt]{classKArtsDispatcher__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KArts\-Dispatcher} ({\bf QObject} $\ast${\bf parent}=0, const char $\ast${\bf name}=0)
\item 
{\bf $\sim$KArts\-Dispatcher} ()
\end{CompactItemize}


\subsection{Detailed Description}
KArts\-Dispatcher ensures that an instance of Arts::Dispatcher using an Arts::QIOManager exists. 

When the last KArts\-Dispatcher is deleted, the Arts::Dispatcher is released as well.

Using KArts\-Dispatcher is especially useful in setups where another plugin might also already use an Arts::Dispatcher, for instance in konqueror.



\footnotesize\begin{verbatim} {
   // old code
   Arts::QIOManager qiomanager;
   Arts::Dispatcher dispatcher(&qiomanager);

   Arts::SoundServer server = Arts::Reference("global:Arts_SoundServer");
   server.play("/usr/share/sounds/pop.wav");
 }
\end{verbatim}
\normalsize




\footnotesize\begin{verbatim} {
   // new code
   KArtsDispatcher dispatcher;

   Arts::SoundServer server = Arts::Reference("global:Arts_SoundServer");
   server.play("/usr/share/sounds/pop.wav");
 }
\end{verbatim}
\normalsize
 



Definition at line 64 of file kartsdispatcher.h.

\subsection{Constructor \& Destructor Documentation}
\index{KArtsDispatcher@{KArts\-Dispatcher}!KArtsDispatcher@{KArtsDispatcher}}
\index{KArtsDispatcher@{KArtsDispatcher}!KArtsDispatcher@{KArts\-Dispatcher}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KArts\-Dispatcher::KArts\-Dispatcher ({\bf QObject} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKArtsDispatcher_a0}


Constructor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]the parent {\bf Qt} object \item[{\em name}]the {\bf Qt} object name of this object\end{description}
\end{Desc}


Definition at line 33 of file kartsdispatcher.cc.

References endl(), and kd\-Warning().\index{KArtsDispatcher@{KArts\-Dispatcher}!~KArtsDispatcher@{$\sim$KArtsDispatcher}}
\index{~KArtsDispatcher@{$\sim$KArtsDispatcher}!KArtsDispatcher@{KArts\-Dispatcher}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KArts\-Dispatcher::$\sim${\bf KArts\-Dispatcher} ()}\label{classKArtsDispatcher_a1}


Destructor. 



Definition at line 49 of file kartsdispatcher.cc.

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